@roc-db/indexed-db 0.2.0-pre.46 → 0.2.0-pre.48

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/dist/index.js CHANGED
@@ -204,7 +204,7 @@ var getChangeSetMutations = async (txn, changeSetRef) => {
204
204
  var findDebounceMutation = async (request, engine, now, mutationName) => {
205
205
  const objectStore = engine.txn.objectStore("mutations");
206
206
  const index = objectStore.index("timestamp");
207
- const timestamp = new Date(now - request.settings.debounce * 1000).toISOString();
207
+ const timestamp = new Date(now - request.operation.debounce * 1000).toISOString();
208
208
  const range = IDBKeyRange.lowerBound(timestamp, true);
209
209
  const idbRequest = index.openCursor(range);
210
210
  return new Promise((resolve, reject) => {
@@ -1,3 +1,4 @@
1
+ import { type Adapter } from "roc-db";
1
2
  export declare const createIndexedDBAdapter: ({ operations, entities, session, dbName, optimistic, }: {
2
3
  operations: any;
3
4
  entities: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roc-db/indexed-db",
3
- "version": "0.2.0-pre.46",
3
+ "version": "0.2.0-pre.48",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -14,7 +14,7 @@
14
14
  "sideEffects": false,
15
15
  "dependencies": {},
16
16
  "peerDependencies": {
17
- "roc-db": "0.2.0-pre.46",
17
+ "roc-db": "0.2.0-pre.48",
18
18
  "zod": "^3.0.0"
19
19
  },
20
20
  "keywords": [],