diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d69dfb0 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - rollup-plugin-babel > @babel/helper-module-imports > @babel/types > lodash: + patched: '2020-05-01T06:05:53.668Z' diff --git a/package.json b/package.json index ec1a962..d7801fe 100644 --- a/package.json +++ b/package.json @@ -31,14 +31,15 @@ "test:clean": "rimraf ./coverage", "test:watch": "npm run test -- --watch", "lint": "eslint src", - "prepublish": "npm run build", + "prepublish": "npm run snyk-protect && npm run build", "lint-staged": "lint-staged", "jsdoc-documentation": "jsdoc-documentation", "jsdoc": "jsdoc-documentation --file", "prestyleguide": "npm run jsdoc", "styleguide": "styleguidist server", "prestyleguide:build": "npm run jsdoc", - "styleguide:build": "styleguidist build" + "styleguide:build": "styleguidist build", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -197,7 +198,8 @@ "rollup-plugin-replace": "^2.2.0", "rollup-plugin-terser": "^5.1.3", "rollup-plugin-visualizer": "^3.3.1", - "rollup-watch": "^4.3.1" + "rollup-watch": "^4.3.1", + "snyk": "^1.316.1" }, "peerDependencies": {}, "publishConfig": { @@ -330,5 +332,6 @@ "/internals/testing/test-bundler.js" ] }, - "contributors": [] + "contributors": [], + "snyk": true }