@upstash/workflow 0.3.0-rc → 0.3.0-rc1
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 -3
- package/astro.d.ts +3 -3
- package/astro.js +1048 -676
- package/astro.mjs +1 -1
- package/{chunk-AGYYZKP7.mjs → chunk-2Z32SOYM.mjs} +1047 -674
- package/cloudflare.d.mts +3 -3
- package/cloudflare.d.ts +3 -3
- package/cloudflare.js +1048 -676
- package/cloudflare.mjs +1 -1
- package/express.d.mts +3 -3
- package/express.d.ts +3 -3
- package/express.js +1058 -681
- package/express.mjs +11 -6
- package/h3.d.mts +3 -3
- package/h3.d.ts +3 -3
- package/h3.js +1053 -677
- package/h3.mjs +6 -2
- package/hono.d.mts +3 -3
- package/hono.d.ts +3 -3
- package/hono.js +1048 -676
- package/hono.mjs +1 -1
- package/index.d.mts +98 -64
- package/index.d.ts +98 -64
- package/index.js +1079 -697
- package/index.mjs +30 -20
- package/nextjs.d.mts +4 -4
- package/nextjs.d.ts +4 -4
- package/nextjs.js +1049 -677
- package/nextjs.mjs +2 -2
- package/package.json +1 -1
- package/{serve-many-DVtHRxeg.d.ts → serve-many-DhB8-zPD.d.mts} +2 -2
- package/{serve-many-DEwKPF6H.d.mts → serve-many-qnfynN1x.d.ts} +2 -2
- package/solidjs.d.mts +2 -2
- package/solidjs.d.ts +2 -2
- package/solidjs.js +1053 -677
- package/solidjs.mjs +6 -2
- package/svelte.d.mts +5 -6
- package/svelte.d.ts +5 -6
- package/svelte.js +1061 -682
- package/svelte.mjs +14 -7
- package/tanstack.d.mts +3 -3
- package/tanstack.d.ts +3 -3
- package/tanstack.js +1048 -676
- package/tanstack.mjs +1 -1
- package/{types-DESkn7K9.d.ts → types-pEje3VEB.d.mts} +212 -239
- package/{types-DESkn7K9.d.mts → types-pEje3VEB.d.ts} +212 -239
package/express.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
SDK_TELEMETRY,
|
|
3
3
|
serveBase,
|
|
4
4
|
serveManyBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2Z32SOYM.mjs";
|
|
6
6
|
|
|
7
7
|
// platforms/express.ts
|
|
8
8
|
import {
|
|
@@ -41,10 +41,14 @@ function createExpressHandler(params) {
|
|
|
41
41
|
headers: new Headers(request_.headers),
|
|
42
42
|
body: requestBody
|
|
43
43
|
});
|
|
44
|
-
const { handler: serveHandler } = serveBase(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
const { handler: serveHandler } = serveBase(
|
|
45
|
+
routeFunction,
|
|
46
|
+
telemetry,
|
|
47
|
+
options,
|
|
48
|
+
{
|
|
49
|
+
useJSONContent: true
|
|
50
|
+
}
|
|
51
|
+
);
|
|
48
52
|
const response = await serveHandler(webRequest);
|
|
49
53
|
for (const [key, value] of response.headers.entries()) {
|
|
50
54
|
res.setHeader(key, value);
|
|
@@ -64,7 +68,8 @@ var createWorkflow = (...params) => {
|
|
|
64
68
|
return {
|
|
65
69
|
routeFunction,
|
|
66
70
|
options,
|
|
67
|
-
workflowId: void 0
|
|
71
|
+
workflowId: void 0,
|
|
72
|
+
useJSONContent: true
|
|
68
73
|
};
|
|
69
74
|
};
|
|
70
75
|
var serveMany = (workflows, options) => {
|
package/h3.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as h3 from 'h3';
|
|
2
|
-
import {
|
|
3
|
-
import { s as serveManyBase } from './serve-many-
|
|
2
|
+
import { c as RouteFunction, d as WorkflowServeOptions, x as InvokableWorkflow } from './types-pEje3VEB.mjs';
|
|
3
|
+
import { s as serveManyBase } from './serve-many-DhB8-zPD.mjs';
|
|
4
4
|
import '@upstash/qstash';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
|
-
declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?:
|
|
7
|
+
declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: WorkflowServeOptions<TInitialPayload, TResult>) => {
|
|
8
8
|
handler: h3.EventHandler<h3.EventHandlerRequest, Promise<Response>>;
|
|
9
9
|
};
|
|
10
10
|
declare const createWorkflow: <TInitialPayload, TResult>(...params: Parameters<typeof serve<TInitialPayload, TResult>>) => InvokableWorkflow<TInitialPayload, TResult>;
|
package/h3.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as h3 from 'h3';
|
|
2
|
-
import {
|
|
3
|
-
import { s as serveManyBase } from './serve-many-
|
|
2
|
+
import { c as RouteFunction, d as WorkflowServeOptions, x as InvokableWorkflow } from './types-pEje3VEB.js';
|
|
3
|
+
import { s as serveManyBase } from './serve-many-qnfynN1x.js';
|
|
4
4
|
import '@upstash/qstash';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
|
-
declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?:
|
|
7
|
+
declare const serve: <TInitialPayload = unknown, TResult = unknown>(routeFunction: RouteFunction<TInitialPayload, TResult>, options?: WorkflowServeOptions<TInitialPayload, TResult>) => {
|
|
8
8
|
handler: h3.EventHandler<h3.EventHandlerRequest, Promise<Response>>;
|
|
9
9
|
};
|
|
10
10
|
declare const createWorkflow: <TInitialPayload, TResult>(...params: Parameters<typeof serve<TInitialPayload, TResult>>) => InvokableWorkflow<TInitialPayload, TResult>;
|