fabric-shim
Advanced tools
Comparing version 1.1.0-snapshot.12 to 1.1.0-snapshot.13
@@ -386,5 +386,1 @@ /* | ||
module.exports.ClientIdentity = ClientIdentity; | ||
// expose the Stub and Iterators to allow ability to write unit tests for users of fabric chaincode node | ||
module.exports.Stub = Stub; | ||
module.exports.Iterators = require('./iterators'); |
@@ -12,3 +12,3 @@ /* | ||
const grpc = require('grpc'); | ||
const { URL } = require('url'); | ||
const urlParser = require('url'); | ||
const path = require('path'); | ||
@@ -502,3 +502,3 @@ const util = require('util'); | ||
if (message.type === _serviceProto.ChaincodeMessage.Type.ERROR) { | ||
const errorData = message.payload.toString('utf8'); | ||
const errorData = Buffer.from(message.payload.buffer).toString('utf8'); | ||
throw new Error(errorData); | ||
@@ -595,3 +595,3 @@ } | ||
type: _serviceProto.ChaincodeMessage.Type.ERROR, | ||
payload: Buffer.from('' + resp.message), | ||
payload: Buffer.from(errMsg), | ||
txid: msg.txid, | ||
@@ -693,3 +693,3 @@ channel_id: msg.channel_id | ||
constructor(url /*string*/, opts ) { | ||
let purl = new URL(url); | ||
let purl = urlParser.parse(url, true); | ||
let protocol; | ||
@@ -696,0 +696,0 @@ if (purl.protocol) { |
{ | ||
"name": "fabric-shim", | ||
"version": "1.1.0-snapshot.12", | ||
"version": "1.1.0-snapshot.13", | ||
"description": "A node.js implementation of Hyperledger Fabric chaincode shim, to allow endorsing peers and user-provided chaincodes to communicate with each other", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110424
1666