|
1 | 1 | {
|
2 | 2 | "name": "ethereum-cryptography",
|
3 |
| - "version": "2.0.0", |
| 3 | + "version": "2.1.0", |
4 | 4 | "description": "All the cryptographic primitives used in Ethereum",
|
5 | 5 | "contributors": [
|
6 | 6 | {
|
|
21 | 21 | "bip39/wordlists/*.js",
|
22 | 22 | "bip39/wordlists/*.d.ts",
|
23 | 23 | "*.js",
|
24 |
| - "*.d.ts" |
| 24 | + "*.d.ts", |
| 25 | + "esm" |
25 | 26 | ],
|
26 | 27 | "dependencies": {
|
27 |
| - "@noble/curves": "1.0.0", |
28 |
| - "@noble/hashes": "1.3.0", |
| 28 | + "@noble/curves": "1.1.0", |
| 29 | + "@noble/hashes": "1.3.1", |
29 | 30 | "@scure/bip32": "1.3.0",
|
30 |
| - "@scure/bip39": "1.2.0" |
| 31 | + "@scure/bip39": "1.2.1" |
| 32 | + }, |
| 33 | + "exports": { |
| 34 | + ".": { |
| 35 | + "types": "./index.d.ts", |
| 36 | + "import": "./esm/index.js", |
| 37 | + "default": "./index.js" |
| 38 | + }, |
| 39 | + "./aes.js": { |
| 40 | + "types": "./aes.d.ts", |
| 41 | + "import": "./esm/aes.js", |
| 42 | + "default": "./aes.js" |
| 43 | + }, |
| 44 | + "./bip39.js": { |
| 45 | + "types": "./bip39.d.ts", |
| 46 | + "import": "./esm/bip39.js", |
| 47 | + "default": "./bip39.js" |
| 48 | + }, |
| 49 | + "./blake2b.js": { |
| 50 | + "types": "./blake2b.d.ts", |
| 51 | + "import": "./esm/blake2b.js", |
| 52 | + "default": "./blake2b.js" |
| 53 | + }, |
| 54 | + "./hdkey.js": { |
| 55 | + "types": "./hdkey.d.ts", |
| 56 | + "import": "./esm/hdkey.js", |
| 57 | + "default": "./hdkey.js" |
| 58 | + }, |
| 59 | + "./index.js": { |
| 60 | + "types": "./index.d.ts", |
| 61 | + "import": "./esm/index.js", |
| 62 | + "default": "./index.js" |
| 63 | + }, |
| 64 | + "./keccak.js": { |
| 65 | + "types": "./keccak.d.ts", |
| 66 | + "import": "./esm/keccak.js", |
| 67 | + "default": "./keccak.js" |
| 68 | + }, |
| 69 | + "./pbkdf2.js": { |
| 70 | + "types": "./pbkdf2.d.ts", |
| 71 | + "import": "./esm/pbkdf2.js", |
| 72 | + "default": "./pbkdf2.js" |
| 73 | + }, |
| 74 | + "./random.js": { |
| 75 | + "types": "./random.d.ts", |
| 76 | + "import": "./esm/random.js", |
| 77 | + "default": "./random.js" |
| 78 | + }, |
| 79 | + "./ripemd160.js": { |
| 80 | + "types": "./ripemd160.d.ts", |
| 81 | + "import": "./esm/ripemd160.js", |
| 82 | + "default": "./ripemd160.js" |
| 83 | + }, |
| 84 | + "./scrypt.js": { |
| 85 | + "types": "./scrypt.d.ts", |
| 86 | + "import": "./esm/scrypt.js", |
| 87 | + "default": "./scrypt.js" |
| 88 | + }, |
| 89 | + "./secp256k1-compat.js": { |
| 90 | + "types": "./secp256k1-compat.d.ts", |
| 91 | + "import": "./esm/secp256k1-compat.js", |
| 92 | + "default": "./secp256k1-compat.js" |
| 93 | + }, |
| 94 | + "./secp256k1.js": { |
| 95 | + "types": "./secp256k1.d.ts", |
| 96 | + "import": "./esm/secp256k1.js", |
| 97 | + "default": "./secp256k1.js" |
| 98 | + }, |
| 99 | + "./sha256.js": { |
| 100 | + "types": "./sha256.d.ts", |
| 101 | + "import": "./esm/sha256.js", |
| 102 | + "default": "./sha256.js" |
| 103 | + }, |
| 104 | + "./sha512.js": { |
| 105 | + "types": "./sha512.d.ts", |
| 106 | + "import": "./esm/sha512.js", |
| 107 | + "default": "./sha512.js" |
| 108 | + }, |
| 109 | + "./utils.js": { |
| 110 | + "types": "./utils.d.ts", |
| 111 | + "import": "./esm/utils.js", |
| 112 | + "default": "./utils.js" |
| 113 | + }, |
| 114 | + "./bip39/index.js": { |
| 115 | + "types": "./bip39/index.d.ts", |
| 116 | + "import": "./esm/bip39/index.js", |
| 117 | + "default": "./bip39/index.js" |
| 118 | + }, |
| 119 | + "./bip39/wordlists/czech.js": { |
| 120 | + "types": "./bip39/wordlists/czech.d.ts", |
| 121 | + "import": "./esm/bip39/wordlists/czech.js", |
| 122 | + "default": "./bip39/wordlists/czech.js" |
| 123 | + }, |
| 124 | + "./bip39/wordlists/english.js": { |
| 125 | + "types": "./bip39/wordlists/english.d.ts", |
| 126 | + "import": "./esm/bip39/wordlists/english.js", |
| 127 | + "default": "./bip39/wordlists/english.js" |
| 128 | + }, |
| 129 | + "./bip39/wordlists/french.js": { |
| 130 | + "types": "./bip39/wordlists/french.d.ts", |
| 131 | + "import": "./esm/bip39/wordlists/french.js", |
| 132 | + "default": "./bip39/wordlists/french.js" |
| 133 | + }, |
| 134 | + "./bip39/wordlists/italian.js": { |
| 135 | + "types": "./bip39/wordlists/italian.d.ts", |
| 136 | + "import": "./esm/bip39/wordlists/italian.js", |
| 137 | + "default": "./bip39/wordlists/italian.js" |
| 138 | + }, |
| 139 | + "./bip39/wordlists/japanese.js": { |
| 140 | + "types": "./bip39/wordlists/japanese.d.ts", |
| 141 | + "import": "./esm/bip39/wordlists/japanese.js", |
| 142 | + "default": "./bip39/wordlists/japanese.js" |
| 143 | + }, |
| 144 | + "./bip39/wordlists/korean.js": { |
| 145 | + "types": "./bip39/wordlists/korean.d.ts", |
| 146 | + "import": "./esm/bip39/wordlists/korean.js", |
| 147 | + "default": "./bip39/wordlists/korean.js" |
| 148 | + }, |
| 149 | + "./bip39/wordlists/simplified-chinese.js": { |
| 150 | + "types": "./bip39/wordlists/simplified-chinese.d.ts", |
| 151 | + "import": "./esm/bip39/wordlists/simplified-chinese.js", |
| 152 | + "default": "./bip39/wordlists/simplified-chinese.js" |
| 153 | + }, |
| 154 | + "./bip39/wordlists/spanish.js": { |
| 155 | + "types": "./bip39/wordlists/spanish.d.ts", |
| 156 | + "import": "./esm/bip39/wordlists/spanish.js", |
| 157 | + "default": "./bip39/wordlists/spanish.js" |
| 158 | + }, |
| 159 | + "./bip39/wordlists/traditional-chinese.js": { |
| 160 | + "types": "./bip39/wordlists/traditional-chinese.d.ts", |
| 161 | + "import": "./esm/bip39/wordlists/traditional-chinese.js", |
| 162 | + "default": "./bip39/wordlists/traditional-chinese.js" |
| 163 | + } |
31 | 164 | },
|
32 | 165 | "browser": {
|
33 | 166 | "crypto": false
|
|
36 | 169 | "scripts": {
|
37 | 170 | "prepare": "npm run build",
|
38 | 171 | "build": "npm-run-all build:tsc",
|
39 |
| - "build:tsc": "tsc --project tsconfig.prod.json", |
| 172 | + "build:tsc": "tsc --project tsconfig.prod.json && tsc --project tsconfig.prod.esm.json", |
40 | 173 | "test": "npm-run-all test:node",
|
41 | 174 | "test:node": "mocha",
|
42 | 175 | "clean": "rimraf test-builds bip39 '*.js' '*.js.map' '*.d.ts' '*.d.ts.map' 'src/**/*.js'",
|
|
0 commit comments