snyk 1.1114.0 → 1.1116.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/.snyk +20 -0
- package/bin/snyk +1 -1
- package/dist/cli/855.index.js +6 -0
- package/dist/cli/855.index.js.map +1 -1
- package/dist/cli/917.index.js +6 -6
- package/dist/cli/917.index.js.map +1 -1
- package/jest.config.js +3 -0
- package/package.json +17 -44
- package/src/bootstrap.ts +27 -0
- package/src/common.ts +375 -0
- package/src/generated/binary-deployments.json +16 -0
- package/src/generated/sha256sums.txt +10 -0
- package/src/generated/version +1 -0
- package/src/index.ts +67 -0
- package/test/acceptance/basic.spec.ts +217 -0
- package/test/unit/common.spec.ts +311 -0
- package/test/util/prepareEnvironment.ts +84 -0
- package/tsconfig.json +9 -0
- package/tsconfig.tsbuildinfo +4163 -0
- package/wrapper_dist/bootstrap.d.ts +1 -0
- package/wrapper_dist/bootstrap.js +23 -0
- package/wrapper_dist/bootstrap.js.map +1 -0
- package/wrapper_dist/common.d.ts +26 -0
- package/wrapper_dist/common.js +296 -0
- package/wrapper_dist/common.js.map +1 -0
- package/wrapper_dist/generated/binary-deployments.json +16 -0
- package/wrapper_dist/generated/sha256sums.txt +10 -0
- package/wrapper_dist/generated/version +1 -0
- package/wrapper_dist/index.d.ts +2 -0
- package/wrapper_dist/index.js +52 -0
- package/wrapper_dist/index.js.map +1 -0
package/.snyk
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
|
|
2
|
+
version: v1.25.0
|
|
3
|
+
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
|
|
4
|
+
ignore:
|
|
5
|
+
SNYK-JS-SNYK-3037342:
|
|
6
|
+
- '*':
|
|
7
|
+
reason: Based on default version number
|
|
8
|
+
expires: 2030-01-10T00:00:00.000Z
|
|
9
|
+
created: 2023-03-03T14:26:54.682Z
|
|
10
|
+
SNYK-JS-SNYK-3038622:
|
|
11
|
+
- '*':
|
|
12
|
+
reason: Based on default version number
|
|
13
|
+
expires: 2030-01-10T00:00:00.000Z
|
|
14
|
+
created: 2023-03-03T14:32:41.690Z
|
|
15
|
+
SNYK-JS-SNYK-3111871:
|
|
16
|
+
- '*':
|
|
17
|
+
reason: Based on default version number
|
|
18
|
+
expires: 2030-01-10T00:00:00.000Z
|
|
19
|
+
created: 2023-03-03T14:33:35.717Z
|
|
20
|
+
patch: {}
|
package/bin/snyk
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
require('../
|
|
2
|
+
require('../wrapper_dist/index.js');
|
package/dist/cli/855.index.js
CHANGED
|
@@ -46,6 +46,7 @@ const woofs = {
|
|
|
46
46
|
cs: ' Haf!',
|
|
47
47
|
uk: ' Гав!',
|
|
48
48
|
de: 'Wuff!',
|
|
49
|
+
cat: 'Meow?',
|
|
49
50
|
};
|
|
50
51
|
function getWoof(args) {
|
|
51
52
|
const options = args.pop();
|
|
@@ -54,6 +55,11 @@ function getWoof(args) {
|
|
|
54
55
|
Object.keys(woofs).includes(options.language)) {
|
|
55
56
|
lang = options.language;
|
|
56
57
|
}
|
|
58
|
+
if (lang === 'cat') {
|
|
59
|
+
for (const option in options) {
|
|
60
|
+
console.debug(`${option}:::`, options[option], `:::${option}`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
57
63
|
return woofs[lang];
|
|
58
64
|
}
|
|
59
65
|
exports.default = getWoof;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"855.index.js","mappings":";;;;;;;;;;AACA,6CAAqC;AAErC,SAAwB,IAAI,CAAC,GAAG,IAAgB;IAC9C,MAAM,IAAI,GAAG,iBAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;;mBAaK,IAAI;;CAEtB,CAAC,CAAC;AACH,CAAC;AAlBD,uBAkBC;;;;;;;;;;ACnBD,MAA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;AACrB,CAAC;AAlBD,0BAkBC","sources":["webpack://snyk/./src/cli/commands/woof.ts","webpack://snyk/./src/cli/commands/woof/getWoof.ts"],"sourcesContent":["import { MethodArgs } from '../args';\nimport getWoof from './woof/getWoof';\n\nexport default function woof(...args: MethodArgs) {\n const woof = getWoof(args);\n console.log(`\n | |\n /| |\\\\\n | | | |\n | |/-------\\\\| |\n \\\\ /\n | \\\\ / |\n | \\\\o/ \\\\o/ |\n | | | |\n \\\\/ | | \\\\/\n | | | |\n \\\\ ( ) /\n \\\\_/ \\\\_/ /-----\\\\\n \\\\U/ --( ${woof} )\n \\\\-----/\n`);\n}\n","import { MethodArgs, ArgsOptions } from '../../args';\n\nconst woofs = {\n en: 'Woof!',\n he: ' בה! ',\n ru: ' Гав!',\n es: 'Guau!',\n cs: ' Haf!',\n uk: ' Гав!',\n de: 'Wuff!',\n cat: 'Meow?',\n};\n\nexport default function getWoof(args: MethodArgs): string {\n const options = args.pop() as ArgsOptions;\n let lang = 'en';\n\n if (\n typeof options.language === 'string' &&\n Object.keys(woofs).includes(options.language)\n ) {\n lang = options.language;\n }\n\n if (lang === 'cat') {\n for (const option in options) {\n console.debug(`${option}:::`, options[option], `:::${option}`);\n }\n }\n\n return woofs[lang];\n}\n"],"names":[],"sourceRoot":""}
|
package/dist/cli/917.index.js
CHANGED
|
@@ -4862,12 +4862,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
4862
4862
|
exports.getChecksum = exports.formatPolicyEngineFileName = exports.policyEngineVersion = void 0;
|
|
4863
4863
|
const os = __webpack_require__(12087);
|
|
4864
4864
|
const policyEngineChecksums = `
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4865
|
+
a09ab6b2a225ab52a4d5e03ca7c572f54765ef9832146fa02b262d98829ad733 snyk-iac-test_0.40.4_Darwin_arm64
|
|
4866
|
+
ceb038fbf466cba9f35c0fd78d32c21826202330c8878ea7c401e4fa700c296c snyk-iac-test_0.40.4_Darwin_x86_64
|
|
4867
|
+
a408ec25b6d9fd245f037d7bc2b2b6c706652d4d917ca01812732804f03575e0 snyk-iac-test_0.40.4_Linux_arm64
|
|
4868
|
+
df77d6ce46f242402dbc72dc7115dcca70729bbb48729bd0dab7fec7369bfedd snyk-iac-test_0.40.4_Linux_x86_64
|
|
4869
|
+
434784b5c9d8442a9341b57a16c94a5aef55bca5a4d89c2972e80c07b13a6e2a snyk-iac-test_0.40.4_Windows_arm64.exe
|
|
4870
|
+
0cf599d63335c99b5979e03fee93d55dc6236a194439146360107856aa2b3f36 snyk-iac-test_0.40.4_Windows_x86_64.exe
|
|
4871
4871
|
`;
|
|
4872
4872
|
exports.policyEngineVersion = getPolicyEngineVersion();
|
|
4873
4873
|
function formatPolicyEngineFileName(releaseVersion) {
|