11import { initSync , getHdbBasePath , get as envGet } from '../utility/environment/environmentManager.js' ;
22import { INTERNAL_DBIS_NAME } from '../utility/lmdb/terms.js' ;
33import { open , compareKeys , type Database } from 'lmdb' ;
4- import { join , extname , basename } from 'path' ;
5- import { existsSync , readdirSync } from 'fs' ;
4+ import { join , extname , basename } from 'node: path' ;
5+ import { existsSync , readdirSync } from 'node: fs' ;
66import {
77 getBaseSchemaPath ,
88 getTransactionAuditStoreBasePath ,
@@ -15,20 +15,16 @@ import { _assignPackageExport } from '../globals.js';
1515import { getIndexedValues } from '../utility/lmdb/commonUtility.js' ;
1616import * as signalling from '../utility/signalling.js' ;
1717import { SchemaEventMsg } from '../server/threads/itc.js' ;
18- import { workerData } from 'worker_threads' ;
18+ import { workerData } from 'node: worker_threads' ;
1919import harperLogger from '../utility/logging/harper_logger.js' ;
2020const { forComponent } = harperLogger ;
2121import * as manageThreads from '../server/threads/manageThreads.js' ;
2222import { openAuditStore } from './auditStore.ts' ;
2323import { handleLocalTimeForGets } from './RecordEncoder.ts' ;
2424import { deleteRootBlobPathsForDB } from './blob.ts' ;
2525import { CUSTOM_INDEXES } from './indexes/customIndexes.ts' ;
26- import * as OpenDBIObjectModule from '../utility/lmdb/OpenDBIObject.js' ;
27- function OpenDBIObject ( dupSort , isPrimary ) {
28- // what is going on with esbuild, it suddenly is randomly flip-flopping the module record for OpenDBIObject, sometimes return the correct exports object and sometimes returning the exports as the `default`.
29- let OpenDBIObject = OpenDBIObjectModule . OpenDBIObject ?? OpenDBIObjectModule . default . OpenDBIObject ;
30- return new OpenDBIObject ( dupSort , isPrimary ) ;
31- }
26+ import { OpenDBIObject } from '../utility/lmdb/OpenDBIObject.ts' ;
27+
3228const logger = forComponent ( 'storage' ) ;
3329
3430const DEFAULT_DATABASE_NAME = 'data' ;
0 commit comments