@ledgerhq/hw-app-str
Advanced tools
Comparing version 4.19.0 to 4.21.0-beta.12bfb9a2
@@ -122,5 +122,2 @@ "use strict"; | ||
function checkStellarBip32Path(path) { | ||
if (!path.startsWith("44'/148'")) { | ||
throw new Error("Not a Stellar BIP32 path. Path: " + path + "." + " The Stellar app is authorized only for paths starting with 44'/148'." + " Example: 44'/148'/0'"); | ||
} | ||
path.split("/").forEach(function (element) { | ||
@@ -127,0 +124,0 @@ if (!element.toString().endsWith("'")) { |
{ | ||
"name": "@ledgerhq/hw-app-str", | ||
"version": "4.19.0", | ||
"version": "4.21.0-beta.12bfb9a2", | ||
"description": "Ledger Hardware Wallet Stellar Application API", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^4.19.0", | ||
"@ledgerhq/hw-transport": "^4.21.0-beta.12bfb9a2", | ||
"base32.js": "^0.1.0", | ||
@@ -40,6 +40,6 @@ "sha.js": "^2.3.6", | ||
"flow": "flow", | ||
"clean": "rm -rf lib/", | ||
"build": "cd ../.. && export PATH=$(yarn bin):$PATH && cd - && babel --source-maps -d lib src && flow-copy-source -v src lib", | ||
"watch": "cd ../.. && export PATH=$(yarn bin):$PATH && cd - && babel --watch --source-maps -d lib src & flow-copy-source -w -v src lib" | ||
"clean": "bash ../../script/clean.sh", | ||
"build": "bash ../../script/build.sh", | ||
"watch": "bash ../../script/watch.sh" | ||
} | ||
} |
@@ -107,11 +107,2 @@ /******************************************************************************** | ||
export function checkStellarBip32Path(path: string): void { | ||
if (!path.startsWith("44'/148'")) { | ||
throw new Error( | ||
"Not a Stellar BIP32 path. Path: " + | ||
path + | ||
"." + | ||
" The Stellar app is authorized only for paths starting with 44'/148'." + | ||
" Example: 44'/148'/0'" | ||
); | ||
} | ||
path.split("/").forEach(function(element) { | ||
@@ -118,0 +109,0 @@ if (!element.toString().endsWith("'")) { |
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
68258
11
756
1