@fuel-ts/mnemonic
Advanced tools
Comparing version 0.0.0-master-9a71ed8 to 0.0.0-master-9c2da99
@@ -8,3 +8,3 @@ "use strict"; | ||
const sha2_1 = require("@ethersproject/sha2"); | ||
const english_1 = require("@fuel-ts/wordlists/words/english"); | ||
const wordlists_1 = require("@fuel-ts/wordlists"); | ||
const utils_1 = require("./utils"); | ||
@@ -40,3 +40,3 @@ // | ||
*/ | ||
constructor(wordlist = english_1.english) { | ||
constructor(wordlist = wordlists_1.english) { | ||
this.wordlist = wordlist; | ||
@@ -67,3 +67,3 @@ assertWordList(this.wordlist); | ||
*/ | ||
static mnemonicToEntropy(phrase, wordlist = english_1.english) { | ||
static mnemonicToEntropy(phrase, wordlist = wordlists_1.english) { | ||
const words = (0, utils_1.getWords)(phrase); | ||
@@ -78,3 +78,3 @@ assertMnemonic(words); | ||
*/ | ||
static entropyToMnemonic(entropy, wordlist = english_1.english) { | ||
static entropyToMnemonic(entropy, wordlist = wordlists_1.english) { | ||
const entropyBytes = (0, bytes_1.arrayify)(entropy, { | ||
@@ -81,0 +81,0 @@ allowMissingPrefix: true, |
{ | ||
"name": "@fuel-ts/mnemonic", | ||
"version": "0.0.0-master-9a71ed8", | ||
"version": "0.0.0-master-9c2da99", | ||
"description": "Mnemonic implementation from BIP39", | ||
@@ -18,5 +18,5 @@ "author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)", | ||
"@ethersproject/sha2": "^5.5.0", | ||
"@fuel-ts/wordlists": "0.0.0-master-9a71ed8" | ||
"@fuel-ts/wordlists": "0.0.0-master-9c2da99" | ||
}, | ||
"gitHead": "eb0ad8b4ba72308e42de752b0fb7ab53b95357f4" | ||
"gitHead": "de83c3a22b6f222920427b767ec16d1af83425d4" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
49217
+ Added@fuel-ts/wordlists@0.0.0-master-9c2da99(transitive)
- Removed@fuel-ts/wordlists@0.0.0-master-9a71ed8(transitive)