diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0fe2acd --- /dev/null +++ b/.snyk @@ -0,0 +1,42 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hawk:20160119': + - typeorm > cli-highlight > highlight.js > gear-lib > less > request > hawk: + patched: '2019-02-25T08:19:50.218Z' + 'npm:http-signature:20150122': + - typeorm > cli-highlight > highlight.js > gear-lib > less > request > http-signature: + patched: '2019-02-25T08:19:50.218Z' + 'npm:mime:20170907': + - typeorm > cli-highlight > highlight.js > gear-lib > mime: + patched: '2019-02-25T08:19:50.218Z' + - typeorm > cli-highlight > highlight.js > gear-lib > less > mime: + patched: '2019-02-25T08:19:50.218Z' + - typeorm > cli-highlight > highlight.js > gear-lib > less > request > form-data > mime: + patched: '2019-02-25T08:19:50.218Z' + 'npm:minimatch:20160620': + - typeorm > cli-highlight > highlight.js > gear > liftoff > findup-sync > glob > minimatch: + patched: '2019-02-25T08:19:50.218Z' + - typeorm > cli-highlight > highlight.js > gear-lib > gear > liftoff > findup-sync > glob > minimatch: + patched: '2019-02-25T08:19:50.218Z' + - typeorm > cli-highlight > highlight.js > gear-lib > glob > minimatch: + patched: '2019-02-25T08:19:50.218Z' + - typeorm > cli-highlight > highlight.js > gear-lib > jslint > glob > minimatch: + patched: '2019-02-25T08:19:50.218Z' + - typeorm > cli-highlight > highlight.js > gear-lib > jshint > cli > glob > minimatch: + patched: '2019-02-25T08:19:50.218Z' + - typeorm > cli-highlight > highlight.js > gear-lib > jshint > minimatch: + patched: '2019-02-25T08:19:50.218Z' + 'npm:request:20160119': + - typeorm > cli-highlight > highlight.js > gear-lib > less > request: + patched: '2019-02-25T08:19:50.218Z' + 'npm:tunnel-agent:20170305': + - typeorm > cli-highlight > highlight.js > gear-lib > less > request > tunnel-agent: + patched: '2019-02-25T08:19:50.218Z' + 'npm:uglify-js:20151024': + - typeorm > cli-highlight > highlight.js > gear-lib > handlebars > uglify-js: + patched: '2019-02-25T08:19:50.218Z' + - typeorm > cli-highlight > highlight.js > gear-lib > uglify-js: + patched: '2019-02-25T08:19:50.218Z' diff --git a/package.json b/package.json index 863fea6..fe3fd59 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "local:watch": "npm run build && npm run lint && cat ./tslint.err && npm run build && node --inspect ./dist/src/index.js", "start": "npm run build && node ./dist/src/index.js", "test": "set NODE_ENV=TEST && nyc --extension .ts --extension .tsx mocha --timeout 10000 -r ts-node/register ./test/*.ts && nyc report --reporter text-lcov --extension .ts --extension .tsx | coveralls", - "test-watch": "npm run clean && mocha-typescript-watch -p tsconfig.json -o ./mocha.opts" + "test-watch": "npm run clean && mocha-typescript-watch -p tsconfig.json -o ./mocha.opts", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -69,6 +71,8 @@ "typeorm": "^0.2.0", "typescript": "^2.7.2", "typescript-ioc": "^1.1.0", - "vision": "^5.3.2" - } + "vision": "^5.3.2", + "snyk": "^1.134.2" + }, + "snyk": true }