Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit dae43ad

Browse files
authored
[0.19.x] address relevant npm advisories (#4394)
Signed-off-by: Dave Kelsey <[email protected]>
1 parent 28d6ad4 commit dae43ad

File tree

12 files changed

+19
-18
lines changed

12 files changed

+19
-18
lines changed

packages/composer-common/lib/factory.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
'use strict';
1616

17-
const debug = require('debug')('hyperledger-composer');
17+
const Logger = require('./log/logger');
18+
const LOG = Logger.getLog('Factory');
1819
const Globalize = require('./globalize');
1920

2021
const ModelUtil = require('./modelutil');
@@ -79,6 +80,7 @@ class Factory {
7980
* @throws {TypeNotFoundException} if the type is not registered with the ModelManager
8081
*/
8182
newResource(ns, type, id, options) {
83+
const method = 'newResource';
8284
options = options || {};
8385

8486
if(typeof(id) !== 'string') {
@@ -127,7 +129,7 @@ class Factory {
127129
// if we have an identifier, we set it now
128130
let idField = classDecl.getIdentifierFieldName();
129131
newObj[idField] = id;
130-
debug('Factory.newResource created %s', id );
132+
LOG.debug(method, 'Factory.newResource created', id );
131133
return newObj;
132134
}
133135

@@ -173,7 +175,7 @@ class Factory {
173175
newObj.assignFieldDefaults();
174176
this.initializeNewObject(newObj, classDecl, options);
175177

176-
debug('Factory.newResource created concept %s', classDecl.getFullyQualifiedName() );
178+
LOG.debug('Factory.newResource created concept', classDecl.getFullyQualifiedName() );
177179
return newObj;
178180
}
179181

packages/composer-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"axios": "0.17.1",
5959
"comment-parser": "0.4.0",
6060
"config": "1.24.0",
61-
"debug": "2.6.2",
61+
"debug": "2.6.9",
6262
"doctrine": "2.0.0",
6363
"fs-extra": "1.0.0",
6464
"js-yaml": "3.10.0",

packages/composer-connector-hlfv1/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"fabric-client": "1.1.2",
6969
"fs-extra": "1.0.0",
7070
"jsrsasign": "8.0.3",
71-
"lodash": "4.17.4",
71+
"lodash": "4.17.11",
7272
"semver": "5.3.0",
7373
"temp": "0.8.3",
7474
"thenify-all": "1.6.0",

packages/composer-connector-proxy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"watchify": "3.7.0"
7878
},
7979
"dependencies": {
80-
"socket.io-client": "1.7.3",
80+
"socket.io-client": "1.7.4",
8181
"uuid": "3.0.1"
8282
},
8383
"nyc": {

packages/composer-documentation/lib/processors/visitors/info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const FunctionDeclaration = require('composer-common').FunctionDeclaration;
3232
const EventDeclaration = require('composer-common').EventDeclaration;
3333
const Query = require('composer-common').Query;
3434
const QueryFile = require('composer-common').QueryFile;
35-
const debug = require('debug')('concerto:infovisitor');
35+
const debug = require('debug')('composer:infovisitor');
3636

3737
/**
3838
* Convert the contents of a {@link ModelManager} instance to a set of JSON

packages/composer-documentation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"debug-stream": "3.0.1",
4444
"doctrine": "2.0.0",
4545
"js-yaml": "3.10.0",
46-
"lodash": "4.17.4",
46+
"lodash": "4.17.11",
4747
"lodash.clonedeep": "4.5.0",
4848
"map-stream": "0.1.0",
4949
"markdown-it": "8.4.0",

packages/composer-playground-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"nyc": "11.1.0",
7676
"proxyquire": "1.7.11",
7777
"sinon": "2.3.8",
78-
"socket.io-client": "1.7.3"
78+
"socket.io-client": "1.7.4"
7979
},
8080
"dependencies": {
8181
"async": "2.5.0",

packages/composer-playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
"karma-webpack": "2.0.2",
228228
"left-pad": "1.1.3",
229229
"license-check-and-add": "2.3.1",
230-
"lodash": "4.17.4",
230+
"lodash": "4.17.11",
231231
"lz-string": "1.4.4",
232232
"marked": "0.3.9",
233233
"mocha": "3.4.2",

packages/composer-rest-server/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,27 @@
3939
"composer-common": "0.19.15",
4040
"composer-wallet-filesystem": "0.19.15",
4141
"composer-wallet-inmemory": "0.19.15",
42-
"compression": "1.0.3",
42+
"compression": "1.7.3",
4343
"connect-ensure-login": "0.1.1",
4444
"cookie-parser": "1.4.3",
4545
"cors": "2.5.2",
4646
"express-flash": "0.0.2",
4747
"express-session": "1.15.1",
4848
"formidable": "1.1.1",
4949
"helmet": "1.3.0",
50-
"inquirer": "3.0.1",
51-
"lodash": "4.17.4",
50+
"inquirer": "3.3.0",
51+
"lodash": "4.17.11",
5252
"loopback": "3.4.0",
5353
"loopback-boot": "2.25.0",
5454
"loopback-component-explorer": "5.2.0",
5555
"loopback-component-passport": "3.2.0",
5656
"loopback-connector-composer": "0.19.15",
5757
"passport-local": "1.0.0",
5858
"pug": "2.0.0",
59-
"serve-favicon": "2.0.1",
59+
"serve-favicon": "2.5.0",
6060
"strong-error-handler": "1.0.1",
6161
"touch": "1.0.0",
62-
"ws": "3.0.0",
62+
"ws": "3.3.3",
6363
"yargs": "10.0.3"
6464
},
6565
"devDependencies": {

packages/composer-runtime-embedded/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"dependencies": {
7676
"composer-runtime": "0.19.15",
7777
"composer-runtime-pouchdb": "0.19.15",
78-
"debug": "2.6.2",
78+
"debug": "2.6.9",
7979
"istanbul-lib-instrument": "1.7.2",
8080
"pouchdb-adapter-memory": "6.2.0",
8181
"request": "2.81.0",

0 commit comments

Comments
 (0)