diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0a61e6d --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - lasso-less > async > lodash: + patched: '2020-05-01T03:02:02.232Z' + - winston > async > lodash: + patched: '2020-05-01T03:02:02.232Z' diff --git a/package.json b/package.json index c8fd316..7d0f3d5 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,9 @@ "watch": "gulp watch", "gulp": "gulp", "modclean": "modclean -r -n safe, caution, danger", - "test": "xo ./src/**/*.js !./src/public/assets/js/*.*" + "test": "xo ./src/**/*.js !./src/public/assets/js/*.*", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@lasso/marko-taglib": "^1.0.10", @@ -67,7 +69,8 @@ "shortid": "^2.2.8", "source-map-support": "^0.5.0", "uglify-es": "^3.3.2", - "winston": "^3.0.0" + "winston": "^3.0.0", + "snyk": "^1.316.1" }, "devDependencies": { "babel-cli": "^6.26.0", @@ -170,5 +173,6 @@ "coveragePathIgnorePatterns": [ "/node_modules" ] - } + }, + "snyk": true }