Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fixup.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const processFiles = (dir) => {
processFiles(filePath);
} else if (filePath.endsWith('.cjs')) {
updateRequires(filePath);
} else if (filePath.endsWith('.js')) {
} else if (filePath.endsWith('.js') || filePath.endsWith('.d.ts')) {
updateImports(filePath);
}
});
Expand Down
4 changes: 2 additions & 2 deletions src/cjs/ecpair.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Network } from './networks';
import * as networks from './networks';
import { Network } from './networks.js';
import * as networks from './networks.js';
export { networks };
import * as v from 'valibot';
declare const ECPairOptionsSchema: v.OptionalSchema<v.ObjectSchema<{
Expand Down
2 changes: 1 addition & 1 deletion src/cjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { ECPairFactory as default, ECPairFactory, type Signer, type SignerAsync, type ECPairAPI, type ECPairInterface, type TinySecp256k1Interface, networks, } from './ecpair';
export { ECPairFactory as default, ECPairFactory, type Signer, type SignerAsync, type ECPairAPI, type ECPairInterface, type TinySecp256k1Interface, networks, } from './ecpair.js';
2 changes: 1 addition & 1 deletion src/cjs/networks.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as v from 'valibot';
import { NetworkSchema } from './types';
import { NetworkSchema } from './types.js';
export type Network = v.InferOutput<typeof NetworkSchema>;
export declare const bitcoin: Network;
export declare const testnet: Network;
2 changes: 1 addition & 1 deletion src/cjs/testecc.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import { TinySecp256k1Interface } from './ecpair';
import { TinySecp256k1Interface } from './ecpair.js';
export declare function testEcc(ecc: TinySecp256k1Interface): void;