Skip to content

Commit b9f1f85

Browse files
committed
Move OPSQLite object
1 parent ce1ce6b commit b9f1f85

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/functions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ import {
99
type Scalar,
1010
type QueryResult,
1111
type Transaction,
12-
OPSQLite,
12+
type OPSQLiteProxy,
1313
} from './index';
14+
15+
const proxy = global.__OPSQLiteProxy;
16+
export const OPSQLite = proxy as OPSQLiteProxy;
17+
1418
function enhanceDB(db: _InternalDB, options: DBParams): DB {
1519
const lock = {
1620
queue: [] as _PendingTransaction[],

src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,6 @@ if (global.__OPSQLiteProxy == null) {
344344
}
345345
}
346346

347-
const proxy = global.__OPSQLiteProxy;
348-
export const OPSQLite = proxy as OPSQLiteProxy;
349-
350347
export const {
351348
IOS_DOCUMENT_PATH,
352349
IOS_LIBRARY_PATH,

0 commit comments

Comments
 (0)