2
0
mirror of synced 2025-02-24 12:08:10 +00:00

Updated wordlists with new library layout for Wordlist.

This commit is contained in:
Richard Moore 2018-09-27 16:47:44 -04:00
parent cb68403387
commit 8c6eb555de
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
5 changed files with 20 additions and 12 deletions

2
dist/wordlist-it.js vendored

File diff suppressed because one or more lines are too long

2
dist/wordlist-ja.js vendored

File diff suppressed because one or more lines are too long

2
dist/wordlist-ko.js vendored

File diff suppressed because one or more lines are too long

2
dist/wordlist-zh.js vendored

File diff suppressed because one or more lines are too long

View File

@ -50,7 +50,7 @@ function createTransform(transforms, show) {
console.log('Transformed:', shortPath, padding(70 - shortPath.length), size, padding(6 - String(size).length), '=>', transformed.length); console.log('Transformed:', shortPath, padding(70 - shortPath.length), size, padding(6 - String(size).length), '=>', transformed.length);
} }
data = transformed; data = transformed;
} else if (shortPath === '/src.ts/wordlists/wordlist.ts') { } else if (shortPath === '/src.ts/utils/wordlist.ts') {
data += '\n\nexportWordlist = true;' data += '\n\nexportWordlist = true;'
if (show.transformed) { if (show.transformed) {
console.log('Transformed:', shortPath, padding(70 - shortPath.length), size, padding(6 - String(size).length), '=>', data.length); console.log('Transformed:', shortPath, padding(70 - shortPath.length), size, padding(6 - String(size).length), '=>', data.length);
@ -217,24 +217,32 @@ function taskLang(locale) {
// Word list files... // Word list files...
if (shortPath.match(/^\/src\.ts\/wordlists\//)) { if (shortPath.match(/^\/src\.ts\/wordlists\//)) {
// If it is the wordlist class, register should export the wordlist
if (shortPath === '/src.ts/utils/wordlist.ts') {
data += '\n\nexportWordlist = true;'
}
shortPath = '/'; shortPath = '/';
} }
switch (shortPath) { switch (shortPath) {
case '/src.ts/utils/errors.ts': // Use the existing "ethers.errors"
data = "module.exports = global.ethers.utils.errors"; case '/src.ts/errors.ts':
data = "module.exports = global.ethers.errors";
break; break;
// Use the existing "ethers.utils"
case '/src.ts/utils/bytes.ts': case '/src.ts/utils/bytes.ts':
case '/src.ts/utils/hash.ts': case '/src.ts/utils/hash.ts':
case '/src.ts/utils/properties.ts': case '/src.ts/utils/properties.ts':
case '/src.ts/utils/utf8.ts': case '/src.ts/utils/utf8.ts':
data = "module.exports = global.ethers.utils"; data = "module.exports = global.ethers.utils";
break; break;
case '/': break;
// If it is the Wordlist class, register should export the wordlist
case '/src.ts/utils/wordlist.ts':
data += '\n\nexportWordlist = true;'
break;
// Do nothing
case '/':
break;
default: default:
throw new Error('unhandled file: ' + shortPath); throw new Error('unhandled file: ' + shortPath);
} }