diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4a128e5 --- /dev/null +++ b/.snyk @@ -0,0 +1,30 @@ +# 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: + - graphcool > graphcool-cli-core > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-engine > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-core > archiver > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-core > graphcool-inquirer > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-engine > graphcool-inquirer > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-core > inquirer > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-core > table > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-core > archiver > archiver-utils > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-core > archiver > async > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-core > portfinder > async > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-core > archiver > zip-stream > lodash: + patched: '2020-05-01T01:00:11.648Z' + - graphcool > graphcool-cli-core > archiver > zip-stream > archiver-utils > lodash: + patched: '2020-05-01T01:00:11.648Z' diff --git a/package.json b/package.json index b8c2d39..2568179 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,9 @@ "lint:ts": "tslint --project tsconfig.json && tsc --noEmit", "test": "npm run clean && npm run lint && npm run test:unit", "test:pack": "npm run dist && export TMPDIR=/tmp/pack-testing.$$ && npm pack && mkdir $TMPDIR && mv *-*.*.*.tgz $TMPDIR && cp tests/fixtures/pack-testing.js $TMPDIR && cd $TMPDIR && npm init -y && (for i in {1..3}; do npm i *-*.*.*.tgz brolog && node pack-testing.js && break || sleep 1; done)", - "test:unit": "blue-tape -r ts-node/register \"tests/**/*.spec.ts\" \"src/**/*.spec.ts\"" + "test:unit": "blue-tape -r ts-node/register \"tests/**/*.spec.ts\" \"src/**/*.spec.ts\"", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "apollo-cache-inmemory": "^1.1.11", @@ -40,7 +42,8 @@ "jsonwebtoken": "^8.1.0", "jwks-rsa": "^1.2.1", "subscriptions-transport-ws": "^0.9.6", - "ws": "^7.0.0" + "ws": "^7.0.0", + "snyk": "^1.316.1" }, "devDependencies": { "@types/blue-tape": "^0.1.31", @@ -106,5 +109,6 @@ }, "browser": { "child_process": false - } + }, + "snyk": true }