Merge branch 'use_specific_index_files_to_make_vitest_happy' into 'development'

Use specific index.js files to satisfy Vitest

See merge request GeneralProtocols/xo/stack!69
This commit is contained in:
Jim Hamill
2025-04-20 03:49:04 +00:00
10 changed files with 14 additions and 14 deletions
@@ -1,4 +1,4 @@
import { EventEmitter } from '../utils';
import { EventEmitter } from '../utils/index.js';
import {
type BlockchainCallback,
@@ -5,7 +5,7 @@ import {
type BlockchainUTXO,
} from './types.js';
import { type BaseStore, StoreInMemory } from '../storage';
import { type BaseStore, StoreInMemory } from '../storage/index.js';
import {
Address,
+1 -1
View File
@@ -1,7 +1,7 @@
import { BaseStore } from './base-store.js';
import { StoreComposite } from './store-composite.js';
import { UUIDV7 } from '../utils';
import { UUIDV7 } from '../utils/index.js';
// Make the given property in a type optional.
// TODO: This is an extremely useful utility. If we use it elsewhere, move to own "type-utils.ts" file.
+1 -1
View File
@@ -1,4 +1,4 @@
import { EventEmitter, InverseBloomFilter } from '../utils';
import { EventEmitter, InverseBloomFilter } from '../utils/index.js';
import { Encrypter } from '@xocash/primitives';
export type StorageOpts = {
syncInMemory?: boolean;
@@ -1,5 +1,5 @@
import { BaseStore } from './base-store.js';
import { SSEClient } from '../utils';
import { SSEClient } from '../utils/index.js';
import {
Bytes,
Encrypter,
+1 -1
View File
@@ -1,4 +1,4 @@
import { type Activity } from '../storage';
import { type Activity } from '../storage/index.js';
//-----------------------------------------------------------------------------
// Standardized Activities
+3 -3
View File
@@ -5,9 +5,9 @@ import {
type WalletTransactions,
} from './types.js';
import { type BlockchainUTXOs } from '../blockchain';
import { type Activities } from '../storage';
import { EventEmitter } from '../utils';
import { type BlockchainUTXOs } from '../blockchain/index.js';
import { type Activities } from '../storage/index.js';
import { EventEmitter } from '../utils/index.js';
import { type TokenBalances, type Address } from '@xocash/primitives';
+2 -2
View File
@@ -3,8 +3,8 @@ import {
type AddressStatusPayload,
type BlockHeightPayload,
type BlockchainTransaction,
} from '../blockchain';
import { type Activities, type BaseStore } from '../storage';
} from '../blockchain/index.js';
import { type Activities, type BaseStore } from '../storage/index.js';
import { type Address, type ExtMap } from '@xocash/primitives';
+1 -1
View File
@@ -4,7 +4,7 @@ import { TransactionBuilder } from './transaction-builder.js';
import { type WalletBlockchain, type WalletDependencies } from './types.js';
import { WalletP2PKH } from './wallet-p2pkh.js';
import { type BaseStore, Activities, StoreInMemory } from '../storage';
import { type BaseStore, Activities, StoreInMemory } from '../storage/index.js';
import {
type TokenBalances,
+2 -2
View File
@@ -9,8 +9,8 @@ import { TransactionBuilder } from './transaction-builder.js';
import {
type AddressStatusPayload,
type BlockchainTransaction,
} from '../blockchain';
import { type BaseStore, Activities, StoreInMemory } from '../storage';
} from '../blockchain/index.js';
import { type BaseStore, Activities, StoreInMemory } from '../storage/index.js';
import {
ExtMap,