trezor-link
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -135,3 +135,9 @@ "use strict"; | ||
if (debug) { | ||
console.log(`[trezor-link] Calling ${ objName }.${ name }(${ argsArr.map(f => JSON.stringify(f)).join(`, `) })`); | ||
console.log(`[trezor-link] Calling ${ objName }.${ name }(${ argsArr.map(f => { | ||
const stringified = JSON.stringify(f); | ||
if (stringified.length > 1000) { | ||
return `${ stringified.substring(0, 1000) }...`; | ||
} | ||
return stringified; | ||
}).join(`, `) })`); | ||
} | ||
@@ -138,0 +144,0 @@ // assuming that the function is a promise |
@@ -323,3 +323,3 @@ 'use strict'; | ||
this._udevError = false; | ||
this.version = "0.2.5"; | ||
this.version = "0.2.6"; | ||
this.debug = false; | ||
@@ -326,0 +326,0 @@ } |
@@ -167,3 +167,3 @@ 'use strict'; | ||
this.infos = {}; | ||
this.version = "0.2.5"; | ||
this.version = "0.2.6"; | ||
this.debug = false; | ||
@@ -170,0 +170,0 @@ this.ports = []; |
@@ -176,3 +176,3 @@ 'use strict'; | ||
this._devices = {}; | ||
this.version = "0.2.5"; | ||
this.version = "0.2.6"; | ||
this.debug = false; | ||
@@ -179,0 +179,0 @@ } |
{ | ||
"name": "trezor-link", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Trezor Link", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -10,3 +10,9 @@ /* @flow weak */ | ||
if (debug) { | ||
console.log(`[trezor-link] Calling ${objName}.${name}(${argsArr.map(f => JSON.stringify(f)).join(`, `)})`); | ||
console.log(`[trezor-link] Calling ${objName}.${name}(${argsArr.map(f => { | ||
const stringified = JSON.stringify(f); | ||
if (stringified.length > 1000) { | ||
return `${stringified.substring(0, 1000)}...`; | ||
} | ||
return stringified; | ||
}).join(`, `)})`); | ||
} | ||
@@ -13,0 +19,0 @@ // assuming that the function is a promise |
Sorry, the diff of this file is not supported yet
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
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
442235
9204