fabric-contract-api
Advanced tools
Comparing version 2.0.0-snapshot.103 to 2.0.0-snapshot.104
@@ -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(); |
{ | ||
"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); |
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
AI-detected potential malware
Supply chain riskAI has identified this package as malware. This is a strong signal that the package may be malicious.
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
416929
51
2123
5
14
1
+ Addedfast-safe-stringify@~2.0.7
+ Addedfast-safe-stringify@2.0.8(transitive)