fabric-shim
Advanced tools
Comparing version 2.4.0-dev-20211108 to 2.4.0-dev-20211109
@@ -1,1 +0,1 @@ | ||
{"processes":{"41d2f76a-c2ed-4eed-962f-0181134baabe":{"parent":null,"children":[]},"a86b4d43-daee-4928-84e1-b9432210133f":{"parent":null,"children":[]}},"files":{"/home/vsts/work/1/s/libraries/fabric-shim/cli.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/index.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/chaincode.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/metadata.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/metadata/generateCommand.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/metadata/lib/generate.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/serverCommand.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/startCommand.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/contract-spi/bootstrap.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/contract-spi/chaincodefromcontract.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/contract-spi/datamarshall.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/contract-spi/systemcontract.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/handler.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/iterators.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/logger.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/server.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/stub.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/utils/statebased.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/utils/utils.js":["41d2f76a-c2ed-4eed-962f-0181134baabe","a86b4d43-daee-4928-84e1-b9432210133f"]},"externalIds":{}} | ||
{"processes":{"7d57e5b1-e46b-4374-9880-64f49c130f0e":{"parent":null,"children":[]},"7eefa2a8-8237-48bb-83a6-da6611526720":{"parent":null,"children":[]}},"files":{"/home/vsts/work/1/s/libraries/fabric-shim/lib/logger.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/stub.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/startCommand.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/chaincode.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/utils/utils.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/handler.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/iterators.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/server.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/utils/statebased.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/contract-spi/bootstrap.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/contract-spi/chaincodefromcontract.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/contract-spi/datamarshall.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/serverCommand.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/metadata.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/metadata/lib/generate.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/cmds/metadata/generateCommand.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/lib/contract-spi/systemcontract.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/index.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"],"/home/vsts/work/1/s/libraries/fabric-shim/cli.js":["7d57e5b1-e46b-4374-9880-64f49c130f0e","7eefa2a8-8237-48bb-83a6-da6611526720"]},"externalIds":{}} |
@@ -19,6 +19,6 @@ { | ||
"libraries/fabric-shim/lib/contract-spi/bootstrap.js": "99beb6add5e13a170fbb9ebcf8db7191c6f6db5a", | ||
"libraries/fabric-shim/lib/contract-spi/chaincodefromcontract.js": "447d7f8c882ffc8cbbd29f9e05ecc346b1ef8945", | ||
"libraries/fabric-shim/lib/contract-spi/chaincodefromcontract.js": "1a95e4e777e030be4081580792b7a12bf74e26a9", | ||
"libraries/fabric-shim/lib/contract-spi/datamarshall.js": "b38d83260b32645a70cad87fa5bac28c0f5b5fe5", | ||
"libraries/fabric-shim/lib/contract-spi/systemcontract.js": "43fdcc31a79a5f505c1da39d8db03ab6a0de60b6", | ||
"libraries/fabric-shim/lib/handler.js": "f61be7187f4b4c177e0aa4c2dbfc4efab4443072", | ||
"libraries/fabric-shim/lib/handler.js": "24b047da714db5c26cf24f5ea4b38979af78f69e", | ||
"libraries/fabric-shim/lib/iterators.js": "64ca53ccae88c12095f43b2d164efbe49d9cc4fa", | ||
@@ -30,3 +30,3 @@ "libraries/fabric-shim/lib/logger.js": "930242e6c90270cf91378a4b167a4d5b3ba28d7e", | ||
"libraries/fabric-shim/lib/utils/utils.js": "64a2a327844f7a3309beb0010f8389f8d038cf73", | ||
"libraries/fabric-shim/package.json": "610e1059809910ff476af31409bad93258a0fb88", | ||
"libraries/fabric-shim/package.json": "b4f1aa94cc31fa7b1cef8c757a4f3d4334c09016", | ||
"libraries/fabric-shim/protos/common/collection.proto": "a09e815f81e4e9f05cb55d9e7fa8562141090743", | ||
@@ -85,3 +85,3 @@ "libraries/fabric-shim/protos/common/common.proto": "24cbe1a3865680a16aaad8a1224f5d4e0d895893", | ||
"libraries/fabric-shim/test/unit/contract-spi/systemcontract.js": "19e0aa5b074cf11f4296a3203ec891e36f86e787", | ||
"libraries/fabric-shim/test/unit/handler.js": "f5bae57f96b462b9a0141e34f971e40700b742ee", | ||
"libraries/fabric-shim/test/unit/handler.js": "691a98fa58adab6e3af6688d36dc05f99aa47c8c", | ||
"libraries/fabric-shim/test/unit/iterators.js": "4c3b768fa02e1e1b648d52c1435d2f7947253da8", | ||
@@ -88,0 +88,0 @@ "libraries/fabric-shim/test/unit/logger.js": "b829e4015caac88a40f66408b393a7811e18c9b0", |
@@ -395,3 +395,3 @@ /* | ||
} catch (error) { | ||
return shim.error(error); | ||
return shim.error(error.message); | ||
} | ||
@@ -403,3 +403,3 @@ } | ||
logger.error(`${loggerPrefix} ${error.toString()}`); | ||
return shim.error(error); | ||
return shim.error(error.message); | ||
} | ||
@@ -406,0 +406,0 @@ } |
@@ -624,3 +624,3 @@ /* | ||
if (resp.status >= Stub.RESPONSE_CODE.ERROR) { | ||
const errMsg = util.format('%s Calling chaincode %s() returned error response [%s]. Sending ERROR message back to peer', | ||
const errMsg = util.format('%s Calling chaincode %s() returned error response [%s]. Sending COMPLETED message back to peer', | ||
loggerPrefix, method, resp.message); | ||
@@ -630,4 +630,4 @@ logger.error(errMsg); | ||
nextStateMsg = { | ||
type: fabprotos.protos.ChaincodeMessage.Type.ERROR, | ||
payload: Buffer.from('' + resp.message), | ||
type: fabprotos.protos.ChaincodeMessage.Type.COMPLETED, | ||
payload: fabprotos.protos.Response.encode(resp).finish(), | ||
txid: msg.txid, | ||
@@ -634,0 +634,0 @@ channel_id: msg.channel_id |
{ | ||
"name": "fabric-shim", | ||
"version": "2.4.0-dev-20211108", | ||
"version": "2.4.0-dev-20211109", | ||
"tag": "beta", | ||
@@ -50,4 +50,4 @@ "description": "A node.js implementation of Hyperledger Fabric chaincode shim, to allow endorsing peers and user-provided chaincodes to communicate with each other", | ||
"ajv": "^6.12.2", | ||
"fabric-contract-api": "2.4.0-dev-20211108", | ||
"fabric-shim-api": "2.4.0-dev-20211108", | ||
"fabric-contract-api": "2.4.0-dev-20211109", | ||
"fabric-shim-api": "2.4.0-dev-20211109", | ||
"fs-extra": "^10.0.0", | ||
@@ -54,0 +54,0 @@ "reflect-metadata": "^0.1.13", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5912176
+ Addedfabric-contract-api@2.4.0-dev-20211109(transitive)
+ Addedfabric-shim-api@2.4.0-dev-20211109(transitive)
- Removedfabric-contract-api@2.4.0-dev-20211108(transitive)
- Removedfabric-shim-api@2.4.0-dev-20211108(transitive)