Skip to content

Commit

Permalink
[sha256] fix typings import by renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Aug 9, 2023
1 parent 8bd36bc commit 66b40a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion hash/sha256.test.js
@@ -1,5 +1,5 @@
import * as t from '../testing.js'
import * as sha256 from './sha256.fallback.js'
import * as sha256 from './sha256.js'
import * as buffer from '../buffer.js'
import * as string from '../string.js'
import * as prng from '../prng.js'
Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -104,15 +104,15 @@
"require": "./dist/rabin.cjs"
},
"./hash/sha256": {
"types": "./hash/sha256.fallback.d.ts",
"types": "./hash/sha256.d.ts",
"node": {
"require": "./dist/sha256.node.cjs",
"default": "./hash/sha256.node.js"
},
"default": {
"module": "./hash/sha256.fallback.js",
"require": "./dist/sha256.fallback.cjs",
"default": "./hash/sha256.fallback.js"
"module": "./hash/sha256.js",
"require": "./dist/sha256.cjs",
"default": "./hash/sha256.js"
}
},
"./decoding.js": "./decoding.js",
Expand Down
2 changes: 1 addition & 1 deletion test.html
Expand Up @@ -33,7 +33,7 @@
"lib0/crypto/ecdsa": "./crypto/ecdsa.js",
"lib0/crypto/rsa-oaep": "./crypto/rsa-oaep.js",
"lib0/hash/rabin": "./hash/rabin.js",
"lib0/hash/sha256": "./hash/sha256.fallback.js",
"lib0/hash/sha256": "./hash/sha256.js",
"lib0/decoding.js": "./decoding.js",
"lib0/dist/decoding.cjs": "./dist/decoding.cjs",
"lib0/decoding": "./decoding.js",
Expand Down

0 comments on commit 66b40a6

Please sign in to comment.