@apibara/plugin-sqlite 2.1.0-beta.23 → 2.1.0-beta.25

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.cjs CHANGED
@@ -382,7 +382,7 @@ function sqliteStorage({
382
382
  }
383
383
  });
384
384
  indexer.hooks.hook("message:finalize", async ({ message }) => {
385
- const { cursor } = message.finalize;
385
+ const { cursor } = message;
386
386
  if (!cursor) {
387
387
  throw new SqliteStorageError("finalized cursor is undefined");
388
388
  }
@@ -396,7 +396,7 @@ function sqliteStorage({
396
396
  });
397
397
  });
398
398
  indexer.hooks.hook("message:invalidate", async ({ message }) => {
399
- const { cursor } = message.invalidate;
399
+ const { cursor } = message;
400
400
  if (!cursor) {
401
401
  throw new SqliteStorageError("invalidate cursor is undefined");
402
402
  }
package/dist/index.mjs CHANGED
@@ -380,7 +380,7 @@ function sqliteStorage({
380
380
  }
381
381
  });
382
382
  indexer.hooks.hook("message:finalize", async ({ message }) => {
383
- const { cursor } = message.finalize;
383
+ const { cursor } = message;
384
384
  if (!cursor) {
385
385
  throw new SqliteStorageError("finalized cursor is undefined");
386
386
  }
@@ -394,7 +394,7 @@ function sqliteStorage({
394
394
  });
395
395
  });
396
396
  indexer.hooks.hook("message:invalidate", async ({ message }) => {
397
- const { cursor } = message.invalidate;
397
+ const { cursor } = message;
398
398
  if (!cursor) {
399
399
  throw new SqliteStorageError("invalidate cursor is undefined");
400
400
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apibara/plugin-sqlite",
3
- "version": "2.1.0-beta.23",
3
+ "version": "2.1.0-beta.25",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -36,7 +36,7 @@
36
36
  "better-sqlite3": "^9.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@apibara/indexer": "2.1.0-beta.23",
40
- "@apibara/protocol": "2.1.0-beta.23"
39
+ "@apibara/indexer": "2.1.0-beta.25",
40
+ "@apibara/protocol": "2.1.0-beta.25"
41
41
  }
42
42
  }
package/src/index.ts CHANGED
@@ -193,7 +193,7 @@ export function sqliteStorage<TFilter, TBlock>({
193
193
  });
194
194
 
195
195
  indexer.hooks.hook("message:finalize", async ({ message }) => {
196
- const { cursor } = message.finalize;
196
+ const { cursor } = message;
197
197
 
198
198
  if (!cursor) {
199
199
  throw new SqliteStorageError("finalized cursor is undefined");
@@ -211,7 +211,7 @@ export function sqliteStorage<TFilter, TBlock>({
211
211
  });
212
212
 
213
213
  indexer.hooks.hook("message:invalidate", async ({ message }) => {
214
- const { cursor } = message.invalidate;
214
+ const { cursor } = message;
215
215
 
216
216
  if (!cursor) {
217
217
  throw new SqliteStorageError("invalidate cursor is undefined");