Socket
Socket
Sign inDemoInstall

fabric-contract-api

Package Overview
Dependencies
Maintainers
1
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fabric-contract-api - npm Package Compare versions

Comparing version 2.0.0-snapshot.103 to 2.0.0-snapshot.104

.nyc_output/65d3ebc6-11ea-4827-aa0b-57aab97360f2.json

10

lib/logger.js

@@ -142,9 +142,11 @@ /*

if (!process.listeners('unhandledRejection').some(e => e.name === 'loggerUnhandledRejectionFn')) {
const loggerUnhandledRejectionFn = (reason, p) => {
loggers._.error('Unhandled Rejection reason ' + reason + ' promise ' + util.inspect(p));
};
process.on('unhandledRejection', loggerUnhandledRejectionFn);
}
process.on('unhandledRejection', (reason, p) => {
loggers._.error('Unhandled Rejection reason ' + reason + ' promise ' + util.inspect(p));
});
}
}
firstTime();

48

package.json
{
"name": "fabric-contract-api",
"version": "2.0.0-snapshot.103",
"version": "2.0.0-snapshot.104",
"tag": "unstable",

@@ -12,3 +12,8 @@ "description": "A node.js implementation of Hyperledger Fabric chaincode shim, to allow endorsing peers and user-provided chaincodes to communicate with each other",

"scripts": {
"compile": "tsc --project test/typescript"
"buildt": "tsc --project test/typescript",
"test": "nyc mocha --recursive 'test/unit/**/*.js'",
"build": "npm run lint && npm run test:unit && npm run test:schema",
"lint": "eslint ./lib/",
"test:unit": "npm run test",
"test:schema": "ajv compile -s ./schema/contract-schema.json && ajv validate -s ./schema/contract-schema.json -d ./schema/example-full.json"
},

@@ -25,3 +30,24 @@ "keywords": [

"license": "Apache-2.0",
"types": "./types/index.d.ts",
"nyc": {
"exclude": [
"coverage/**",
"test/**",
"gulpfile.js"
],
"reporter": [
"text-summary",
"html",
"cobertura"
],
"all": true,
"check-coverage": true,
"statements": 100,
"branches": 100,
"functions": 100,
"lines": 100
},
"dependencies": {
"fabric-shim-api": "2.0.0-snapshot",
"fast-safe-stringify": "~2.0.7",
"get-params": "^0.1.2",

@@ -31,4 +57,18 @@ "reflect-metadata": "^0.1.12",

},
"types": "./types/index.d.ts",
"devDependencies": {}
"devDependencies": {
"ajv": "^6.5.5",
"ajv-cli": "^3.0.0",
"chai": "^4.1.1",
"chai-as-promised": "^7.1.1",
"chai-things": "^0.2.0",
"eslint": "4.0.0",
"gulp": "^4.0.0",
"gulp-debug": "~4.0.0",
"gulp-eslint": "~6.0.0",
"mocha": "5.2.0",
"nyc": "14.1.1",
"rewire": "~4.0.1",
"sinon": "~7.4.2",
"typescript": "3.0.1"
}
}

@@ -10,4 +10,4 @@ /*

import { Logger } from 'winston';
import { ChaincodeStub, ClientIdentity } from 'fabric-shim';
import { ChaincodeStub, ClientIdentity } from 'fabric-shim-api';
export class Context {

@@ -21,3 +21,3 @@ stub: ChaincodeStub;

}
export class Contract {

@@ -24,0 +24,0 @@ constructor(name?: string);

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