Skip to content

Commit 1c7b41f

Browse files
authored
Merge pull request #299 from albe/copilot/investigate-stable-not-a-constructor
fix: add default export and Storage/Index static props so bench smoke test passes
2 parents c0a74ab + 10589d3 commit 1c7b41f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { default as EventStore, ExpectedVersion, OptimisticConcurrencyError, LOCK_THROW, LOCK_RECLAIM } from './src/EventStore.js';
1+
export { default as EventStore, default, ExpectedVersion, OptimisticConcurrencyError, LOCK_THROW, LOCK_RECLAIM } from './src/EventStore.js';
22
export { default as EventStream } from './src/EventStream.js';
33
export { default as Storage, StorageLockedError } from './src/Storage.js';
44
export { default as Index } from './src/Index.js';

src/EventStore.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import fs from 'fs';
44
import path from 'path';
55
import events from 'events';
66
import Storage, { ReadOnly as ReadOnlyStorage, LOCK_THROW, LOCK_RECLAIM } from './Storage.js';
7+
import Index from './Index.js';
78
import Consumer from './Consumer.js';
89
import { assert, scanForFiles } from './util.js';
910

@@ -589,5 +590,8 @@ class EventStore extends events.EventEmitter {
589590
}
590591
}
591592

593+
EventStore.Storage = Storage;
594+
EventStore.Index = Index;
595+
592596
export default EventStore;
593597
export { ExpectedVersion, OptimisticConcurrencyError, LOCK_THROW, LOCK_RECLAIM };

0 commit comments

Comments
 (0)