diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7a686ba --- /dev/null +++ b/.snyk @@ -0,0 +1,84 @@ +# 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: + - lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-preset-minify > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-generator > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-template > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-preset-minify > babel-plugin-minify-dead-code-elimination > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helpers > @babel/traverse > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-generator > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-template > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-template > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-helpers > babel-template > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-helpers > babel-template > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-generator > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-helpers > babel-template > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-template > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/generator > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-generator > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-helpers > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-template > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-template > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-helpers > babel-template > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-helpers > babel-template > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-helpers > babel-template > babel-traverse > lodash: + patched: '2020-05-01T03:35:31.218Z' + - '@babel/core > @babel/helper-module-transforms > @babel/helper-replace-supers > @babel/traverse > @babel/helper-function-name > @babel/template > @babel/types > lodash': + patched: '2020-05-01T03:35:31.218Z' + - babel-core > babel-register > babel-core > babel-helpers > babel-template > babel-traverse > babel-types > lodash: + patched: '2020-05-01T03:35:31.218Z' diff --git a/package.json b/package.json index f7191c1..0e7d57d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "The ECMAScript(javascript) minify tool", "main": "index.js", "scripts": { - "test": "npm test" + "test": "npm test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -33,10 +35,12 @@ "commander": "2.10.0", "litelog": "^3.0.6", "lodash": "4.17.11", - "xfs": "0.2.3" + "xfs": "0.2.3", + "snyk": "^1.316.1" }, "devDependencies": { "mocha": "^3.5.3", "should": "^8.4.0" - } + }, + "snyk": true }