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

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
  • Loading branch information
mbwhite committed Apr 20, 2018
1 parent eb2f178 commit 103f89d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 22 deletions.
11 changes: 0 additions & 11 deletions packages/composer-common/lib/codegen/javascriptparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
'use strict';

const doctrine = require('doctrine');
// const esprima = require('esprima'); see comment in getExample fn
const acorn = require('acorn');

/**
Expand Down Expand Up @@ -548,16 +547,6 @@ class JavaScriptParser {
result = tags[0].description;
}

// Currently esprima seems to have a problem with the async await code.
// TODO: Investigate if this can be handled
// try {
// // Pass as a function so that return statements are valid
// let program = 'function testSyntax() {' + result + '}';
// esprima.parse(program);
// } catch (e) {
// throw Error('Malformed JSDoc Comment. Invalid @example tag: ' + comment);
// }

return result;
}
}
Expand Down
6 changes: 2 additions & 4 deletions packages/composer-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,17 @@
"dependencies": {
"acorn": "5.1.2",
"axios": "0.17.1",
"commander": "2.9.0",
"comment-parser": "0.4.0",
"config": "1.24.0",
"debug": "2.6.2",
"doctrine": "2.0.0",
"esprima": "3.1.2",
"fs-extra": "1.0.0",
"homedir": "0.6.0",
"js-yaml": "3.10.0",
"jsrsasign": "8.0.3",
"jszip": "3.1.3",
"left-pad": "1.1.3",
"lodash": "4.17.4",
"lodash.clonedeep": "4.5.0",
"lodash.padstart": "4.5.0",
"lorem-ipsum": "1.0.4",
"minimatch": "3.0.3",
"mkdirp": "0.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/composer-connector-hlfv1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"mocha": "3.4.2",
"nyc": "11.1.0",
"sinon": "2.3.8",
"composer-common": "0.19.1"
"composer-common": "0.19.2"
},
"nyc": {
"exclude": [
Expand Down
2 changes: 1 addition & 1 deletion packages/composer-connector-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"serializerr": "1.0.3",
"sinon": "2.3.8",
"watchify": "3.7.0",
"composer-common": "0.19.1"
"composer-common": "0.19.2"
},
"peerDependencies": {
"composer-common": "0.19.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/composer-connector-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"yargs": "10.0.3"
},
"devDependencies": {
"composer-common": "0.19.1",
"composer-common": "0.19.2",
"chai": "3.5.0",
"composer-connector-embedded": "0.19.2",
"eslint": "3.17.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/composer-connector-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"sinon": "2.3.8",
"transform-loader": "0.2.4",
"watchify": "3.7.0",
"composer-common": "0.19.1"
"composer-common": "0.19.2"
},
"peerDependencies": {
"composer-common": "0.19.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/composer-runtime-hlfv1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"mocha": "3.4.2",
"nyc": "11.1.0",
"sinon": "2.3.8",
"composer-common": "0.19.1"
"composer-common": "0.19.2"
},
"license-check-and-add-config": {
"folder": ".",
Expand Down Expand Up @@ -92,7 +92,7 @@
"composer-common": "0.19.2"
},
"dependencies": {
"composer-runtime": "0.19.1",
"composer-runtime": "0.19.2",
"fabric-shim": "1.1.0",
"jsrsasign": "8.0.3",
"request": "2.81.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/composer-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"nyc": "11.1.0",
"sinon": "2.3.8",
"uglifyify": "3.0.4",
"composer-common": "0.19.1"
"composer-common": "0.19.2"
},
"license-check-and-add-config": {
"folder": ".",
Expand Down

0 comments on commit 103f89d

Please sign in to comment.