Skip to content

Commit c7101d9

Browse files
committed
fix: add .js extensions to noble/scure subpath imports for v2 compat
1 parent 21b2594 commit c7101d9

13 files changed

Lines changed: 14 additions & 14 deletions

File tree

packages/evolution-devnet/src/Genesis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as AddressEras from "@evolution-sdk/evolution/AddressEras"
33
import * as Assets from "@evolution-sdk/evolution/Assets"
44
import * as TransactionHash from "@evolution-sdk/evolution/TransactionHash"
55
import * as UTxO from "@evolution-sdk/evolution/UTxO"
6-
import { blake2b } from "@noble/hashes/blake2"
6+
import { blake2b } from "@noble/hashes/blake2.js"
77
import { Data, Effect } from "effect"
88

99
import type * as Config from "./Config.js"

packages/evolution/src/AuxiliaryData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { blake2b } from "@noble/hashes/blake2"
1+
import { blake2b } from "@noble/hashes/blake2.js"
22
import { Either as E, Equal, FastCheck, Hash, Inspectable, ParseResult, Schema } from "effect"
33

44
import * as AuxiliaryDataHash from "./AuxiliaryDataHash.js"

packages/evolution/src/Bip32PrivateKey.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { mod } from "@noble/curves/abstract/modular.js"
22
import { ed25519 } from "@noble/curves/ed25519.js"
33
import { bytesToNumberLE } from "@noble/curves/utils.js"
44
import { hmac } from "@noble/hashes/hmac.js"
5-
import { pbkdf2 } from "@noble/hashes/pbkdf2"
6-
import { sha512 } from "@noble/hashes/sha2"
5+
import { pbkdf2 } from "@noble/hashes/pbkdf2.js"
6+
import { sha512 } from "@noble/hashes/sha2.js"
77
import { Data, Effect, Equal, FastCheck, Hash, Inspectable, Schema } from "effect"
88

99
import * as Bip32PublicKey from "./Bip32PublicKey.js"

packages/evolution/src/Data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { blake2b } from "@noble/hashes/blake2"
1+
import { blake2b } from "@noble/hashes/blake2.js"
22
import { Data as EffectData, Effect, Equal, FastCheck, Hash, ParseResult, Schema } from "effect"
33

44
import * as CBOR from "./CBOR.js"

packages/evolution/src/KeyHash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { blake2b } from "@noble/hashes/blake2"
1+
import { blake2b } from "@noble/hashes/blake2.js"
22
import { bech32 } from "@scure/base"
33
import { Effect as Eff, Equal, FastCheck, Hash, Inspectable, ParseResult, Schema } from "effect"
44

packages/evolution/src/PrivateKey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { randomBytes } from "@noble/hashes/utils.js"
66
import { bech32 } from "@scure/base"
77
import * as BIP32 from "@scure/bip32"
88
import * as BIP39 from "@scure/bip39"
9-
import { wordlist } from "@scure/bip39/wordlists/english"
9+
import { wordlist } from "@scure/bip39/wordlists/english.js"
1010
import { Either as E, Equal, FastCheck, Hash, Inspectable, ParseResult, Schema } from "effect"
1111

1212
import * as Bip32PrivateKey from "./Bip32PrivateKey.js"

packages/evolution/src/Redeemers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { blake2b } from "@noble/hashes/blake2"
1+
import { blake2b } from "@noble/hashes/blake2.js"
22
import { Effect as Eff, Equal, FastCheck, Hash, Inspectable, ParseResult, Schema } from "effect"
33

44
import * as CBOR from "./CBOR.js"

packages/evolution/src/ScriptHash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { blake2b } from "@noble/hashes/blake2"
1+
import { blake2b } from "@noble/hashes/blake2.js"
22
import { bech32 } from "@scure/base"
33
import { Effect as Eff, Equal, FastCheck, Hash, Inspectable, ParseResult, Schema } from "effect"
44

packages/evolution/src/TransactionBody.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { blake2b } from "@noble/hashes/blake2"
1+
import { blake2b } from "@noble/hashes/blake2.js"
22
import { Either as E, Equal, FastCheck, Hash, Inspectable, ParseResult, Schema } from "effect"
33
import type { NonEmptyArray } from "effect/Array"
44

packages/evolution/src/cose/Sign.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @category Sign Data
88
*/
99

10-
import { blake2b } from "@noble/hashes/blake2"
10+
import { blake2b } from "@noble/hashes/blake2.js"
1111
import { Equal, Hash, Inspectable, ParseResult, Schema } from "effect"
1212

1313
import * as Bytes from "../Bytes.js"

0 commit comments

Comments
 (0)