@apibara/plugin-mongo 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
@@ -434,7 +434,7 @@ function mongoStorage({
434
434
  });
435
435
  });
436
436
  indexer.hooks.hook("message:finalize", async ({ message }) => {
437
- const { cursor } = message.finalize;
437
+ const { cursor } = message;
438
438
  if (!cursor) {
439
439
  throw new MongoStorageError("finalized cursor is undefined");
440
440
  }
@@ -447,7 +447,7 @@ function mongoStorage({
447
447
  });
448
448
  });
449
449
  indexer.hooks.hook("message:invalidate", async ({ message }) => {
450
- const { cursor } = message.invalidate;
450
+ const { cursor } = message;
451
451
  if (!cursor) {
452
452
  throw new MongoStorageError("invalidate cursor is undefined");
453
453
  }
package/dist/index.mjs CHANGED
@@ -432,7 +432,7 @@ function mongoStorage({
432
432
  });
433
433
  });
434
434
  indexer.hooks.hook("message:finalize", async ({ message }) => {
435
- const { cursor } = message.finalize;
435
+ const { cursor } = message;
436
436
  if (!cursor) {
437
437
  throw new MongoStorageError("finalized cursor is undefined");
438
438
  }
@@ -445,7 +445,7 @@ function mongoStorage({
445
445
  });
446
446
  });
447
447
  indexer.hooks.hook("message:invalidate", async ({ message }) => {
448
- const { cursor } = message.invalidate;
448
+ const { cursor } = message;
449
449
  if (!cursor) {
450
450
  throw new MongoStorageError("invalidate cursor is undefined");
451
451
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apibara/plugin-mongo",
3
- "version": "2.1.0-beta.22",
3
+ "version": "2.1.0-beta.24",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -35,7 +35,7 @@
35
35
  "mongodb": "^6.12.0"
36
36
  },
37
37
  "dependencies": {
38
- "@apibara/indexer": "2.1.0-beta.22",
39
- "@apibara/protocol": "2.1.0-beta.22"
38
+ "@apibara/indexer": "2.1.0-beta.24",
39
+ "@apibara/protocol": "2.1.0-beta.24"
40
40
  }
41
41
  }
package/src/index.ts CHANGED
@@ -152,7 +152,7 @@ export function mongoStorage<TFilter, TBlock>({
152
152
  });
153
153
 
154
154
  indexer.hooks.hook("message:finalize", async ({ message }) => {
155
- const { cursor } = message.finalize;
155
+ const { cursor } = message;
156
156
 
157
157
  if (!cursor) {
158
158
  throw new MongoStorageError("finalized cursor is undefined");
@@ -169,7 +169,7 @@ export function mongoStorage<TFilter, TBlock>({
169
169
  });
170
170
 
171
171
  indexer.hooks.hook("message:invalidate", async ({ message }) => {
172
- const { cursor } = message.invalidate;
172
+ const { cursor } = message;
173
173
 
174
174
  if (!cursor) {
175
175
  throw new MongoStorageError("invalidate cursor is undefined");