From 371a74df460dba11297c5d599d7af559c26364d6 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 20 Jun 2018 02:29:34 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:hoek:20180212 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hoek:20180212 Latest report for lynx-r/restify-serverless-typescript: https://snyk.io/test/github/lynx-r/restify-serverless-typescript --- .snyk | 10 ++++++++++ package.json | 12 ++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..474f048 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hoek:20180212': + - passport-jwt > jsonwebtoken > joi > hoek: + patched: '2018-06-20T02:29:33.539Z' + - passport-jwt > jsonwebtoken > joi > topo > hoek: + patched: '2018-06-20T02:29:33.539Z' diff --git a/package.json b/package.json index 129a5e6..044e5c1 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,9 @@ "win-deploy": "aws cloudformation deploy --template-file packaged-sam.yaml --stack-name %npm_package_config_cloudFormationStackName% --capabilities CAPABILITY_IAM --region %npm_package_config_region%", "win-package-deploy": "npm run win-package && npm run win-deploy", "win-delete-stack": "aws cloudformation delete-stack --stack-name %npm_package_config_cloudFormationStackName% --region %npm_package_config_region%", - "win-setup": "npm install && (aws s3api get-bucket-location --bucket %npm_package_config_s3BucketName% --region %npm_package_config_region% || npm run win-create-bucket) && npm run win-package-deploy" + "win-setup": "npm install && (aws s3api get-bucket-location --bucket %npm_package_config_s3BucketName% --region %npm_package_config_region% || npm run win-create-bucket) && npm run win-package-deploy", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@types/bcryptjs": "^2.4.0", @@ -60,7 +62,7 @@ "inversify-binding-decorators": "^3.0.0", "inversify-logger-middleware": "^3.0.0", "inversify-restify-utils": "^3.2.0", - "jsonwebtoken": "^7.4.1", + "jsonwebtoken": "^8.0.0", "mongoose": "^4.10.1", "mongoose-type-email": "^1.0.5", "mongoose-unique-validator": "^1.0.5", @@ -73,7 +75,9 @@ "reflect-metadata": "^0.1.10", "restify": "^4.3.0", "serverless-dynamodb-local": "^0.2.22", - "uuid": "^3.0.1" + "uuid": "^3.0.1", + "snyk": "^1.83.0" }, - "devDependencies": {} + "devDependencies": {}, + "snyk": true }