From 890f9eab9f1d7462a9949536b1494299af066d2b Mon Sep 17 00:00:00 2001 From: Simon Stone Date: Fri, 27 Sep 2019 10:57:26 +0100 Subject: [PATCH] [FAB-16713] Fix npm audit warnings Also add .gitignore files for abstore/marbles02, as these are currently missing. Signed-off-by: Simon Stone Change-Id: I9f9da3e5289a275dd26c1021ea8de80def605e36 --- chaincode/abstore/javascript/.gitignore | 77 +++++++++++++++++++++ chaincode/fabcar/javascript/package.json | 2 +- chaincode/fabcar/typescript/package.json | 2 +- chaincode/marbles02/javascript/.gitignore | 77 +++++++++++++++++++++ chaincode/marbles02/javascript/package.json | 4 +- fabcar/javascript/package.json | 2 +- fabcar/typescript/package.json | 2 +- 7 files changed, 161 insertions(+), 5 deletions(-) create mode 100644 chaincode/abstore/javascript/.gitignore create mode 100644 chaincode/marbles02/javascript/.gitignore diff --git a/chaincode/abstore/javascript/.gitignore b/chaincode/abstore/javascript/.gitignore new file mode 100644 index 00000000..a00ca941 --- /dev/null +++ b/chaincode/abstore/javascript/.gitignore @@ -0,0 +1,77 @@ +# +# SPDX-License-Identifier: Apache-2.0 +# + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless diff --git a/chaincode/fabcar/javascript/package.json b/chaincode/fabcar/javascript/package.json index 79caa707..7294fae5 100644 --- a/chaincode/fabcar/javascript/package.json +++ b/chaincode/fabcar/javascript/package.json @@ -24,7 +24,7 @@ "chai": "^4.1.2", "eslint": "^4.19.1", "mocha": "^5.2.0", - "nyc": "^12.0.2", + "nyc": "^14.1.1", "sinon": "^6.0.0", "sinon-chai": "^3.2.0" }, diff --git a/chaincode/fabcar/typescript/package.json b/chaincode/fabcar/typescript/package.json index 92ac183f..b39317f5 100644 --- a/chaincode/fabcar/typescript/package.json +++ b/chaincode/fabcar/typescript/package.json @@ -32,7 +32,7 @@ "@types/sinon-chai": "^3.2.1", "chai": "^4.2.0", "mocha": "^5.2.0", - "nyc": "^13.1.0", + "nyc": "^14.1.1", "sinon": "^7.1.1", "sinon-chai": "^3.3.0", "ts-node": "^7.0.1", diff --git a/chaincode/marbles02/javascript/.gitignore b/chaincode/marbles02/javascript/.gitignore new file mode 100644 index 00000000..a00ca941 --- /dev/null +++ b/chaincode/marbles02/javascript/.gitignore @@ -0,0 +1,77 @@ +# +# SPDX-License-Identifier: Apache-2.0 +# + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless diff --git a/chaincode/marbles02/javascript/package.json b/chaincode/marbles02/javascript/package.json index a622f00e..325679df 100644 --- a/chaincode/marbles02/javascript/package.json +++ b/chaincode/marbles02/javascript/package.json @@ -6,7 +6,9 @@ "node": ">=8.4.0", "npm": ">=5.3.0" }, - "scripts": { "start" : "node marbles_chaincode.js" }, + "scripts": { + "start": "node marbles_chaincode.js" + }, "engine-strict": true, "license": "Apache-2.0", "dependencies": { diff --git a/fabcar/javascript/package.json b/fabcar/javascript/package.json index d5e7e9f7..428c1ea2 100644 --- a/fabcar/javascript/package.json +++ b/fabcar/javascript/package.json @@ -22,7 +22,7 @@ "chai": "^4.2.0", "eslint": "^5.9.0", "mocha": "^5.2.0", - "nyc": "^13.1.0", + "nyc": "^14.1.1", "sinon": "^7.1.1", "sinon-chai": "^3.3.0" }, diff --git a/fabcar/typescript/package.json b/fabcar/typescript/package.json index b85c8dab..70b3f7c4 100644 --- a/fabcar/typescript/package.json +++ b/fabcar/typescript/package.json @@ -29,7 +29,7 @@ "@types/sinon-chai": "^3.2.1", "chai": "^4.2.0", "mocha": "^5.2.0", - "nyc": "^13.1.0", + "nyc": "^14.1.1", "sinon": "^7.1.1", "sinon-chai": "^3.3.0", "ts-node": "^7.0.1",