Socket
Socket
Sign inDemoInstall

fabric-shim

Package Overview
Dependencies
Maintainers
2
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fabric-shim - npm Package Compare versions

Comparing version 1.1.0-snapshot.12 to 1.1.0-snapshot.13

4

lib/chaincode.js

@@ -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');

8

lib/handler.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc