@workflow/web 4.1.33 → 4.1.35
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/README.md +11 -34
- package/build/client/assets/{encryption-Cu4jq70Y.js → encryption-BhH0xZid.js} +2 -2
- package/build/client/assets/{entry.client-C7XgFTHI.js → entry.client-CaUKWFDB.js} +13 -35
- package/build/client/assets/{highlighted-body-B3W2YXNL-CK5bxjZc.js → highlighted-body-B3W2YXNL-D5wXP22M.js} +2 -2
- package/build/client/assets/{home-vGjXNC_q.js → home-CjokEfcx.js} +92 -164
- package/build/client/assets/{index-BQ-Xa8kF.js → index-BbkkdbNz.js} +78 -149
- package/build/client/assets/{index-CXBr7N7m.js → index-DY3Cy2uF.js} +20 -23
- package/build/client/assets/{manifest-5d325d67.js → manifest-cbe27963.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-CCVNMOf9.js → mermaid-3ZIDBTTL-8p93TMNC.js} +315 -479
- package/build/client/assets/mermaid-3ZIDBTTL-DHICBbcE.css +1 -0
- package/build/client/assets/{root-DjobWPwY.js → root-D-ZCwNhI.js} +5 -35
- package/build/client/assets/root-DzrclYrK.css +1 -0
- package/build/client/assets/{run-detail-nLEl00wq.js → run-detail-H0o7UsyU.js} +141 -205
- package/build/client/assets/server-build-DMZyIeNn.css +1 -0
- package/build/client/assets/{worker-CqHKTA7D.js → worker-DxRAeS-i.js} +2 -2
- package/build/client/assets/{workflow-graph-viewer-CTw33ANm.js → workflow-graph-viewer-C-MZ2XPV.js} +466 -723
- package/build/server/assets/{app-DFeBwpXW.js → app-BX9dMsx4.js} +67 -153
- package/build/server/assets/{highlighted-body-B3W2YXNL-DucHV668.js → highlighted-body-B3W2YXNL-CHc9_Xzp.js} +2 -2
- package/build/server/assets/{index-BUlN7QFn.js → index-BC_EEwAS.js} +2 -2
- package/build/server/assets/{index-DOJ452m_.js → index-BNN2zck_.js} +3 -3
- package/build/server/assets/{index-CMfOrLiJ.js → index-C-y3EhAf.js} +25 -32
- package/build/server/assets/{mermaid-3ZIDBTTL-DCNPJ1qb.js → mermaid-3ZIDBTTL-CP_u5jLd.js} +2 -2
- package/build/server/assets/{server-build-D0sUavwG.js → server-build-C0EUGBN0.js} +6483 -7670
- package/build/server/assets/{token-v98bLjzH.js → token-DYdYwRhs.js} +6 -6
- package/build/server/assets/{token-util-BoIjkgfM.js → token-util-BZHkMK_T.js} +2 -2
- package/build/server/index.js +1 -1
- package/host-guard.js +176 -0
- package/package.json +5 -4
- package/server.d.ts +15 -1
- package/server.js +28 -3
- package/build/client/assets/mermaid-3ZIDBTTL-yyHEMZs4.css +0 -1
- package/build/client/assets/root-BOS11TzD.css +0 -1
- package/build/client/assets/server-build-CNEy-GiI.css +0 -1
|
@@ -2,9 +2,9 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof globalThis.require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { H as HookSchema } from "./server-build-
|
|
6
|
-
import { B, D, a, E, b, c, d, e, L, M, f, g, P, Q, h, R, S, i, j, k, l, m, n, o, p, T, q, r, s, t, u, V, W, v, w, x, y, z, A, C, F, G, I, J, K, O, U, X, Y, Z, _, $, a0 } from "./server-build-
|
|
7
|
-
import "./app-
|
|
5
|
+
import { H as HookSchema } from "./server-build-C0EUGBN0.js";
|
|
6
|
+
import { B, D, a, E, b, c, d, e, L, M, f, g, P, Q, h, R, S, i, j, k, l, m, n, o, p, T, q, r, s, t, u, V, W, v, w, x, y, z, A, C, F, G, I, J, K, O, U, X, Y, Z, _, $, a0 } from "./server-build-C0EUGBN0.js";
|
|
7
|
+
import "./app-BX9dMsx4.js";
|
|
8
8
|
import "stream";
|
|
9
9
|
import "express";
|
|
10
10
|
import "node:stream";
|
|
@@ -301,11 +301,10 @@ function requireGetContext() {
|
|
|
301
301
|
getContext: () => getContext
|
|
302
302
|
});
|
|
303
303
|
getContext_1 = __toCommonJS(get_context_exports);
|
|
304
|
-
const SYMBOL_FOR_REQ_CONTEXT = Symbol.for("@vercel/request-context");
|
|
304
|
+
const SYMBOL_FOR_REQ_CONTEXT = /* @__PURE__ */ Symbol.for("@vercel/request-context");
|
|
305
305
|
function getContext() {
|
|
306
|
-
var _a, _b;
|
|
307
306
|
const fromSymbol = globalThis;
|
|
308
|
-
return
|
|
307
|
+
return fromSymbol[SYMBOL_FOR_REQ_CONTEXT]?.get?.() ?? {};
|
|
309
308
|
}
|
|
310
309
|
return getContext_1;
|
|
311
310
|
}
|
|
@@ -338,13 +337,12 @@ function requireWaitUntil() {
|
|
|
338
337
|
waitUntil_1 = __toCommonJS(wait_until_exports);
|
|
339
338
|
var import_get_context = requireGetContext();
|
|
340
339
|
const waitUntil = (promise) => {
|
|
341
|
-
var _a, _b;
|
|
342
340
|
if (promise === null || typeof promise !== "object" || typeof promise.then !== "function") {
|
|
343
341
|
throw new TypeError(
|
|
344
342
|
`waitUntil can only be called with a Promise, got ${typeof promise}`
|
|
345
343
|
);
|
|
346
344
|
}
|
|
347
|
-
return (
|
|
345
|
+
return (0, import_get_context.getContext)().waitUntil?.(promise);
|
|
348
346
|
};
|
|
349
347
|
return waitUntil_1;
|
|
350
348
|
}
|
|
@@ -377,8 +375,7 @@ function requireMiddleware() {
|
|
|
377
375
|
});
|
|
378
376
|
middleware = __toCommonJS(middleware_exports);
|
|
379
377
|
function handleMiddlewareField(init, headers2) {
|
|
380
|
-
|
|
381
|
-
if ((_a = init == null ? void 0 : init.request) == null ? void 0 : _a.headers) {
|
|
378
|
+
if (init?.request?.headers) {
|
|
382
379
|
if (!(init.request.headers instanceof Headers)) {
|
|
383
380
|
throw new Error("request.headers must be an instance of Headers");
|
|
384
381
|
}
|
|
@@ -391,7 +388,7 @@ function requireMiddleware() {
|
|
|
391
388
|
}
|
|
392
389
|
}
|
|
393
390
|
function rewrite(destination, init) {
|
|
394
|
-
const headers2 = new Headers(
|
|
391
|
+
const headers2 = new Headers(init?.headers ?? {});
|
|
395
392
|
headers2.set("x-middleware-rewrite", String(destination));
|
|
396
393
|
handleMiddlewareField(init, headers2);
|
|
397
394
|
return new Response(null, {
|
|
@@ -400,7 +397,7 @@ function requireMiddleware() {
|
|
|
400
397
|
});
|
|
401
398
|
}
|
|
402
399
|
function next(init) {
|
|
403
|
-
const headers2 = new Headers(
|
|
400
|
+
const headers2 = new Headers(init?.headers ?? {});
|
|
404
401
|
headers2.set("x-middleware-next", "1");
|
|
405
402
|
handleMiddlewareField(init, headers2);
|
|
406
403
|
return new Response(null, {
|
|
@@ -457,8 +454,8 @@ function requireInMemoryCache() {
|
|
|
457
454
|
this.cache[key] = {
|
|
458
455
|
value: serialized,
|
|
459
456
|
lastModified: Date.now(),
|
|
460
|
-
ttl: options
|
|
461
|
-
tags: new Set(
|
|
457
|
+
ttl: options?.ttl,
|
|
458
|
+
tags: new Set(options?.tags || [])
|
|
462
459
|
};
|
|
463
460
|
}
|
|
464
461
|
async delete(key) {
|
|
@@ -514,7 +511,6 @@ function requireBuildClient() {
|
|
|
514
511
|
timeout = 500
|
|
515
512
|
}) {
|
|
516
513
|
this.get = async (key) => {
|
|
517
|
-
var _a, _b, _c, _d;
|
|
518
514
|
const controller = new AbortController();
|
|
519
515
|
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
520
516
|
try {
|
|
@@ -532,7 +528,7 @@ function requireBuildClient() {
|
|
|
532
528
|
import_index.HEADERS_VERCEL_CACHE_STATE
|
|
533
529
|
);
|
|
534
530
|
if (cacheState !== import_index.PkgCacheState.Fresh) {
|
|
535
|
-
|
|
531
|
+
res.body?.cancel?.();
|
|
536
532
|
clearTimeout(timeoutId);
|
|
537
533
|
return null;
|
|
538
534
|
}
|
|
@@ -550,26 +546,25 @@ function requireBuildClient() {
|
|
|
550
546
|
`Cache request timed out after ${this.timeout}ms`
|
|
551
547
|
);
|
|
552
548
|
timeoutError.stack = error.stack;
|
|
553
|
-
|
|
549
|
+
this.onError?.(timeoutError);
|
|
554
550
|
} else {
|
|
555
|
-
|
|
551
|
+
this.onError?.(error);
|
|
556
552
|
}
|
|
557
553
|
return null;
|
|
558
554
|
}
|
|
559
555
|
};
|
|
560
556
|
this.set = async (key, value, options) => {
|
|
561
|
-
var _a, _b;
|
|
562
557
|
const controller = new AbortController();
|
|
563
558
|
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
564
559
|
try {
|
|
565
560
|
const optionalHeaders = {};
|
|
566
|
-
if (options
|
|
561
|
+
if (options?.ttl) {
|
|
567
562
|
optionalHeaders[import_index.HEADERS_VERCEL_REVALIDATE] = options.ttl.toString();
|
|
568
563
|
}
|
|
569
|
-
if (
|
|
564
|
+
if (options?.tags && options.tags.length > 0) {
|
|
570
565
|
optionalHeaders[import_index.HEADERS_VERCEL_CACHE_TAGS] = options.tags.join(",");
|
|
571
566
|
}
|
|
572
|
-
if (options
|
|
567
|
+
if (options?.name) {
|
|
573
568
|
optionalHeaders[import_index.HEADERS_VERCEL_CACHE_ITEM_NAME] = options.name;
|
|
574
569
|
}
|
|
575
570
|
const res = await fetch(`${this.endpoint}${key}`, {
|
|
@@ -592,14 +587,13 @@ function requireBuildClient() {
|
|
|
592
587
|
`Cache request timed out after ${this.timeout}ms`
|
|
593
588
|
);
|
|
594
589
|
timeoutError.stack = error.stack;
|
|
595
|
-
|
|
590
|
+
this.onError?.(timeoutError);
|
|
596
591
|
} else {
|
|
597
|
-
|
|
592
|
+
this.onError?.(error);
|
|
598
593
|
}
|
|
599
594
|
}
|
|
600
595
|
};
|
|
601
596
|
this.delete = async (key) => {
|
|
602
|
-
var _a, _b;
|
|
603
597
|
const controller = new AbortController();
|
|
604
598
|
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
605
599
|
try {
|
|
@@ -619,14 +613,13 @@ function requireBuildClient() {
|
|
|
619
613
|
`Cache request timed out after ${this.timeout}ms`
|
|
620
614
|
);
|
|
621
615
|
timeoutError.stack = error.stack;
|
|
622
|
-
|
|
616
|
+
this.onError?.(timeoutError);
|
|
623
617
|
} else {
|
|
624
|
-
|
|
618
|
+
this.onError?.(error);
|
|
625
619
|
}
|
|
626
620
|
}
|
|
627
621
|
};
|
|
628
622
|
this.expireTag = async (tag) => {
|
|
629
|
-
var _a, _b;
|
|
630
623
|
const controller = new AbortController();
|
|
631
624
|
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
632
625
|
try {
|
|
@@ -649,9 +642,9 @@ function requireBuildClient() {
|
|
|
649
642
|
`Cache request timed out after ${this.timeout}ms`
|
|
650
643
|
);
|
|
651
644
|
timeoutError.stack = error.stack;
|
|
652
|
-
|
|
645
|
+
this.onError?.(timeoutError);
|
|
653
646
|
} else {
|
|
654
|
-
|
|
647
|
+
this.onError?.(error);
|
|
655
648
|
}
|
|
656
649
|
}
|
|
657
650
|
};
|
|
@@ -726,9 +719,9 @@ function requireCache() {
|
|
|
726
719
|
);
|
|
727
720
|
};
|
|
728
721
|
function createKeyTransformer(cacheOptions) {
|
|
729
|
-
const hashFunction =
|
|
722
|
+
const hashFunction = cacheOptions?.keyHashFunction || defaultKeyHashFunction;
|
|
730
723
|
return (key) => {
|
|
731
|
-
if (!
|
|
724
|
+
if (!cacheOptions?.namespace)
|
|
732
725
|
return hashFunction(key);
|
|
733
726
|
const separator = cacheOptions.namespaceSeparator || defaultNamespaceSeparator;
|
|
734
727
|
return `${cacheOptions.namespace}${separator}${hashFunction(key)}`;
|
|
@@ -900,13 +893,13 @@ function requireDbConnections() {
|
|
|
900
893
|
Math.max(100, maximumDuration - (Date.now() - bootTime))
|
|
901
894
|
);
|
|
902
895
|
idleTimeout = setTimeout(() => {
|
|
903
|
-
idleTimeoutResolve
|
|
896
|
+
idleTimeoutResolve?.();
|
|
904
897
|
if (DEBUG) {
|
|
905
898
|
console.log("Database pool idle timeout reached. Releasing connections.");
|
|
906
899
|
}
|
|
907
900
|
}, waitTime);
|
|
908
901
|
const requestContext = (0, import_get_context.getContext)();
|
|
909
|
-
if (requestContext
|
|
902
|
+
if (requestContext?.waitUntil) {
|
|
910
903
|
requestContext.waitUntil(promise);
|
|
911
904
|
} else {
|
|
912
905
|
console.warn("Pool release event triggered outside of request scope.");
|
|
@@ -914,7 +907,7 @@ function requireDbConnections() {
|
|
|
914
907
|
}
|
|
915
908
|
function attachDatabasePool(dbPool) {
|
|
916
909
|
if (idleTimeout) {
|
|
917
|
-
idleTimeoutResolve
|
|
910
|
+
idleTimeoutResolve?.();
|
|
918
911
|
clearTimeout(idleTimeout);
|
|
919
912
|
}
|
|
920
913
|
if ("on" in dbPool && dbPool.on && "options" in dbPool && "idleTimeoutMillis" in dbPool.options) {
|
|
@@ -2,8 +2,8 @@ import { createRequire as __wkfCreateRequire } from "node:module";
|
|
|
2
2
|
if (typeof globalThis.require === "undefined") {
|
|
3
3
|
globalThis.require = __wkfCreateRequire(import.meta.url);
|
|
4
4
|
}
|
|
5
|
-
import { N as Nt } from "./server-build-
|
|
6
|
-
import "./app-
|
|
5
|
+
import { N as Nt } from "./server-build-C0EUGBN0.js";
|
|
6
|
+
import "./app-BX9dMsx4.js";
|
|
7
7
|
import "stream";
|
|
8
8
|
import "express";
|
|
9
9
|
import "node:stream";
|