Commit 1985860
committed
feat: export network parseDescriptor from babylon namespace
The ESM build support added in PR #7534 introduced strict `exports` in
package.json which blocks deep imports like:
- @bitgo/utxo-staking/dist/src/babylon/parseDescriptor
- @bitgo/utxo-staking/dist/src/babylon/network
This breaks consumers (e.g., wallet-platform) that rely on these internal
modules. By re-exporting them from the babylon namespace, consumers can
import via the public API:
import { babylon } from '@bitgo/utxo-staking';
const { parseStakingDescriptor, toBitcoinJsNetwork } = babylon;
Ticket: BTC-2826
TICKET: BTC-28261 parent 92e33c0 commit 1985860
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
0 commit comments