@upstash/qstash 2.7.9 → 2.8.0-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.
- package/{chunk-QK55BUNQ.mjs → dist/chunk-KWSSCN6R.mjs} +30 -0
- package/{chunk-UPFTIDSI.mjs → dist/chunk-XLCNEVA2.mjs} +1 -1
- package/dist/cloudflare.js +2973 -0
- package/{cloudflare.mjs → dist/cloudflare.mjs} +1 -1
- package/dist/h3.js +3338 -0
- package/{h3.mjs → dist/h3.mjs} +2 -2
- package/{chunk-R5CZPV7H.js → dist/hono.js} +245 -239
- package/{hono.mjs → dist/hono.mjs} +1 -1
- package/dist/index.js +1639 -0
- package/{index.mjs → dist/index.mjs} +1 -1
- package/dist/nextjs.js +4742 -0
- package/dist/nextjs.mjs +1802 -0
- package/dist/nuxt.js +832 -0
- package/{nuxt.mjs → dist/nuxt.mjs} +2 -2
- package/dist/solidjs.js +2991 -0
- package/{solidjs.mjs → dist/solidjs.mjs} +1 -1
- package/dist/svelte.js +2988 -0
- package/{svelte.mjs → dist/svelte.mjs} +1 -1
- package/dist/workflow.js +2954 -0
- package/{workflow.mjs → dist/workflow.mjs} +1 -1
- package/package.json +1 -1
- package/chunk-VN7YQ2UN.js +0 -1
- package/chunk-YBZBGHDQ.js +0 -403
- package/cloudflare.js +0 -37
- package/h3.js +0 -10
- package/hono.js +0 -22
- package/index.js +0 -43
- package/nextjs.js +0 -178
- package/nextjs.mjs +0 -178
- package/nuxt.js +0 -11
- package/solidjs.js +0 -56
- package/svelte.js +0 -53
- package/workflow.js +0 -18
- /package/{chunk-CIVGPRQN.mjs → dist/chunk-CIVGPRQN.mjs} +0 -0
- /package/{client-DkrYCqaq.d.mts → dist/client-DkrYCqaq.d.mts} +0 -0
- /package/{client-DkrYCqaq.d.ts → dist/client-DkrYCqaq.d.ts} +0 -0
- /package/{cloudflare.d.mts → dist/cloudflare.d.mts} +0 -0
- /package/{cloudflare.d.ts → dist/cloudflare.d.ts} +0 -0
- /package/{h3.d.mts → dist/h3.d.mts} +0 -0
- /package/{h3.d.ts → dist/h3.d.ts} +0 -0
- /package/{hono.d.mts → dist/hono.d.mts} +0 -0
- /package/{hono.d.ts → dist/hono.d.ts} +0 -0
- /package/{index.d.mts → dist/index.d.mts} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{nextjs.d.mts → dist/nextjs.d.mts} +0 -0
- /package/{nextjs.d.ts → dist/nextjs.d.ts} +0 -0
- /package/{nuxt.d.mts → dist/nuxt.d.mts} +0 -0
- /package/{nuxt.d.ts → dist/nuxt.d.ts} +0 -0
- /package/{solidjs.d.mts → dist/solidjs.d.mts} +0 -0
- /package/{solidjs.d.ts → dist/solidjs.d.ts} +0 -0
- /package/{svelte.d.mts → dist/svelte.d.mts} +0 -0
- /package/{svelte.d.ts → dist/svelte.d.ts} +0 -0
- /package/{workflow.d.mts → dist/workflow.d.mts} +0 -0
- /package/{workflow.d.ts → dist/workflow.d.ts} +0 -0
|
@@ -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,
|