diff --git a/example/logo-resize/.snyk b/example/logo-resize/.snyk new file mode 100644 index 0000000..33fef9e --- /dev/null +++ b/example/logo-resize/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.19.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - babel > babel-core > babel-plugin-proto-to-assign > lodash: + patched: '2021-05-12T07:33:04.994Z' + - babel-eslint > babel-core > babel-plugin-proto-to-assign > lodash: + patched: '2021-05-12T07:33:04.994Z' diff --git a/example/logo-resize/package.json b/example/logo-resize/package.json index 3eb0d66..633ed5b 100644 --- a/example/logo-resize/package.json +++ b/example/logo-resize/package.json @@ -1,7 +1,9 @@ { "private": true, "scripts": { - "start": "webpack-dev-server" + "start": "webpack-dev-server", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "babel": "^5.8.23", @@ -15,6 +17,8 @@ "react-icons": "^0.1.4", "react-svg-morph": "*", "webpack": "^1.12.2", - "webpack-dev-server": "^1.12.1" - } + "webpack-dev-server": "^1.12.1", + "snyk": "^1.592.0" + }, + "snyk": true }