diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..cb309a0 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - inquirer > lodash: + patched: '2022-10-07T14:22:49.552Z' diff --git a/package-lock.json b/package-lock.json index f534926..b0c86fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,11 @@ "js-tokens": "^4.0.0" } }, + "@snyk/protect": { + "version": "1.1025.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.1025.0.tgz", + "integrity": "sha512-RK9tY2Aqujv5l9e/5nE4yiTilk8vxyB99VtJJ/6p9TZYhddCVQUUv+PNenhVVO3jkSD8/3gLWbPakIvQsFKynA==" + }, "acorn": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz", diff --git a/package.json b/package.json index 6d73468..fc8df0f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "dependencies": { "fs-extra": "^8.0.0", "inquirer": "^3.0.6", - "p-map": "^1.1.1" + "p-map": "^1.1.1", + "@snyk/protect": "latest" }, "devDependencies": { "chai": "^4.2.0", @@ -31,6 +32,9 @@ "scripts": { "test": "mocha test.js", "prepublishOnly": "np --no-publish", - "lint": "eslint ./**/*.js" - } + "lint": "eslint ./**/*.js", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true }