@upstash/workflow 1.3.2 → 1.4.0-rc
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/astro.d.mts +3 -2
- package/astro.d.ts +3 -2
- package/astro.js +595 -140
- package/astro.mjs +3 -1
- package/{chunk-ICDNN4UW.mjs → chunk-UH6O5IJY.mjs} +751 -281
- package/cloudflare.d.mts +3 -2
- package/cloudflare.d.ts +3 -2
- package/cloudflare.js +595 -140
- package/cloudflare.mjs +3 -1
- package/express.d.mts +3 -2
- package/express.d.ts +3 -2
- package/express.js +596 -140
- package/express.mjs +4 -1
- package/h3.d.mts +3 -2
- package/h3.d.ts +3 -2
- package/h3.js +595 -140
- package/h3.mjs +3 -1
- package/hono.d.mts +3 -2
- package/hono.d.ts +3 -2
- package/hono.js +595 -140
- package/hono.mjs +3 -1
- package/index.d.mts +64 -17
- package/index.d.ts +64 -17
- package/index.js +652 -150
- package/index.mjs +49 -11
- package/nextjs.d.mts +3 -2
- package/nextjs.d.ts +3 -2
- package/nextjs.js +596 -140
- package/nextjs.mjs +4 -1
- package/package.json +1 -1
- package/react-router.d.mts +3 -2
- package/react-router.d.ts +3 -2
- package/react-router.js +595 -140
- package/react-router.mjs +3 -1
- package/{serve-many-iJF1IUXk.d.ts → serve-many-BCtZg31b.d.ts} +1 -1
- package/{serve-many-CG3BFvO3.d.mts → serve-many-CbIV7145.d.mts} +1 -1
- package/solidjs.d.mts +2 -1
- package/solidjs.d.ts +2 -1
- package/solidjs.js +595 -140
- package/solidjs.mjs +3 -1
- package/svelte.d.mts +3 -2
- package/svelte.d.ts +3 -2
- package/svelte.js +595 -140
- package/svelte.mjs +3 -1
- package/tanstack.d.mts +3 -2
- package/tanstack.d.ts +3 -2
- package/tanstack.js +595 -140
- package/tanstack.mjs +3 -1
- package/{types-CekOpKvz.d.ts → types-ffLPVG5_.d.mts} +248 -8
- package/{types-CekOpKvz.d.mts → types-ffLPVG5_.d.ts} +248 -8
package/express.mjs
CHANGED
|
@@ -2,12 +2,13 @@ import {
|
|
|
2
2
|
SDK_TELEMETRY,
|
|
3
3
|
serveBase,
|
|
4
4
|
serveManyBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UH6O5IJY.mjs";
|
|
6
6
|
|
|
7
7
|
// platforms/express.ts
|
|
8
8
|
import {
|
|
9
9
|
Router
|
|
10
10
|
} from "express";
|
|
11
|
+
import { startDevServer } from "@upstash/qstash";
|
|
11
12
|
var isEmptyRequest = (req) => {
|
|
12
13
|
return req.headers["content-type"] === "application/json" && req.headers["content-length"] === "0";
|
|
13
14
|
};
|
|
@@ -58,6 +59,7 @@ function createExpressHandler(params) {
|
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
61
|
function serve(routeFunction, options) {
|
|
62
|
+
void startDevServer();
|
|
61
63
|
const router = Router();
|
|
62
64
|
const handler = createExpressHandler([routeFunction, options]);
|
|
63
65
|
router.all(/(.*)/, handler);
|
|
@@ -73,6 +75,7 @@ var createWorkflow = (...params) => {
|
|
|
73
75
|
};
|
|
74
76
|
};
|
|
75
77
|
var serveMany = (workflows, options) => {
|
|
78
|
+
void startDevServer();
|
|
76
79
|
const router = Router();
|
|
77
80
|
const { handler } = serveManyBase({
|
|
78
81
|
workflows,
|
package/h3.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as h3 from 'h3';
|
|
2
|
-
import { c as RouteFunction, d as WorkflowServeOptions, I as InvokableWorkflow } from './types-
|
|
3
|
-
import { s as serveManyBase } from './serve-many-
|
|
2
|
+
import { c as RouteFunction, d as WorkflowServeOptions, I as InvokableWorkflow } from './types-ffLPVG5_.mjs';
|
|
3
|
+
import { s as serveManyBase } from './serve-many-CbIV7145.mjs';
|
|
4
4
|
import '@upstash/qstash';
|
|
5
5
|
import 'zod';
|
|
6
|
+
import 'neverthrow';
|
|
6
7
|
|
|
7
8
|
declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: WorkflowServeOptions<TInitialPayload, TResult>) => {
|
|
8
9
|
handler: h3.EventHandler<h3.EventHandlerRequest, Promise<Response>>;
|
package/h3.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as h3 from 'h3';
|
|
2
|
-
import { c as RouteFunction, d as WorkflowServeOptions, I as InvokableWorkflow } from './types-
|
|
3
|
-
import { s as serveManyBase } from './serve-many-
|
|
2
|
+
import { c as RouteFunction, d as WorkflowServeOptions, I as InvokableWorkflow } from './types-ffLPVG5_.js';
|
|
3
|
+
import { s as serveManyBase } from './serve-many-BCtZg31b.js';
|
|
4
4
|
import '@upstash/qstash';
|
|
5
5
|
import 'zod';
|
|
6
|
+
import 'neverthrow';
|
|
6
7
|
|
|
7
8
|
declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: WorkflowServeOptions<TInitialPayload, TResult>) => {
|
|
8
9
|
handler: h3.EventHandler<h3.EventHandlerRequest, Promise<Response>>;
|