Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@theledger/fabric-mock-stub

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theledger/fabric-mock-stub - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

tsconfig.spec.json

2

dist/ChaincodeError.d.ts

@@ -7,3 +7,3 @@ /**

constructor(key: string, data?: any, stack?: any);
readonly serialized: string;
get serialized(): string;
}
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {

@@ -7,0 +10,0 @@ extendStatics(d, b);

@@ -34,2 +34,3 @@ /// <reference types="node" />

constructor(name: string, cc: ChaincodeInterface, usercert?: string);
getPrivateDataHash(collection: string, key: string): Promise<Buffer>;
/**

@@ -36,0 +37,0 @@ * @returns {string}

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -85,2 +86,5 @@ });

}
ChaincodeMockStub.prototype.getPrivateDataHash = function (collection, key) {
throw new Error('Method not implemented.');
};
/**

@@ -87,0 +91,0 @@ * @returns {string}

@@ -12,3 +12,3 @@ /// <reference types="node" />

constructor(data: Iterators.KeyModification[], txID: string);
readonly response: {
get response(): {
results: Iterators.KeyModification[];

@@ -15,0 +15,0 @@ has_more: boolean;

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -8,0 +9,0 @@ });

"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {

@@ -7,0 +10,0 @@ extendStatics(d, b);

@@ -12,3 +12,3 @@ /// <reference types="node" />

constructor(data: Iterators.KV[], txID: string);
readonly response: {
get response(): {
results: Iterators.KV[];

@@ -15,0 +15,0 @@ has_more: boolean;

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -8,0 +9,0 @@ });

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -8,0 +9,0 @@ });

{
"name": "@theledger/fabric-mock-stub",
"version": "4.0.0",
"version": "5.0.0",
"description": "Mock implementation of the hyperledger fabric-shim package for testing",

@@ -30,6 +30,6 @@ "main": "dist/index.js",

"@types/chai": "^4.0.4",
"@types/lodash": "^4.14.104",
"@types/mocha": "^5.2.1",
"@types/node": "^10.3.0",
"@types/winston": "^2.3.8",
"@types/lodash": "^4.14.104",
"chai": "^4.1.2",

@@ -43,12 +43,13 @@ "codecov": "^3.0.4",

"rimraf": "^2.6.2",
"ts-node": "^5.0.1",
"tslint": "5.9.1",
"typedoc": "^0.11.0",
"typescript": "^2.5.3"
"typedoc": "^0.16.2"
},
"dependencies": {
"@theledger/couchdb-query-engine": "^2.4.4",
"@types/google-protobuf": "^3.7.2",
"fabric-shim": "^1.4.x",
"google-protobuf": "^3.6.1",
"lodash": "^4.17.11",
"ts-node": "^8.6.2",
"typescript": "^3.7.4",
"winston": "^2.4.0"

@@ -55,0 +56,0 @@ },

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

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