snyk 1.700.0 → 1.701.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/622.index.js +0 -146
- package/dist/cli/622.index.js.map +1 -1
- package/dist/cli/788.index.js +0 -146
- package/dist/cli/788.index.js.map +1 -1
- package/dist/cli/index.js +374 -565
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +9 -9
- package/package.json +2 -2
package/dist/cli/622.index.js
CHANGED
|
@@ -2050,61 +2050,6 @@ formatters.O = function (v) {
|
|
|
2050
2050
|
};
|
|
2051
2051
|
|
|
2052
2052
|
|
|
2053
|
-
/***/ }),
|
|
2054
|
-
|
|
2055
|
-
/***/ 56455:
|
|
2056
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2057
|
-
|
|
2058
|
-
"use strict";
|
|
2059
|
-
|
|
2060
|
-
const indentString = __webpack_require__(95602);
|
|
2061
|
-
const cleanStack = __webpack_require__(75281);
|
|
2062
|
-
|
|
2063
|
-
const cleanInternalStack = stack => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, '');
|
|
2064
|
-
|
|
2065
|
-
class AggregateError extends Error {
|
|
2066
|
-
constructor(errors) {
|
|
2067
|
-
if (!Array.isArray(errors)) {
|
|
2068
|
-
throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
errors = [...errors].map(error => {
|
|
2072
|
-
if (error instanceof Error) {
|
|
2073
|
-
return error;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
if (error !== null && typeof error === 'object') {
|
|
2077
|
-
// Handle plain error objects with message property and/or possibly other metadata
|
|
2078
|
-
return Object.assign(new Error(error.message), error);
|
|
2079
|
-
}
|
|
2080
|
-
|
|
2081
|
-
return new Error(error);
|
|
2082
|
-
});
|
|
2083
|
-
|
|
2084
|
-
let message = errors
|
|
2085
|
-
.map(error => {
|
|
2086
|
-
// The `stack` property is not standardized, so we can't assume it exists
|
|
2087
|
-
return typeof error.stack === 'string' ? cleanInternalStack(cleanStack(error.stack)) : String(error);
|
|
2088
|
-
})
|
|
2089
|
-
.join('\n');
|
|
2090
|
-
message = '\n' + indentString(message, 4);
|
|
2091
|
-
super(message);
|
|
2092
|
-
|
|
2093
|
-
this.name = 'AggregateError';
|
|
2094
|
-
|
|
2095
|
-
Object.defineProperty(this, '_errors', {value: errors});
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
* [Symbol.iterator]() {
|
|
2099
|
-
for (const error of this._errors) {
|
|
2100
|
-
yield error;
|
|
2101
|
-
}
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
module.exports = AggregateError;
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
2053
|
/***/ }),
|
|
2109
2054
|
|
|
2110
2055
|
/***/ 14277:
|
|
@@ -5009,54 +4954,6 @@ exports.overwrite = function (received, defaults, onto = {}) {
|
|
|
5009
4954
|
return onto;
|
|
5010
4955
|
};
|
|
5011
4956
|
|
|
5012
|
-
/***/ }),
|
|
5013
|
-
|
|
5014
|
-
/***/ 75281:
|
|
5015
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5016
|
-
|
|
5017
|
-
"use strict";
|
|
5018
|
-
|
|
5019
|
-
const os = __webpack_require__(12087);
|
|
5020
|
-
|
|
5021
|
-
const extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/;
|
|
5022
|
-
const pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;
|
|
5023
|
-
const homeDir = typeof os.homedir === 'undefined' ? '' : os.homedir();
|
|
5024
|
-
|
|
5025
|
-
module.exports = (stack, options) => {
|
|
5026
|
-
options = Object.assign({pretty: false}, options);
|
|
5027
|
-
|
|
5028
|
-
return stack.replace(/\\/g, '/')
|
|
5029
|
-
.split('\n')
|
|
5030
|
-
.filter(line => {
|
|
5031
|
-
const pathMatches = line.match(extractPathRegex);
|
|
5032
|
-
if (pathMatches === null || !pathMatches[1]) {
|
|
5033
|
-
return true;
|
|
5034
|
-
}
|
|
5035
|
-
|
|
5036
|
-
const match = pathMatches[1];
|
|
5037
|
-
|
|
5038
|
-
// Electron
|
|
5039
|
-
if (
|
|
5040
|
-
match.includes('.app/Contents/Resources/electron.asar') ||
|
|
5041
|
-
match.includes('.app/Contents/Resources/default_app.asar')
|
|
5042
|
-
) {
|
|
5043
|
-
return false;
|
|
5044
|
-
}
|
|
5045
|
-
|
|
5046
|
-
return !pathRegex.test(match);
|
|
5047
|
-
})
|
|
5048
|
-
.filter(line => line.trim() !== '')
|
|
5049
|
-
.map(line => {
|
|
5050
|
-
if (options.pretty) {
|
|
5051
|
-
return line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, '~')));
|
|
5052
|
-
}
|
|
5053
|
-
|
|
5054
|
-
return line;
|
|
5055
|
-
})
|
|
5056
|
-
.join('\n');
|
|
5057
|
-
};
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
4957
|
/***/ }),
|
|
5061
4958
|
|
|
5062
4959
|
/***/ 23909:
|
|
@@ -5317,49 +5214,6 @@ module.exports = function(options, defaults) {
|
|
|
5317
5214
|
return options;
|
|
5318
5215
|
};
|
|
5319
5216
|
|
|
5320
|
-
/***/ }),
|
|
5321
|
-
|
|
5322
|
-
/***/ 95602:
|
|
5323
|
-
/***/ ((module) => {
|
|
5324
|
-
|
|
5325
|
-
"use strict";
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
module.exports = (string, count = 1, options) => {
|
|
5329
|
-
options = {
|
|
5330
|
-
indent: ' ',
|
|
5331
|
-
includeEmptyLines: false,
|
|
5332
|
-
...options
|
|
5333
|
-
};
|
|
5334
|
-
|
|
5335
|
-
if (typeof string !== 'string') {
|
|
5336
|
-
throw new TypeError(
|
|
5337
|
-
`Expected \`input\` to be a \`string\`, got \`${typeof string}\``
|
|
5338
|
-
);
|
|
5339
|
-
}
|
|
5340
|
-
|
|
5341
|
-
if (typeof count !== 'number') {
|
|
5342
|
-
throw new TypeError(
|
|
5343
|
-
`Expected \`count\` to be a \`number\`, got \`${typeof count}\``
|
|
5344
|
-
);
|
|
5345
|
-
}
|
|
5346
|
-
|
|
5347
|
-
if (typeof options.indent !== 'string') {
|
|
5348
|
-
throw new TypeError(
|
|
5349
|
-
`Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``
|
|
5350
|
-
);
|
|
5351
|
-
}
|
|
5352
|
-
|
|
5353
|
-
if (count === 0) {
|
|
5354
|
-
return string;
|
|
5355
|
-
}
|
|
5356
|
-
|
|
5357
|
-
const regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
|
5358
|
-
|
|
5359
|
-
return string.replace(regex, options.indent.repeat(count));
|
|
5360
|
-
};
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
5217
|
/***/ }),
|
|
5364
5218
|
|
|
5365
5219
|
/***/ 35131:
|