@anfenn/dync 1.1.0 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/dist/{dexie-D85rTx4g.d.ts → dexie-B3Ihrrxi.d.ts} +1 -6
- package/dist/{dexie-3VOQSn1s.d.cts → dexie-BRWUYM02.d.cts} +1 -6
- package/dist/dexie.d.cts +1 -1
- package/dist/dexie.d.ts +1 -1
- package/dist/index.cjs +2 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -16
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/{types-BIJhsSOf.d.ts → types-DhlgTu1o.d.ts} +1 -1
- package/dist/{types-DhCTdAep.d.cts → types-Di82FTAL.d.cts} +1 -1
- package/package.json +5 -3
- package/src/storage/sqlite/SQLiteAdapter.ts +1 -2
- package/src/storage/sqlite/SQLiteQueryContext.ts +1 -22
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DyncOptions, S as SyncStatus, a as SyncApi, T as TableMap } from './types-
|
|
2
|
-
export { A as AfterRemoteAddCallback, e as BatchFirstLoadResult, c as BatchPushPayload, d as BatchPushResult, B as BatchSync, f as ConflictResolutionStrategy, C as CrudSyncApi, F as FirstLoadProgress, g as FirstLoadProgressCallback, h as MissingRemoteRecordDuringUpdateCallback, M as MissingRemoteRecordStrategy, i as MutationEvent, b as SyncAction, j as SyncOptions, k as SyncState, l as SyncedRecord } from './types-
|
|
3
|
-
import { T as TableSchemaDefinition, D as DexieQueryContext, S as SQLiteQueryContext, M as MemoryQueryContext, a as StorageTable } from './dexie-
|
|
4
|
-
export { b as MemoryAdapter, c as SQLiteAdapter, d as StorageAdapter } from './dexie-
|
|
1
|
+
import { D as DyncOptions, S as SyncStatus, a as SyncApi, T as TableMap } from './types-Di82FTAL.cjs';
|
|
2
|
+
export { A as AfterRemoteAddCallback, e as BatchFirstLoadResult, c as BatchPushPayload, d as BatchPushResult, B as BatchSync, f as ConflictResolutionStrategy, C as CrudSyncApi, F as FirstLoadProgress, g as FirstLoadProgressCallback, h as MissingRemoteRecordDuringUpdateCallback, M as MissingRemoteRecordStrategy, i as MutationEvent, b as SyncAction, j as SyncOptions, k as SyncState, l as SyncedRecord } from './types-Di82FTAL.cjs';
|
|
3
|
+
import { T as TableSchemaDefinition, D as DexieQueryContext, S as SQLiteQueryContext, M as MemoryQueryContext, a as StorageTable } from './dexie-BRWUYM02.cjs';
|
|
4
|
+
export { b as MemoryAdapter, c as SQLiteAdapter, d as StorageAdapter } from './dexie-BRWUYM02.cjs';
|
|
5
5
|
import { c as SQLiteVersionMigration } from './types-6-NyRQ0D.cjs';
|
|
6
6
|
export { S as SQLiteDatabaseDriver, b as SQLiteQueryResult, a as SQLiteRunResult } from './types-6-NyRQ0D.cjs';
|
|
7
7
|
import 'dexie';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DyncOptions, S as SyncStatus, a as SyncApi, T as TableMap } from './types-
|
|
2
|
-
export { A as AfterRemoteAddCallback, e as BatchFirstLoadResult, c as BatchPushPayload, d as BatchPushResult, B as BatchSync, f as ConflictResolutionStrategy, C as CrudSyncApi, F as FirstLoadProgress, g as FirstLoadProgressCallback, h as MissingRemoteRecordDuringUpdateCallback, M as MissingRemoteRecordStrategy, i as MutationEvent, b as SyncAction, j as SyncOptions, k as SyncState, l as SyncedRecord } from './types-
|
|
3
|
-
import { T as TableSchemaDefinition, D as DexieQueryContext, S as SQLiteQueryContext, M as MemoryQueryContext, a as StorageTable } from './dexie-
|
|
4
|
-
export { b as MemoryAdapter, c as SQLiteAdapter, d as StorageAdapter } from './dexie-
|
|
1
|
+
import { D as DyncOptions, S as SyncStatus, a as SyncApi, T as TableMap } from './types-DhlgTu1o.js';
|
|
2
|
+
export { A as AfterRemoteAddCallback, e as BatchFirstLoadResult, c as BatchPushPayload, d as BatchPushResult, B as BatchSync, f as ConflictResolutionStrategy, C as CrudSyncApi, F as FirstLoadProgress, g as FirstLoadProgressCallback, h as MissingRemoteRecordDuringUpdateCallback, M as MissingRemoteRecordStrategy, i as MutationEvent, b as SyncAction, j as SyncOptions, k as SyncState, l as SyncedRecord } from './types-DhlgTu1o.js';
|
|
3
|
+
import { T as TableSchemaDefinition, D as DexieQueryContext, S as SQLiteQueryContext, M as MemoryQueryContext, a as StorageTable } from './dexie-B3Ihrrxi.js';
|
|
4
|
+
export { b as MemoryAdapter, c as SQLiteAdapter, d as StorageAdapter } from './dexie-B3Ihrrxi.js';
|
|
5
5
|
import { c as SQLiteVersionMigration } from './types-6-NyRQ0D.js';
|
|
6
6
|
export { S as SQLiteDatabaseDriver, b as SQLiteQueryResult, a as SQLiteRunResult } from './types-6-NyRQ0D.js';
|
|
7
7
|
import 'dexie';
|
package/dist/index.js
CHANGED
|
@@ -2526,22 +2526,9 @@ var normalizeComparableValue = (value) => {
|
|
|
2526
2526
|
|
|
2527
2527
|
// src/storage/sqlite/SQLiteQueryContext.ts
|
|
2528
2528
|
var SQLiteQueryContext = class {
|
|
2529
|
-
constructor(
|
|
2530
|
-
this.driver = driver;
|
|
2529
|
+
constructor(adapter) {
|
|
2531
2530
|
this.adapter = adapter;
|
|
2532
2531
|
}
|
|
2533
|
-
table(name) {
|
|
2534
|
-
return this.adapter.table(name);
|
|
2535
|
-
}
|
|
2536
|
-
transaction(mode, tableNames, callback) {
|
|
2537
|
-
return this.adapter.transaction(mode, tableNames, callback);
|
|
2538
|
-
}
|
|
2539
|
-
async execute(statement) {
|
|
2540
|
-
return this.driver.execute(statement);
|
|
2541
|
-
}
|
|
2542
|
-
async run(statement, values) {
|
|
2543
|
-
return this.driver.run(statement, values);
|
|
2544
|
-
}
|
|
2545
2532
|
async queryRows(statement, values) {
|
|
2546
2533
|
return this.adapter.queryRows(statement, values);
|
|
2547
2534
|
}
|
|
@@ -2710,8 +2697,7 @@ var SQLiteAdapter2 = class {
|
|
|
2710
2697
|
}
|
|
2711
2698
|
async query(arg1, arg2) {
|
|
2712
2699
|
if (typeof arg1 === "function") {
|
|
2713
|
-
|
|
2714
|
-
return arg1(new SQLiteQueryContext(driver2, this));
|
|
2700
|
+
return arg1(new SQLiteQueryContext(this));
|
|
2715
2701
|
}
|
|
2716
2702
|
const statement = arg1;
|
|
2717
2703
|
const values = arg2;
|