mirror of
https://github.com/actions/labeler.git
synced 2025-12-15 14:37:35 +00:00
build
This commit is contained in:
4
node_modules/jest-message-util/LICENSE
generated
vendored
4
node_modules/jest-message-util/LICENSE
generated
vendored
@@ -1,8 +1,6 @@
|
||||
MIT License
|
||||
|
||||
For Jest software
|
||||
|
||||
Copyright (c) 2014-present, Facebook, Inc.
|
||||
Copyright (c) Facebook, Inc. and its affiliates.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
2
node_modules/jest-message-util/build/index.d.ts.map
generated
vendored
2
node_modules/jest-message-util/build/index.d.ts.map
generated
vendored
@@ -1 +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"}
|
||||
{"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;AAwDF,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;AAeF,eAAO,MAAM,wBAAwB;;;CAmBpC,CAAC"}
|
||||
38
node_modules/jest-message-util/build/index.js
generated
vendored
38
node_modules/jest-message-util/build/index.js
generated
vendored
@@ -50,12 +50,8 @@ try {
|
||||
// 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 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)(\/|\\)/;
|
||||
@@ -102,7 +98,9 @@ const getRenderedCallsite = (fileContent, line, column) => {
|
||||
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
|
||||
};
|
||||
|
||||
const blankStringRegexp = /^\s*$/; // 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.
|
||||
|
||||
@@ -126,7 +124,7 @@ const formatExecError = (error, config, options, testPath, reuseMessage) => {
|
||||
const separated = separateMessageFromStack(stack || '');
|
||||
stack = separated.stack;
|
||||
|
||||
if (separated.message.indexOf(trim(message)) !== -1) {
|
||||
if (separated.message.includes(trim(message))) {
|
||||
// Often stack trace already contains the duplicate of the message
|
||||
message = separated.message;
|
||||
}
|
||||
@@ -137,7 +135,7 @@ const formatExecError = (error, config, options, testPath, reuseMessage) => {
|
||||
? '\n' + formatStackTrace(stack, config, options, testPath)
|
||||
: '';
|
||||
|
||||
if (message.match(/^\s*$/) && stack.match(/^\s*$/)) {
|
||||
if (blankStringRegexp.test(message) && blankStringRegexp.test(stack)) {
|
||||
// this can happen if an empty object is thrown.
|
||||
message = MESSAGE_INDENT + 'Error: No message was provided';
|
||||
}
|
||||
@@ -358,11 +356,19 @@ const formatResultsErrors = (testResults, config, options, testPath) => {
|
||||
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 errorRegexp = /^Error:?\s*$/;
|
||||
|
||||
const removeBlankErrorLine = str =>
|
||||
str
|
||||
.split('\n') // Lines saying just `Error:` are useless
|
||||
.filter(line => !errorRegexp.test(line))
|
||||
.join('\n')
|
||||
.trimRight(); // 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.
|
||||
|
||||
const separateMessageFromStack = content => {
|
||||
if (!content) {
|
||||
@@ -376,16 +382,16 @@ const separateMessageFromStack = content => {
|
||||
// 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]*)$/
|
||||
/^(?:Error: )?([\s\S]*?(?=\n\s*at\s.*:\d*:\d*)|\s*.*)([\s\S]*)$/
|
||||
);
|
||||
|
||||
if (!messageMatch) {
|
||||
// For flow
|
||||
// For typescript
|
||||
throw new Error('If you hit this error, the regex above is buggy.');
|
||||
}
|
||||
|
||||
const message = messageMatch[1];
|
||||
const stack = messageMatch[2];
|
||||
const message = removeBlankErrorLine(messageMatch[1]);
|
||||
const stack = removeBlankErrorLine(messageMatch[2]);
|
||||
return {
|
||||
message,
|
||||
stack
|
||||
|
||||
24
node_modules/jest-message-util/node_modules/slash/package.json
generated
vendored
24
node_modules/jest-message-util/node_modules/slash/package.json
generated
vendored
@@ -1,33 +1,27 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"slash@2.0.0",
|
||||
"/Users/pjquirk/Source/GitHub/actions/labeler"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "slash@2.0.0",
|
||||
"_from": "slash@^2.0.0",
|
||||
"_id": "slash@2.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
||||
"_location": "/jest-message-util/slash",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "slash@2.0.0",
|
||||
"raw": "slash@^2.0.0",
|
||||
"name": "slash",
|
||||
"escapedName": "slash",
|
||||
"rawSpec": "2.0.0",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.0.0"
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/jest-message-util"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
||||
"_spec": "2.0.0",
|
||||
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler",
|
||||
"_shasum": "de552851a1759df3a8f206535442f5ec4ddeab44",
|
||||
"_spec": "slash@^2.0.0",
|
||||
"_where": "/Users/dakale/dev/GitHub/actions/labeler/node_modules/jest-message-util",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
@@ -36,6 +30,8 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/slash/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Convert Windows backslash paths to slash paths",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
|
||||
38
node_modules/jest-message-util/package.json
generated
vendored
38
node_modules/jest-message-util/package.json
generated
vendored
@@ -1,26 +1,19 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"jest-message-util@24.8.0",
|
||||
"/Users/pjquirk/Source/GitHub/actions/labeler"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "jest-message-util@24.8.0",
|
||||
"_id": "jest-message-util@24.8.0",
|
||||
"_from": "jest-message-util@^24.9.0",
|
||||
"_id": "jest-message-util@24.9.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-p2k71rf/b6ns8btdB0uVdljWo9h0ovpnEe05ZKWceQGfXYr4KkzgKo3PBi8wdnd9OtNh46VpNIJynUn/3MKm1g==",
|
||||
"_integrity": "sha512-oCj8FiZ3U0hTP4aSui87P4L4jC37BtQwUMqk+zk/b11FR19BJDeZsZAvIHutWnmtw7r85UmR3CEWZ0HWU2mAlw==",
|
||||
"_location": "/jest-message-util",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "jest-message-util@24.8.0",
|
||||
"raw": "jest-message-util@^24.9.0",
|
||||
"name": "jest-message-util",
|
||||
"escapedName": "jest-message-util",
|
||||
"rawSpec": "24.8.0",
|
||||
"rawSpec": "^24.9.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "24.8.0"
|
||||
"fetchSpec": "^24.9.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@jest/core",
|
||||
@@ -32,22 +25,25 @@
|
||||
"/jest-runtime",
|
||||
"/jest-snapshot"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.8.0.tgz",
|
||||
"_spec": "24.8.0",
|
||||
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler",
|
||||
"_resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.9.0.tgz",
|
||||
"_shasum": "527f54a1e380f5e202a8d1149b0ec872f43119e3",
|
||||
"_spec": "jest-message-util@^24.9.0",
|
||||
"_where": "/Users/dakale/dev/GitHub/actions/labeler/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",
|
||||
"@jest/test-result": "^24.9.0",
|
||||
"@jest/types": "^24.9.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",
|
||||
@@ -56,7 +52,7 @@
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"gitHead": "845728f24b3ef41e450595c384e9b5c9fdf248a4",
|
||||
"gitHead": "9ad0f4bc6b8bdd94989804226c28c9960d9da7d1",
|
||||
"homepage": "https://github.com/facebook/jest#readme",
|
||||
"license": "MIT",
|
||||
"main": "build/index.js",
|
||||
@@ -70,5 +66,5 @@
|
||||
"directory": "packages/jest-message-util"
|
||||
},
|
||||
"types": "build/index.d.ts",
|
||||
"version": "24.8.0"
|
||||
"version": "24.9.0"
|
||||
}
|
||||
|
||||
11
node_modules/jest-message-util/tsconfig.json
generated
vendored
11
node_modules/jest-message-util/tsconfig.json
generated
vendored
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"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
2558
node_modules/jest-message-util/tsconfig.tsbuildinfo
generated
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user