diff --git a/hash/sha256.fallback.js b/hash/sha256.js similarity index 100% rename from hash/sha256.fallback.js rename to hash/sha256.js diff --git a/hash/sha256.test.js b/hash/sha256.test.js index ff7b545..ba1444d 100644 --- a/hash/sha256.test.js +++ b/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' diff --git a/package.json b/package.json index 0c8519c..ac098ba 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test.html b/test.html index 933b87d..19ccb42 100644 --- a/test.html +++ b/test.html @@ -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",