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

fabric-contract-api

Package Overview
Dependencies
Maintainers
1
Versions
221
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.89 to 2.0.0-snapshot.90

2

lib/logger.js

@@ -39,3 +39,3 @@ /*

// configured by the peer
const level = process.env.CORE_CHAINCODE_LOGGING_SHIM;
const level = process.env.CORE_CHAINCODE_LOGGING_LEVEL;
let loglevel = 'info';

@@ -42,0 +42,0 @@ if (typeof level === 'string') {

{
"name": "fabric-contract-api",
"version": "2.0.0-snapshot.89",
"version": "2.0.0-snapshot.90",
"tag": "unstable",

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

@@ -7,10 +7,16 @@ /*

*/
declare module 'fabric-contract-api' {
import { LoggerInstance } from 'winston';
import { ChaincodeStub, ClientIdentity } from 'fabric-shim';
export class Context {
stub: ChaincodeStub;
clientIdentity: ClientIdentity;
logger: {
setLevel: (level: string) => void,
getLogger: (name?: string) => LoggerInstance
}
}
export class Contract {

@@ -17,0 +23,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