diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..ad2ab199 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.21.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - node-sass > lodash: + patched: '2021-09-10T09:11:19.781Z' + - node-sass > sass-graph > lodash: + patched: '2021-09-10T09:11:19.781Z' + - node-sass > gaze > globule > lodash: + patched: '2021-09-10T09:11:19.781Z' diff --git a/package-lock.json b/package-lock.json index b90d8791..48283830 100644 --- a/package-lock.json +++ b/package-lock.json @@ -55,6 +55,11 @@ } } }, + "@snyk/protect": { + "version": "1.704.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.704.0.tgz", + "integrity": "sha512-F7c0VnzokeGo3lv+Zv0FBhfmOT5f61Hd0nxlgNptsQDoDy3vuipGQqucIwobZIUxkEehR54hEma83v+lYGCj6A==" + }, "@types/minimist": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", diff --git a/package.json b/package.json index 3439ac80..887ba9ad 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "gulp minify" + "build": "gulp minify", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "publishConfig": { "registry": "https://registry.npmjs.org" @@ -63,6 +65,8 @@ "Opera >= 30" ], "dependencies": { - "node-sass": "^6.0.1" - } + "node-sass": "^6.0.1", + "@snyk/protect": "latest" + }, + "snyk": true }