Skip to content

Commit be215cc

Browse files
chore(utxo-lib): update import = to ES6 imports
This is done for Node.js 24 compatibility Replace `import assert = require('assert')` with `import assert from 'assert'` to resolve "TypeScript import equals declaration is not supported in strip-only mode" error TICKET: WP-5182
1 parent 56618ae commit be215cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

modules/utxo-lib/src/taproot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki
44

55
import { TapTree as PsbtTapTree, TapLeaf as PsbtTapLeaf } from 'bip174/src/lib/interfaces';
6-
import assert = require('assert');
6+
import assert from 'assert';
77
import FastPriorityQueue = require('fastpriorityqueue');
88
import { script as bscript, crypto as bcrypto, payments as bpayments } from 'bitcoinjs-lib';
99
import { ecc as eccLib } from './noble_ecc';

modules/utxo-lib/test/bitgo/Unspent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import assert = require('assert');
1+
import assert from 'assert';
22
import { unspentSum } from '../../src/bitgo';
33

44
function mockUnspent<TNumber extends number | bigint>(value: TNumber) {

modules/utxo-lib/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./dist",
55
"rootDir": ".",
6-
"esModuleInterop": false,
6+
"esModuleInterop": true,
77
"typeRoots": ["../../types", "./node_modules/@types", "../../node_modules/@types"],
88
"resolveJsonModule": true
99
},

0 commit comments

Comments
 (0)