@event-driven-io/emmett-sqlite 0.38.0 → 0.38.2

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
@@ -248,10 +248,12 @@ var NotifyAboutNoActiveReadersStream = (_class = class extends _webstreamspolyfi
248
248
  }
249
249
  }
250
250
  }, _class);
251
- var contextualGetCheckpoint = (context) => "getCheckpoint" in context && context.getCheckpoint && typeof context.getCheckpoint === "function" ? context.getCheckpoint : void 0;
252
- var getCheckpoint = (message2, context) => {
253
- const getCheckpoint2 = contextualGetCheckpoint(context);
254
- return getCheckpoint2 ? getCheckpoint2(message2) : "globalPosition" in message2.metadata && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
251
+ var getCheckpoint = (message2) => {
252
+ return "checkpoint" in message2.metadata && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
253
+ isBigint(message2.metadata.checkpoint) ? (
254
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
255
+ message2.metadata.checkpoint
256
+ ) : "globalPosition" in message2.metadata && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
255
257
  isBigint(message2.metadata.globalPosition) ? (
256
258
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
257
259
  message2.metadata.globalPosition
@@ -878,10 +880,7 @@ var genericSQLiteProcessor = (options) => {
878
880
  connection,
879
881
  fileName
880
882
  });
881
- const newPosition = getCheckpoint(
882
- typedMessage,
883
- context
884
- );
883
+ const newPosition = getCheckpoint(typedMessage);
885
884
  await storeProcessorCheckpoint(connection, {
886
885
  processorId: options.processorId,
887
886
  version: options.version,