@ethersproject/wordlists
Advanced tools
Comparing version 5.4.0 to 5.5.0
@@ -1,2 +0,2 @@ | ||
export declare const version = "wordlists/5.4.0"; | ||
export declare const version = "wordlists/5.5.0"; | ||
//# sourceMappingURL=_version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = "wordlists/5.4.0"; | ||
export const version = "wordlists/5.5.0"; | ||
//# sourceMappingURL=_version.js.map |
@@ -1,21 +0,6 @@ | ||
import { langCz as cz } from "./lang-cz"; | ||
"use strict"; | ||
import { langEn as en } from "./lang-en"; | ||
import { langEs as es } from "./lang-es"; | ||
import { langFr as fr } from "./lang-fr"; | ||
import { langJa as ja } from "./lang-ja"; | ||
import { langKo as ko } from "./lang-ko"; | ||
import { langIt as it } from "./lang-it"; | ||
import { langZhCn as zh_cn, langZhTw as zh_tw } from "./lang-zh"; | ||
export const wordlists = { | ||
cz: cz, | ||
en: en, | ||
es: es, | ||
fr: fr, | ||
it: it, | ||
ja: ja, | ||
ko: ko, | ||
zh: zh_cn, | ||
zh_cn: zh_cn, | ||
zh_tw: zh_tw | ||
en: en | ||
}; | ||
//# sourceMappingURL=wordlists.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const version = "wordlists/5.4.0"; | ||
export declare const version = "wordlists/5.5.0"; | ||
//# sourceMappingURL=_version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = "wordlists/5.4.0"; | ||
exports.version = "wordlists/5.5.0"; | ||
//# sourceMappingURL=_version.js.map |
@@ -26,3 +26,3 @@ "use strict"; | ||
wordlist_1.logger.checkNormalize(); | ||
return strings_1.toUtf8String(Array.prototype.filter.call(strings_1.toUtf8Bytes(word.normalize("NFD").toLowerCase()), function (c) { | ||
return (0, strings_1.toUtf8String)(Array.prototype.filter.call((0, strings_1.toUtf8Bytes)(word.normalize("NFD").toLowerCase()), function (c) { | ||
return ((c >= 65 && c <= 90) || (c >= 97 && c <= 123)); | ||
@@ -33,3 +33,3 @@ })); | ||
var output = []; | ||
Array.prototype.forEach.call(strings_1.toUtf8Bytes(word), function (c) { | ||
Array.prototype.forEach.call((0, strings_1.toUtf8Bytes)(word), function (c) { | ||
// Acute accent | ||
@@ -50,3 +50,3 @@ if (c === 47) { | ||
}); | ||
return strings_1.toUtf8String(output); | ||
return (0, strings_1.toUtf8String)(output); | ||
} | ||
@@ -53,0 +53,0 @@ function loadWords(lang) { |
@@ -26,3 +26,3 @@ "use strict"; | ||
wordlist_1.logger.checkNormalize(); | ||
return strings_1.toUtf8String(Array.prototype.filter.call(strings_1.toUtf8Bytes(word.normalize("NFD").toLowerCase()), function (c) { | ||
return (0, strings_1.toUtf8String)(Array.prototype.filter.call((0, strings_1.toUtf8Bytes)(word.normalize("NFD").toLowerCase()), function (c) { | ||
return ((c >= 65 && c <= 90) || (c >= 97 && c <= 123)); | ||
@@ -33,3 +33,3 @@ })); | ||
var output = []; | ||
Array.prototype.forEach.call(strings_1.toUtf8Bytes(word), function (c) { | ||
Array.prototype.forEach.call((0, strings_1.toUtf8Bytes)(word), function (c) { | ||
// Acute accent | ||
@@ -49,3 +49,3 @@ if (c === 47) { | ||
}); | ||
return strings_1.toUtf8String(output); | ||
return (0, strings_1.toUtf8String)(output); | ||
} | ||
@@ -52,0 +52,0 @@ function loadWords(lang) { |
@@ -42,3 +42,3 @@ "use strict"; | ||
function hex(word) { | ||
return bytes_1.hexlify(strings_1.toUtf8Bytes(word)); | ||
return (0, bytes_1.hexlify)((0, strings_1.toUtf8Bytes)(word)); | ||
} | ||
@@ -55,9 +55,9 @@ var KiYoKu = "0xe3818de38284e3818f"; | ||
// Delete the diacritic marks | ||
transform[strings_1.toUtf8String([227, 130, 154])] = false; | ||
transform[strings_1.toUtf8String([227, 130, 153])] = false; | ||
transform[(0, strings_1.toUtf8String)([227, 130, 154])] = false; | ||
transform[(0, strings_1.toUtf8String)([227, 130, 153])] = false; | ||
// Some simple transforms that sort out most of the order | ||
transform[strings_1.toUtf8String([227, 130, 133])] = strings_1.toUtf8String([227, 130, 134]); | ||
transform[strings_1.toUtf8String([227, 129, 163])] = strings_1.toUtf8String([227, 129, 164]); | ||
transform[strings_1.toUtf8String([227, 130, 131])] = strings_1.toUtf8String([227, 130, 132]); | ||
transform[strings_1.toUtf8String([227, 130, 135])] = strings_1.toUtf8String([227, 130, 136]); | ||
transform[(0, strings_1.toUtf8String)([227, 130, 133])] = (0, strings_1.toUtf8String)([227, 130, 134]); | ||
transform[(0, strings_1.toUtf8String)([227, 129, 163])] = (0, strings_1.toUtf8String)([227, 129, 164]); | ||
transform[(0, strings_1.toUtf8String)([227, 130, 131])] = (0, strings_1.toUtf8String)([227, 130, 132]); | ||
transform[(0, strings_1.toUtf8String)([227, 130, 135])] = (0, strings_1.toUtf8String)([227, 130, 136]); | ||
// Normalize words using the transform | ||
@@ -102,3 +102,3 @@ function normalize(word) { | ||
} | ||
wordlist.push(strings_1.toUtf8String(word)); | ||
wordlist.push((0, strings_1.toUtf8String)(word)); | ||
} | ||
@@ -105,0 +105,0 @@ } |
@@ -39,3 +39,3 @@ "use strict"; | ||
} | ||
return strings_1.toUtf8String([225, (code >> 6) + 132, (code & 0x3f) + 128]); | ||
return (0, strings_1.toUtf8String)([225, (code >> 6) + 132, (code & 0x3f) + 128]); | ||
} | ||
@@ -42,0 +42,0 @@ var wordlist = null; |
@@ -53,3 +53,3 @@ "use strict"; | ||
} | ||
wordlist[lang.locale].push(strings_1.toUtf8String(bytes)); | ||
wordlist[lang.locale].push((0, strings_1.toUtf8String)(bytes)); | ||
} | ||
@@ -56,0 +56,0 @@ // Verify the computed list matches the official list |
@@ -15,3 +15,3 @@ "use strict"; | ||
exports.logger.checkAbstract(_newTarget, Wordlist); | ||
properties_1.defineReadOnly(this, "locale", locale); | ||
(0, properties_1.defineReadOnly)(this, "locale", locale); | ||
} | ||
@@ -36,3 +36,3 @@ // Subclasses may override this | ||
} | ||
return hash_1.id(words.join("\n") + "\n"); | ||
return (0, hash_1.id)(words.join("\n") + "\n"); | ||
}; | ||
@@ -49,3 +49,3 @@ Wordlist.register = function (lang, name) { | ||
if (!anyGlobal._ethers.wordlists[name]) { | ||
properties_1.defineReadOnly(anyGlobal._ethers.wordlists, name, lang); | ||
(0, properties_1.defineReadOnly)(anyGlobal._ethers.wordlists, name, lang); | ||
} | ||
@@ -52,0 +52,0 @@ } |
@@ -6,11 +6,11 @@ { | ||
"_ethers.alias": { | ||
"dead-wordlists.js": "dead-browser-wordlists.js" | ||
"wordlists.js": "browser-wordlists.js" | ||
}, | ||
"author": "Richard Moore <me@ricmoo.com>", | ||
"dependencies": { | ||
"@ethersproject/bytes": "^5.4.0", | ||
"@ethersproject/hash": "^5.4.0", | ||
"@ethersproject/logger": "^5.4.0", | ||
"@ethersproject/properties": "^5.4.0", | ||
"@ethersproject/strings": "^5.4.0" | ||
"@ethersproject/bytes": "^5.5.0", | ||
"@ethersproject/hash": "^5.5.0", | ||
"@ethersproject/logger": "^5.5.0", | ||
"@ethersproject/properties": "^5.5.0", | ||
"@ethersproject/strings": "^5.5.0" | ||
}, | ||
@@ -29,3 +29,3 @@ "description": "Word lists for BIP39 wallets.", | ||
], | ||
"gitHead": "c2c0ce75039e7256b287f9a764188d08ed0b7296", | ||
"gitHead": "73a46efea32c3f9a4833ed77896a216e3d3752a0", | ||
"keywords": [ | ||
@@ -51,5 +51,5 @@ "Ethereum", | ||
"sideEffects": false, | ||
"tarballHash": "0xed146d30213e5f1c9faca4285d27254e3143759f02793b80a5ebc0f19703ea11", | ||
"tarballHash": "0x50636816baaed99154f0458e399e704ed58bebaa67a480ab3edebb900ee57965", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.4.0" | ||
"version": "5.5.0" | ||
} |
@@ -1,1 +0,1 @@ | ||
export const version = "wordlists/5.4.0"; | ||
export const version = "wordlists/5.5.0"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
390237
116
3038