@ethersproject/wordlists
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -1,1 +0,1 @@ | ||
export declare const version = "wordlists/5.0.1"; | ||
export declare const version = "wordlists/5.0.2"; |
@@ -1,1 +0,2 @@ | ||
export const version = "wordlists/5.0.1"; | ||
export const version = "wordlists/5.0.2"; | ||
//# sourceMappingURL=_version.js.map |
@@ -8,1 +8,2 @@ "use strict"; | ||
export { Wordlist, wordlists }; | ||
//# sourceMappingURL=browser.js.map |
@@ -26,1 +26,2 @@ "use strict"; | ||
export { logger, Wordlist, wordlists }; | ||
//# sourceMappingURL=index.js.map |
@@ -10,2 +10,4 @@ "use strict"; | ||
wordlist = words.replace(/([A-Z])/g, " $1").toLowerCase().substring(1).split(" "); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (Wordlist.check(lang) !== "0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a") { | ||
@@ -32,1 +34,2 @@ wordlist = null; | ||
export { langCz }; | ||
//# sourceMappingURL=lang-cz.js.map |
@@ -10,2 +10,4 @@ "use strict"; | ||
wordlist = words.replace(/([A-Z])/g, " $1").toLowerCase().substring(1).split(" "); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (Wordlist.check(lang) !== "0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60") { | ||
@@ -32,1 +34,2 @@ wordlist = null; | ||
export { langEn }; | ||
//# sourceMappingURL=lang-en.js.map |
@@ -41,2 +41,4 @@ "use strict"; | ||
}); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (Wordlist.check(lang) !== "0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300") { | ||
@@ -57,7 +59,3 @@ wordlist = null; | ||
loadWords(this); | ||
const index = lookup[dropDiacritic(word)]; | ||
if (typeof (index) !== "number") { | ||
return -1; | ||
} | ||
return index; | ||
return lookup[dropDiacritic(word)]; | ||
} | ||
@@ -68,1 +66,2 @@ } | ||
export { langEs }; | ||
//# sourceMappingURL=lang-es.js.map |
@@ -40,2 +40,4 @@ "use strict"; | ||
}); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (Wordlist.check(lang) !== "0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045") { | ||
@@ -56,7 +58,3 @@ wordlist = null; | ||
loadWords(this); | ||
const index = lookup[dropDiacritic(word)]; | ||
if (typeof (index) !== "number") { | ||
return -1; | ||
} | ||
return index; | ||
return lookup[dropDiacritic(word)]; | ||
} | ||
@@ -67,1 +65,2 @@ } | ||
export { langFr }; | ||
//# sourceMappingURL=lang-fr.js.map |
@@ -10,2 +10,4 @@ "use strict"; | ||
wordlist = words.replace(/([A-Z])/g, " $1").toLowerCase().substring(1).split(" "); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (Wordlist.check(lang) !== "0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620") { | ||
@@ -32,1 +34,2 @@ wordlist = null; | ||
export { langIt }; | ||
//# sourceMappingURL=lang-it.js.map |
@@ -91,2 +91,4 @@ "use strict"; | ||
// - kiyoku | ||
// This should ignore "if", but that doesn't work here?? | ||
/* istanbul ignore next */ | ||
if (hex(wordlist[442]) === KiYoKu && hex(wordlist[443]) === KyoKu) { | ||
@@ -97,2 +99,4 @@ const tmp = wordlist[442]; | ||
} | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (Wordlist.check(lang) !== "0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600") { | ||
@@ -126,1 +130,2 @@ wordlist = null; | ||
export { langJa }; | ||
//# sourceMappingURL=lang-ja.js.map |
@@ -41,2 +41,4 @@ "use strict"; | ||
wordlist.sort(); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (Wordlist.check(lang) !== "0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a") { | ||
@@ -63,1 +65,2 @@ wordlist = null; | ||
export { langKo }; | ||
//# sourceMappingURL=lang-ko.js.map |
@@ -38,2 +38,4 @@ "use strict"; | ||
} | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (Wordlist.check(lang) !== Checks[lang.locale]) { | ||
@@ -67,1 +69,2 @@ wordlist[lang.locale] = null; | ||
export { langZhCn, langZhTw }; | ||
//# sourceMappingURL=lang-zh.js.map |
@@ -26,2 +26,3 @@ "use strict"; | ||
const word = wordlist.getWord(i); | ||
/* istanbul ignore if */ | ||
if (i !== wordlist.getWordIndex(word)) { | ||
@@ -38,2 +39,3 @@ return "0x"; | ||
} | ||
/* istanbul ignore if */ | ||
if (exportWordlist) { | ||
@@ -52,1 +54,2 @@ try { | ||
} | ||
//# sourceMappingURL=wordlist.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const version = "wordlists/5.0.1"; | ||
export declare const version = "wordlists/5.0.2"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "wordlists/5.0.1"; | ||
exports.version = "wordlists/5.0.2"; | ||
//# sourceMappingURL=_version.js.map |
@@ -10,1 +10,2 @@ "use strict"; | ||
exports.wordlists = wordlists; | ||
//# sourceMappingURL=browser.js.map |
@@ -29,1 +29,2 @@ "use strict"; | ||
exports.wordlists = wordlists; | ||
//# sourceMappingURL=index.js.map |
@@ -24,2 +24,4 @@ "use strict"; | ||
wordlist = words.replace(/([A-Z])/g, " $1").toLowerCase().substring(1).split(" "); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (wordlist_1.Wordlist.check(lang) !== "0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a") { | ||
@@ -48,1 +50,2 @@ wordlist = null; | ||
wordlist_1.Wordlist.register(langCz); | ||
//# sourceMappingURL=lang-cz.js.map |
@@ -24,2 +24,4 @@ "use strict"; | ||
wordlist = words.replace(/([A-Z])/g, " $1").toLowerCase().substring(1).split(" "); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (wordlist_1.Wordlist.check(lang) !== "0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60") { | ||
@@ -48,1 +50,2 @@ wordlist = null; | ||
wordlist_1.Wordlist.register(langEn); | ||
//# sourceMappingURL=lang-en.js.map |
@@ -55,2 +55,4 @@ "use strict"; | ||
}); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (wordlist_1.Wordlist.check(lang) !== "0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300") { | ||
@@ -72,7 +74,3 @@ wordlist = null; | ||
loadWords(this); | ||
var index = lookup[dropDiacritic(word)]; | ||
if (typeof (index) !== "number") { | ||
return -1; | ||
} | ||
return index; | ||
return lookup[dropDiacritic(word)]; | ||
}; | ||
@@ -84,1 +82,2 @@ return LangEs; | ||
wordlist_1.Wordlist.register(langEs); | ||
//# sourceMappingURL=lang-es.js.map |
@@ -54,2 +54,4 @@ "use strict"; | ||
}); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (wordlist_1.Wordlist.check(lang) !== "0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045") { | ||
@@ -71,7 +73,3 @@ wordlist = null; | ||
loadWords(this); | ||
var index = lookup[dropDiacritic(word)]; | ||
if (typeof (index) !== "number") { | ||
return -1; | ||
} | ||
return index; | ||
return lookup[dropDiacritic(word)]; | ||
}; | ||
@@ -83,1 +81,2 @@ return LangFr; | ||
wordlist_1.Wordlist.register(langFr); | ||
//# sourceMappingURL=lang-fr.js.map |
@@ -24,2 +24,4 @@ "use strict"; | ||
wordlist = words.replace(/([A-Z])/g, " $1").toLowerCase().substring(1).split(" "); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (wordlist_1.Wordlist.check(lang) !== "0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620") { | ||
@@ -48,1 +50,2 @@ wordlist = null; | ||
wordlist_1.Wordlist.register(langIt); | ||
//# sourceMappingURL=lang-it.js.map |
@@ -105,2 +105,4 @@ "use strict"; | ||
// - kiyoku | ||
// This should ignore "if", but that doesn't work here?? | ||
/* istanbul ignore next */ | ||
if (hex(wordlist[442]) === KiYoKu && hex(wordlist[443]) === KyoKu) { | ||
@@ -111,2 +113,4 @@ var tmp = wordlist[442]; | ||
} | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (wordlist_1.Wordlist.check(lang) !== "0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600") { | ||
@@ -142,1 +146,2 @@ wordlist = null; | ||
wordlist_1.Wordlist.register(langJa); | ||
//# sourceMappingURL=lang-ja.js.map |
@@ -55,2 +55,4 @@ "use strict"; | ||
wordlist.sort(); | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (wordlist_1.Wordlist.check(lang) !== "0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a") { | ||
@@ -79,1 +81,2 @@ wordlist = null; | ||
wordlist_1.Wordlist.register(langKo); | ||
//# sourceMappingURL=lang-ko.js.map |
@@ -52,2 +52,4 @@ "use strict"; | ||
} | ||
// Verify the computed list matches the official list | ||
/* istanbul ignore if */ | ||
if (wordlist_1.Wordlist.check(lang) !== Checks[lang.locale]) { | ||
@@ -84,1 +86,2 @@ wordlist[lang.locale] = null; | ||
wordlist_1.Wordlist.register(langZhTw); | ||
//# sourceMappingURL=lang-zh.js.map |
@@ -28,2 +28,3 @@ "use strict"; | ||
var word = wordlist.getWord(i); | ||
/* istanbul ignore if */ | ||
if (i !== wordlist.getWordIndex(word)) { | ||
@@ -40,2 +41,3 @@ return "0x"; | ||
} | ||
/* istanbul ignore if */ | ||
if (exportWordlist) { | ||
@@ -56,1 +58,2 @@ try { | ||
exports.Wordlist = Wordlist; | ||
//# sourceMappingURL=wordlist.js.map |
@@ -33,5 +33,5 @@ { | ||
}, | ||
"tarballHash": "0xf76516c030f0c06218c9e8f4fa4bd2c881bb6970ede26c880d718eab4cf87b0f", | ||
"tarballHash": "0xba0495294ad30b4258755f3cbab1d29692869fb28690db41a7f079932a982b5d", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.0.1" | ||
"version": "5.0.2" | ||
} |
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
270092
75
2144