@upstash/qstash 2.7.9 → 2.7.11-canary

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.
@@ -1,3 +1,29 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
1
27
  // src/receiver.ts
2
28
  import * as jose from "jose";
3
29
  import crypto2 from "crypto-js";
@@ -2064,6 +2090,7 @@ var AutoExecutor = class _AutoExecutor {
2064
2090
  * @param index index of the current step
2065
2091
  * @returns result[index] if lazyStepList > 1, otherwise result
2066
2092
  */
2093
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
2067
2094
  static getResult(lazyStepList, result, index) {
2068
2095
  if (lazyStepList.length === 1) {
2069
2096
  return result;
@@ -2489,6 +2516,7 @@ var WorkflowContext = class {
2489
2516
  * @param headers call headers
2490
2517
  * @returns call result (parsed as JSON if possible)
2491
2518
  */
2519
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
2492
2520
  async call(stepName, url, method, body, headers) {
2493
2521
  const result = await this.addStep(
2494
2522
  new LazyCallStep(stepName, url, method, body, headers ?? {})
@@ -2923,6 +2951,8 @@ var Workflow = class {
2923
2951
  };
2924
2952
 
2925
2953
  export {
2954
+ __commonJS,
2955
+ __toESM,
2926
2956
  SignatureError,
2927
2957
  Receiver,
2928
2958
  QstashError,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Receiver,
3
3
  serve
4
- } from "./chunk-QK55BUNQ.mjs";
4
+ } from "./chunk-KWSSCN6R.mjs";
5
5
 
6
6
  // node_modules/defu/dist/defu.mjs
7
7
  function isPlainObject(value) {