mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
Fix.
This commit is contained in:
parent
596a6da241
commit
c1a589c5b6
7078 changed files with 1882834 additions and 319 deletions
23
node_modules/jest-message-util/LICENSE
generated
vendored
Normal file
23
node_modules/jest-message-util/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
MIT License
|
||||
|
||||
For Jest software
|
||||
|
||||
Copyright (c) 2014-present, Facebook, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
24
node_modules/jest-message-util/build/index.d.ts
generated
vendored
Normal file
24
node_modules/jest-message-util/build/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
import { Config } from '@jest/types';
|
||||
import { AssertionResult, SerializableError } from '@jest/test-result';
|
||||
import { Frame } from './types';
|
||||
export { Frame } from './types';
|
||||
export declare type StackTraceConfig = Pick<Config.ProjectConfig, 'rootDir' | 'testMatch'>;
|
||||
export declare type StackTraceOptions = {
|
||||
noStackTrace: boolean;
|
||||
};
|
||||
export declare const formatExecError: (error: string | Error | SerializableError | undefined, config: Pick<Config.ProjectConfig, "rootDir" | "testMatch">, options: StackTraceOptions, testPath?: string | undefined, reuseMessage?: boolean | undefined) => string;
|
||||
export declare const getStackTraceLines: (stack: string, options?: StackTraceOptions) => string[];
|
||||
export declare const getTopFrame: (lines: string[]) => Frame | null;
|
||||
export declare const formatStackTrace: (stack: string, config: Pick<Config.ProjectConfig, "rootDir" | "testMatch">, options: StackTraceOptions, testPath?: string | undefined) => string;
|
||||
export declare const formatResultsErrors: (testResults: AssertionResult[], config: Pick<Config.ProjectConfig, "rootDir" | "testMatch">, options: StackTraceOptions, testPath?: string | undefined) => string | null;
|
||||
export declare const separateMessageFromStack: (content: string) => {
|
||||
message: string;
|
||||
stack: string;
|
||||
};
|
||||
//# sourceMappingURL=index.d.ts.map
|
1
node_modules/jest-message-util/build/index.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-message-util/build/index.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACnC,OAAO,EAAC,eAAe,EAAE,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAMrE,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAgB9B,oBAAY,gBAAgB,GAAG,IAAI,CACjC,MAAM,CAAC,aAAa,EACpB,SAAS,GAAG,WAAW,CACxB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAsDF,eAAO,MAAM,eAAe,+NAoD3B,CAAC;AA6EF,eAAO,MAAM,kBAAkB,0DAG4B,CAAC;AAE5D,eAAO,MAAM,WAAW,mCAcvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,mJAsC5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,2KA8C/B,CAAC;AAKF,eAAO,MAAM,wBAAwB;;;CAmBpC,CAAC"}
|
395
node_modules/jest-message-util/build/index.js
generated
vendored
Normal file
395
node_modules/jest-message-util/build/index.js
generated
vendored
Normal file
|
@ -0,0 +1,395 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, 'Frame', {
|
||||
enumerable: true,
|
||||
get: function get() {
|
||||
return _types.Frame;
|
||||
}
|
||||
});
|
||||
exports.separateMessageFromStack = exports.formatResultsErrors = exports.formatStackTrace = exports.getTopFrame = exports.getStackTraceLines = exports.formatExecError = void 0;
|
||||
|
||||
var _fs = _interopRequireDefault(require('fs'));
|
||||
|
||||
var _path = _interopRequireDefault(require('path'));
|
||||
|
||||
var _chalk = _interopRequireDefault(require('chalk'));
|
||||
|
||||
var _micromatch = _interopRequireDefault(require('micromatch'));
|
||||
|
||||
var _slash = _interopRequireDefault(require('slash'));
|
||||
|
||||
var _codeFrame = require('@babel/code-frame');
|
||||
|
||||
var _stackUtils = _interopRequireDefault(require('stack-utils'));
|
||||
|
||||
var _types = require('./types');
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {default: obj};
|
||||
}
|
||||
|
||||
var Symbol = global['jest-symbol-do-not-touch'] || global.Symbol;
|
||||
|
||||
var jestReadFile =
|
||||
global[Symbol.for('jest-native-read-file')] || _fs.default.readFileSync;
|
||||
|
||||
var Symbol = global['jest-symbol-do-not-touch'] || global.Symbol;
|
||||
// stack utils tries to create pretty stack by making paths relative.
|
||||
const stackUtils = new _stackUtils.default({
|
||||
cwd: 'something which does not exist'
|
||||
});
|
||||
let nodeInternals = [];
|
||||
|
||||
try {
|
||||
nodeInternals = _stackUtils.default.nodeInternals();
|
||||
} catch (e) {
|
||||
// `StackUtils.nodeInternals()` fails in browsers. We don't need to remove
|
||||
// node internals in the browser though, so no issue.
|
||||
}
|
||||
|
||||
const PATH_NODE_MODULES = `${_path.default.sep}node_modules${
|
||||
_path.default.sep
|
||||
}`;
|
||||
const PATH_JEST_PACKAGES = `${_path.default.sep}jest${
|
||||
_path.default.sep
|
||||
}packages${_path.default.sep}`; // filter for noisy stack trace lines
|
||||
|
||||
const JASMINE_IGNORE = /^\s+at(?:(?:.jasmine\-)|\s+jasmine\.buildExpectationResult)/;
|
||||
const JEST_INTERNALS_IGNORE = /^\s+at.*?jest(-.*?)?(\/|\\)(build|node_modules|packages)(\/|\\)/;
|
||||
const ANONYMOUS_FN_IGNORE = /^\s+at <anonymous>.*$/;
|
||||
const ANONYMOUS_PROMISE_IGNORE = /^\s+at (new )?Promise \(<anonymous>\).*$/;
|
||||
const ANONYMOUS_GENERATOR_IGNORE = /^\s+at Generator.next \(<anonymous>\).*$/;
|
||||
const NATIVE_NEXT_IGNORE = /^\s+at next \(native\).*$/;
|
||||
const TITLE_INDENT = ' ';
|
||||
const MESSAGE_INDENT = ' ';
|
||||
const STACK_INDENT = ' ';
|
||||
const ANCESTRY_SEPARATOR = ' \u203A ';
|
||||
|
||||
const TITLE_BULLET = _chalk.default.bold('\u25cf ');
|
||||
|
||||
const STACK_TRACE_COLOR = _chalk.default.dim;
|
||||
const STACK_PATH_REGEXP = /\s*at.*\(?(\:\d*\:\d*|native)\)?/;
|
||||
const EXEC_ERROR_MESSAGE = 'Test suite failed to run';
|
||||
const NOT_EMPTY_LINE_REGEXP = /^(?!$)/gm;
|
||||
|
||||
const indentAllLines = (lines, indent) =>
|
||||
lines.replace(NOT_EMPTY_LINE_REGEXP, indent);
|
||||
|
||||
const trim = string => (string || '').trim(); // Some errors contain not only line numbers in stack traces
|
||||
// e.g. SyntaxErrors can contain snippets of code, and we don't
|
||||
// want to trim those, because they may have pointers to the column/character
|
||||
// which will get misaligned.
|
||||
|
||||
const trimPaths = string =>
|
||||
string.match(STACK_PATH_REGEXP) ? trim(string) : string;
|
||||
|
||||
const getRenderedCallsite = (fileContent, line, column) => {
|
||||
let renderedCallsite = (0, _codeFrame.codeFrameColumns)(
|
||||
fileContent,
|
||||
{
|
||||
start: {
|
||||
column,
|
||||
line
|
||||
}
|
||||
},
|
||||
{
|
||||
highlightCode: true
|
||||
}
|
||||
);
|
||||
renderedCallsite = indentAllLines(renderedCallsite, MESSAGE_INDENT);
|
||||
renderedCallsite = `\n${renderedCallsite}\n`;
|
||||
return renderedCallsite;
|
||||
}; // ExecError is an error thrown outside of the test suite (not inside an `it` or
|
||||
// `before/after each` hooks). If it's thrown, none of the tests in the file
|
||||
// are executed.
|
||||
|
||||
const formatExecError = (error, config, options, testPath, reuseMessage) => {
|
||||
if (!error || typeof error === 'number') {
|
||||
error = new Error(`Expected an Error, but "${String(error)}" was thrown`);
|
||||
error.stack = '';
|
||||
}
|
||||
|
||||
let message, stack;
|
||||
|
||||
if (typeof error === 'string' || !error) {
|
||||
error || (error = 'EMPTY ERROR');
|
||||
message = '';
|
||||
stack = error;
|
||||
} else {
|
||||
message = error.message;
|
||||
stack = error.stack;
|
||||
}
|
||||
|
||||
const separated = separateMessageFromStack(stack || '');
|
||||
stack = separated.stack;
|
||||
|
||||
if (separated.message.indexOf(trim(message)) !== -1) {
|
||||
// Often stack trace already contains the duplicate of the message
|
||||
message = separated.message;
|
||||
}
|
||||
|
||||
message = indentAllLines(message, MESSAGE_INDENT);
|
||||
stack =
|
||||
stack && !options.noStackTrace
|
||||
? '\n' + formatStackTrace(stack, config, options, testPath)
|
||||
: '';
|
||||
|
||||
if (message.match(/^\s*$/) && stack.match(/^\s*$/)) {
|
||||
// this can happen if an empty object is thrown.
|
||||
message = MESSAGE_INDENT + 'Error: No message was provided';
|
||||
}
|
||||
|
||||
let messageToUse;
|
||||
|
||||
if (reuseMessage) {
|
||||
messageToUse = ` ${message.trim()}`;
|
||||
} else {
|
||||
messageToUse = `${EXEC_ERROR_MESSAGE}\n\n${message}`;
|
||||
}
|
||||
|
||||
return TITLE_INDENT + TITLE_BULLET + messageToUse + stack + '\n';
|
||||
};
|
||||
|
||||
exports.formatExecError = formatExecError;
|
||||
|
||||
const removeInternalStackEntries = (lines, options) => {
|
||||
let pathCounter = 0;
|
||||
return lines.filter(line => {
|
||||
if (ANONYMOUS_FN_IGNORE.test(line)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ANONYMOUS_PROMISE_IGNORE.test(line)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ANONYMOUS_GENERATOR_IGNORE.test(line)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (NATIVE_NEXT_IGNORE.test(line)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (nodeInternals.some(internal => internal.test(line))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!STACK_PATH_REGEXP.test(line)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (JASMINE_IGNORE.test(line)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (++pathCounter === 1) {
|
||||
return true; // always keep the first line even if it's from Jest
|
||||
}
|
||||
|
||||
if (options.noStackTrace) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (JEST_INTERNALS_IGNORE.test(line)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
};
|
||||
|
||||
const formatPaths = (config, relativeTestPath, line) => {
|
||||
// Extract the file path from the trace line.
|
||||
const match = line.match(/(^\s*at .*?\(?)([^()]+)(:[0-9]+:[0-9]+\)?.*$)/);
|
||||
|
||||
if (!match) {
|
||||
return line;
|
||||
}
|
||||
|
||||
let filePath = (0, _slash.default)(
|
||||
_path.default.relative(config.rootDir, match[2])
|
||||
); // highlight paths from the current test file
|
||||
|
||||
if (
|
||||
(config.testMatch &&
|
||||
config.testMatch.length &&
|
||||
_micromatch.default.some(filePath, config.testMatch)) ||
|
||||
filePath === relativeTestPath
|
||||
) {
|
||||
filePath = _chalk.default.reset.cyan(filePath);
|
||||
}
|
||||
|
||||
return STACK_TRACE_COLOR(match[1]) + filePath + STACK_TRACE_COLOR(match[3]);
|
||||
};
|
||||
|
||||
const getStackTraceLines = (
|
||||
stack,
|
||||
options = {
|
||||
noStackTrace: false
|
||||
}
|
||||
) => removeInternalStackEntries(stack.split(/\n/), options);
|
||||
|
||||
exports.getStackTraceLines = getStackTraceLines;
|
||||
|
||||
const getTopFrame = lines => {
|
||||
var _iteratorNormalCompletion = true;
|
||||
var _didIteratorError = false;
|
||||
var _iteratorError = undefined;
|
||||
|
||||
try {
|
||||
for (
|
||||
var _iterator = lines[Symbol.iterator](), _step;
|
||||
!(_iteratorNormalCompletion = (_step = _iterator.next()).done);
|
||||
_iteratorNormalCompletion = true
|
||||
) {
|
||||
const line = _step.value;
|
||||
|
||||
if (
|
||||
line.includes(PATH_NODE_MODULES) ||
|
||||
line.includes(PATH_JEST_PACKAGES)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const parsedFrame = stackUtils.parseLine(line.trim());
|
||||
|
||||
if (parsedFrame && parsedFrame.file) {
|
||||
return parsedFrame;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError = true;
|
||||
_iteratorError = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
||||
_iterator.return();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError) {
|
||||
throw _iteratorError;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
exports.getTopFrame = getTopFrame;
|
||||
|
||||
const formatStackTrace = (stack, config, options, testPath) => {
|
||||
const lines = getStackTraceLines(stack, options);
|
||||
const topFrame = getTopFrame(lines);
|
||||
let renderedCallsite = '';
|
||||
const relativeTestPath = testPath
|
||||
? (0, _slash.default)(_path.default.relative(config.rootDir, testPath))
|
||||
: null;
|
||||
|
||||
if (topFrame) {
|
||||
const column = topFrame.column,
|
||||
filename = topFrame.file,
|
||||
line = topFrame.line;
|
||||
|
||||
if (line && filename && _path.default.isAbsolute(filename)) {
|
||||
let fileContent;
|
||||
|
||||
try {
|
||||
// TODO: check & read HasteFS instead of reading the filesystem:
|
||||
// see: https://github.com/facebook/jest/pull/5405#discussion_r164281696
|
||||
fileContent = jestReadFile(filename, 'utf8');
|
||||
renderedCallsite = getRenderedCallsite(fileContent, line, column);
|
||||
} catch (e) {
|
||||
// the file does not exist or is inaccessible, we ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const stacktrace = lines
|
||||
.filter(Boolean)
|
||||
.map(
|
||||
line =>
|
||||
STACK_INDENT + formatPaths(config, relativeTestPath, trimPaths(line))
|
||||
)
|
||||
.join('\n');
|
||||
return `${renderedCallsite}\n${stacktrace}`;
|
||||
};
|
||||
|
||||
exports.formatStackTrace = formatStackTrace;
|
||||
|
||||
const formatResultsErrors = (testResults, config, options, testPath) => {
|
||||
const failedResults = testResults.reduce((errors, result) => {
|
||||
result.failureMessages.forEach(content =>
|
||||
errors.push({
|
||||
content,
|
||||
result
|
||||
})
|
||||
);
|
||||
return errors;
|
||||
}, []);
|
||||
|
||||
if (!failedResults.length) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return failedResults
|
||||
.map(({result, content}) => {
|
||||
let _separateMessageFromS = separateMessageFromStack(content),
|
||||
message = _separateMessageFromS.message,
|
||||
stack = _separateMessageFromS.stack;
|
||||
|
||||
stack = options.noStackTrace
|
||||
? ''
|
||||
: STACK_TRACE_COLOR(
|
||||
formatStackTrace(stack, config, options, testPath)
|
||||
) + '\n';
|
||||
message = indentAllLines(message, MESSAGE_INDENT);
|
||||
const title =
|
||||
_chalk.default.bold.red(
|
||||
TITLE_INDENT +
|
||||
TITLE_BULLET +
|
||||
result.ancestorTitles.join(ANCESTRY_SEPARATOR) +
|
||||
(result.ancestorTitles.length ? ANCESTRY_SEPARATOR : '') +
|
||||
result.title
|
||||
) + '\n';
|
||||
return title + '\n' + message + '\n' + stack;
|
||||
})
|
||||
.join('\n');
|
||||
}; // jasmine and worker farm sometimes don't give us access to the actual
|
||||
// Error object, so we have to regexp out the message from the stack string
|
||||
// to format it.
|
||||
|
||||
exports.formatResultsErrors = formatResultsErrors;
|
||||
|
||||
const separateMessageFromStack = content => {
|
||||
if (!content) {
|
||||
return {
|
||||
message: '',
|
||||
stack: ''
|
||||
};
|
||||
} // All lines up to what looks like a stack -- or if nothing looks like a stack
|
||||
// (maybe it's a code frame instead), just the first non-empty line.
|
||||
// If the error is a plain "Error:" instead of a SyntaxError or TypeError we
|
||||
// remove the prefix from the message because it is generally not useful.
|
||||
|
||||
const messageMatch = content.match(
|
||||
/^(?:Error: )?([\s\S]*?(?=\n\s*at\s.*\:\d*\:\d*)|\s*.*)([\s\S]*)$/
|
||||
);
|
||||
|
||||
if (!messageMatch) {
|
||||
// For flow
|
||||
throw new Error('If you hit this error, the regex above is buggy.');
|
||||
}
|
||||
|
||||
const message = messageMatch[1];
|
||||
const stack = messageMatch[2];
|
||||
return {
|
||||
message,
|
||||
stack
|
||||
};
|
||||
};
|
||||
|
||||
exports.separateMessageFromStack = separateMessageFromStack;
|
11
node_modules/jest-message-util/build/types.d.ts
generated
vendored
Normal file
11
node_modules/jest-message-util/build/types.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
import { StackData } from 'stack-utils';
|
||||
export interface Frame extends StackData {
|
||||
file: string;
|
||||
}
|
||||
//# sourceMappingURL=types.d.ts.map
|
1
node_modules/jest-message-util/build/types.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-message-util/build/types.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC,IAAI,EAAE,MAAM,CAAC;CACd"}
|
1
node_modules/jest-message-util/build/types.js
generated
vendored
Normal file
1
node_modules/jest-message-util/build/types.js
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
'use strict';
|
11
node_modules/jest-message-util/node_modules/slash/index.js
generated
vendored
Normal file
11
node_modules/jest-message-util/node_modules/slash/index.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
module.exports = input => {
|
||||
const isExtendedLengthPath = /^\\\\\?\\/.test(input);
|
||||
const hasNonAscii = /[^\u0000-\u0080]+/.test(input); // eslint-disable-line no-control-regex
|
||||
|
||||
if (isExtendedLengthPath || hasNonAscii) {
|
||||
return input;
|
||||
}
|
||||
|
||||
return input.replace(/\\/g, '/');
|
||||
};
|
9
node_modules/jest-message-util/node_modules/slash/license
generated
vendored
Normal file
9
node_modules/jest-message-util/node_modules/slash/license
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
66
node_modules/jest-message-util/node_modules/slash/package.json
generated
vendored
Normal file
66
node_modules/jest-message-util/node_modules/slash/package.json
generated
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"_from": "slash@^2.0.0",
|
||||
"_id": "slash@2.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
||||
"_location": "/jest-message-util/slash",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "slash@^2.0.0",
|
||||
"name": "slash",
|
||||
"escapedName": "slash",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/jest-message-util"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
||||
"_shasum": "de552851a1759df3a8f206535442f5ec4ddeab44",
|
||||
"_spec": "slash@^2.0.0",
|
||||
"_where": "E:\\github\\setup-java\\node_modules\\jest-message-util",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/slash/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Convert Windows backslash paths to slash paths",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/slash#readme",
|
||||
"keywords": [
|
||||
"path",
|
||||
"seperator",
|
||||
"sep",
|
||||
"slash",
|
||||
"backslash",
|
||||
"windows",
|
||||
"win"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "slash",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/slash.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "2.0.0"
|
||||
}
|
44
node_modules/jest-message-util/node_modules/slash/readme.md
generated
vendored
Normal file
44
node_modules/jest-message-util/node_modules/slash/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
# slash [](https://travis-ci.org/sindresorhus/slash)
|
||||
|
||||
> Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`
|
||||
|
||||
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters.
|
||||
|
||||
This was created since the `path` methods in Node outputs `\\` paths on Windows.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install slash
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const path = require('path');
|
||||
const slash = require('slash');
|
||||
|
||||
const str = path.join('foo', 'bar');
|
||||
// Unix => foo/bar
|
||||
// Windows => foo\\bar
|
||||
|
||||
slash(str);
|
||||
// Unix => foo/bar
|
||||
// Windows => foo/bar
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### slash(path)
|
||||
|
||||
Type: `string`
|
||||
|
||||
Accepts a Windows backslash path and returns a slash path.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
70
node_modules/jest-message-util/package.json
generated
vendored
Normal file
70
node_modules/jest-message-util/package.json
generated
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"_from": "jest-message-util@^24.8.0",
|
||||
"_id": "jest-message-util@24.8.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-p2k71rf/b6ns8btdB0uVdljWo9h0ovpnEe05ZKWceQGfXYr4KkzgKo3PBi8wdnd9OtNh46VpNIJynUn/3MKm1g==",
|
||||
"_location": "/jest-message-util",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "jest-message-util@^24.8.0",
|
||||
"name": "jest-message-util",
|
||||
"escapedName": "jest-message-util",
|
||||
"rawSpec": "^24.8.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^24.8.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@jest/core",
|
||||
"/@jest/fake-timers",
|
||||
"/expect",
|
||||
"/jest-circus",
|
||||
"/jest-jasmine2",
|
||||
"/jest-runner",
|
||||
"/jest-runtime",
|
||||
"/jest-snapshot"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.8.0.tgz",
|
||||
"_shasum": "0d6891e72a4beacc0292b638685df42e28d6218b",
|
||||
"_spec": "jest-message-util@^24.8.0",
|
||||
"_where": "E:\\github\\setup-java\\node_modules\\@jest\\core",
|
||||
"bugs": {
|
||||
"url": "https://github.com/facebook/jest/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^7.0.0",
|
||||
"@jest/test-result": "^24.8.0",
|
||||
"@jest/types": "^24.8.0",
|
||||
"@types/stack-utils": "^1.0.1",
|
||||
"chalk": "^2.0.1",
|
||||
"micromatch": "^3.1.10",
|
||||
"slash": "^2.0.0",
|
||||
"stack-utils": "^1.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"devDependencies": {
|
||||
"@types/babel__code-frame": "^7.0.0",
|
||||
"@types/micromatch": "^3.1.0",
|
||||
"@types/slash": "^2.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"gitHead": "845728f24b3ef41e450595c384e9b5c9fdf248a4",
|
||||
"homepage": "https://github.com/facebook/jest#readme",
|
||||
"license": "MIT",
|
||||
"main": "build/index.js",
|
||||
"name": "jest-message-util",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/jest.git",
|
||||
"directory": "packages/jest-message-util"
|
||||
},
|
||||
"types": "build/index.d.ts",
|
||||
"version": "24.8.0"
|
||||
}
|
11
node_modules/jest-message-util/tsconfig.json
generated
vendored
Normal file
11
node_modules/jest-message-util/tsconfig.json
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "build"
|
||||
},
|
||||
"references": [
|
||||
{"path": "../jest-test-result"},
|
||||
{"path": "../jest-types"}
|
||||
]
|
||||
}
|
2558
node_modules/jest-message-util/tsconfig.tsbuildinfo
generated
vendored
Normal file
2558
node_modules/jest-message-util/tsconfig.tsbuildinfo
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue