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 { import {
type BlockchainCallback, type BlockchainCallback,
@@ -5,7 +5,7 @@ import {
type BlockchainUTXO, type BlockchainUTXO,
} from './types.js'; } from './types.js';
import { type BaseStore, StoreInMemory } from '../storage'; import { type BaseStore, StoreInMemory } from '../storage/index.js';
import { import {
Address, Address,
+1 -1
View File
@@ -1,7 +1,7 @@
import { BaseStore } from './base-store.js'; import { BaseStore } from './base-store.js';
import { StoreComposite } from './store-composite.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. // 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. // 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'; import { Encrypter } from '@xocash/primitives';
export type StorageOpts = { export type StorageOpts = {
syncInMemory?: boolean; syncInMemory?: boolean;
@@ -1,5 +1,5 @@
import { BaseStore } from './base-store.js'; import { BaseStore } from './base-store.js';
import { SSEClient } from '../utils'; import { SSEClient } from '../utils/index.js';
import { import {
Bytes, Bytes,
Encrypter, Encrypter,
+1 -1
View File
@@ -1,4 +1,4 @@
import { type Activity } from '../storage'; import { type Activity } from '../storage/index.js';
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Standardized Activities // Standardized Activities
+3 -3
View File
@@ -5,9 +5,9 @@ import {
type WalletTransactions, type WalletTransactions,
} from './types.js'; } from './types.js';
import { type BlockchainUTXOs } from '../blockchain'; import { type BlockchainUTXOs } from '../blockchain/index.js';
import { type Activities } from '../storage'; import { type Activities } from '../storage/index.js';
import { EventEmitter } from '../utils'; import { EventEmitter } from '../utils/index.js';
import { type TokenBalances, type Address } from '@xocash/primitives'; import { type TokenBalances, type Address } from '@xocash/primitives';
+2 -2
View File
@@ -3,8 +3,8 @@ import {
type AddressStatusPayload, type AddressStatusPayload,
type BlockHeightPayload, type BlockHeightPayload,
type BlockchainTransaction, type BlockchainTransaction,
} from '../blockchain'; } from '../blockchain/index.js';
import { type Activities, type BaseStore } from '../storage'; import { type Activities, type BaseStore } from '../storage/index.js';
import { type Address, type ExtMap } from '@xocash/primitives'; 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 { type WalletBlockchain, type WalletDependencies } from './types.js';
import { WalletP2PKH } from './wallet-p2pkh.js'; import { WalletP2PKH } from './wallet-p2pkh.js';
import { type BaseStore, Activities, StoreInMemory } from '../storage'; import { type BaseStore, Activities, StoreInMemory } from '../storage/index.js';
import { import {
type TokenBalances, type TokenBalances,
+2 -2
View File
@@ -9,8 +9,8 @@ import { TransactionBuilder } from './transaction-builder.js';
import { import {
type AddressStatusPayload, type AddressStatusPayload,
type BlockchainTransaction, type BlockchainTransaction,
} from '../blockchain'; } from '../blockchain/index.js';
import { type BaseStore, Activities, StoreInMemory } from '../storage'; import { type BaseStore, Activities, StoreInMemory } from '../storage/index.js';
import { import {
ExtMap, ExtMap,