@apibara/plugin-drizzle 2.1.0-beta.22 → 2.1.0-beta.24

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
@@ -714,7 +714,7 @@ function drizzleStorage({
714
714
  }
715
715
  });
716
716
  indexer$1.hooks.hook("message:finalize", async ({ message }) => {
717
- const { cursor } = message.finalize;
717
+ const { cursor } = message;
718
718
  if (!cursor) {
719
719
  throw new DrizzleStorageError("Finalized Cursor is undefined");
720
720
  }
@@ -726,7 +726,7 @@ function drizzleStorage({
726
726
  });
727
727
  });
728
728
  indexer$1.hooks.hook("message:invalidate", async ({ message }) => {
729
- const { cursor } = message.invalidate;
729
+ const { cursor } = message;
730
730
  if (!cursor) {
731
731
  throw new DrizzleStorageError("Invalidate Cursor is undefined");
732
732
  }
package/dist/index.mjs CHANGED
@@ -712,7 +712,7 @@ function drizzleStorage({
712
712
  }
713
713
  });
714
714
  indexer.hooks.hook("message:finalize", async ({ message }) => {
715
- const { cursor } = message.finalize;
715
+ const { cursor } = message;
716
716
  if (!cursor) {
717
717
  throw new DrizzleStorageError("Finalized Cursor is undefined");
718
718
  }
@@ -724,7 +724,7 @@ function drizzleStorage({
724
724
  });
725
725
  });
726
726
  indexer.hooks.hook("message:invalidate", async ({ message }) => {
727
- const { cursor } = message.invalidate;
727
+ const { cursor } = message;
728
728
  if (!cursor) {
729
729
  throw new DrizzleStorageError("Invalidate Cursor is undefined");
730
730
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apibara/plugin-drizzle",
3
- "version": "2.1.0-beta.22",
3
+ "version": "2.1.0-beta.24",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -54,8 +54,8 @@
54
54
  "vitest": "^1.6.0"
55
55
  },
56
56
  "dependencies": {
57
- "@apibara/indexer": "2.1.0-beta.22",
58
- "@apibara/protocol": "2.1.0-beta.22",
57
+ "@apibara/indexer": "2.1.0-beta.24",
58
+ "@apibara/protocol": "2.1.0-beta.24",
59
59
  "postgres-range": "^1.1.4"
60
60
  }
61
61
  }
package/src/index.ts CHANGED
@@ -320,7 +320,7 @@ export function drizzleStorage<
320
320
  });
321
321
 
322
322
  indexer.hooks.hook("message:finalize", async ({ message }) => {
323
- const { cursor } = message.finalize;
323
+ const { cursor } = message;
324
324
 
325
325
  if (!cursor) {
326
326
  throw new DrizzleStorageError("Finalized Cursor is undefined");
@@ -336,7 +336,7 @@ export function drizzleStorage<
336
336
  });
337
337
 
338
338
  indexer.hooks.hook("message:invalidate", async ({ message }) => {
339
- const { cursor } = message.invalidate;
339
+ const { cursor } = message;
340
340
 
341
341
  if (!cursor) {
342
342
  throw new DrizzleStorageError("Invalidate Cursor is undefined");