fabric-contract-api
Advanced tools
Comparing version 2.0.0-snapshot.89 to 2.0.0-snapshot.90
@@ -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); |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
59855
1494