@ledgerhq/hw-app-eth
Advanced tools
Comparing version 4.2.0 to 4.3.0-beta.d226ed3b
@@ -1,3 +0,3 @@ | ||
// flow-typed signature: e8ff6b87e2bf6d7df329077e048036ef | ||
// flow-typed version: <<STUB>>/@ledgerhq/hw-transport_v^2.0.1/flow_v0.63.1 | ||
// flow-typed signature: 696def0242d98e513b6490ab5780c479 | ||
// flow-typed version: <<STUB>>/@ledgerhq/hw-transport_v^4.0.0/flow_v0.66.0 | ||
@@ -37,6 +37,2 @@ /** | ||
declare module '@ledgerhq/hw-transport/flow-typed/npm/invariant_v2.x.x' { | ||
declare module.exports: any; | ||
} | ||
declare module '@ledgerhq/hw-transport/src/Transport' { | ||
@@ -56,7 +52,4 @@ declare module.exports: any; | ||
} | ||
declare module '@ledgerhq/hw-transport/flow-typed/npm/invariant_v2.x.x.js' { | ||
declare module.exports: $Exports<'@ledgerhq/hw-transport/flow-typed/npm/invariant_v2.x.x'>; | ||
} | ||
declare module '@ledgerhq/hw-transport/src/Transport.js' { | ||
declare module.exports: $Exports<'@ledgerhq/hw-transport/src/Transport'>; | ||
} |
@@ -32,2 +32,9 @@ "use strict"; | ||
transport.setScrambleKey("w0w"); | ||
var self = this; | ||
var _arr = ["getAddress", "signTransaction", "signPersonalMessage"]; | ||
for (var _i = 0; _i < _arr.length; _i++) { | ||
var methodName = _arr[_i]; | ||
self[methodName] = transport.globalLock(methodName, self[methodName], self); | ||
} | ||
} | ||
@@ -34,0 +41,0 @@ |
{ | ||
"name": "@ledgerhq/hw-app-eth", | ||
"version": "4.2.0", | ||
"version": "4.3.0-beta.d226ed3b", | ||
"description": "Ledger Hardware Wallet Ethereum Application API", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^4.2.0" | ||
"@ledgerhq/hw-transport": "^4.3.0-beta.d226ed3b" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
@@ -36,2 +36,15 @@ /******************************************************************************** | ||
transport.setScrambleKey("w0w"); | ||
const self: Object = this; | ||
for (let methodName of [ | ||
"getAddress", | ||
"signTransaction", | ||
"signPersonalMessage" | ||
]) { | ||
self[methodName] = transport.globalLock( | ||
methodName, | ||
self[methodName], | ||
self | ||
); | ||
} | ||
} | ||
@@ -38,0 +51,0 @@ |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
58674
826
0
1