@workflow/world-testing 4.0.1-beta.26 → 4.0.1-beta.28
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,5 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"steps": {
|
|
3
|
+
"workflows/addition.ts": {
|
|
4
|
+
"add": {
|
|
5
|
+
"stepId": "step//workflows/addition.ts//add"
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
"workflows/null-byte.ts": {
|
|
9
|
+
"nullByteStep": {
|
|
10
|
+
"stepId": "step//workflows/null-byte.ts//nullByteStep"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"workflows/noop.ts": {
|
|
14
|
+
"noop": {
|
|
15
|
+
"stepId": "step//workflows/noop.ts//noop"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
3
18
|
"workflow/dist/internal/builtins.js": {
|
|
4
19
|
"__builtin_response_array_buffer": {
|
|
5
20
|
"stepId": "__builtin_response_array_buffer"
|
|
@@ -11,26 +26,16 @@
|
|
|
11
26
|
"stepId": "__builtin_response_text"
|
|
12
27
|
}
|
|
13
28
|
},
|
|
29
|
+
"workflow/dist/stdlib.js": {
|
|
30
|
+
"fetch": {
|
|
31
|
+
"stepId": "step//workflow/dist/stdlib.js//fetch"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
14
34
|
"workflows/hooks.ts": {
|
|
15
35
|
"writeEvent": {
|
|
16
36
|
"stepId": "step//workflows/hooks.ts//writeEvent"
|
|
17
37
|
}
|
|
18
38
|
},
|
|
19
|
-
"workflows/noop.ts": {
|
|
20
|
-
"noop": {
|
|
21
|
-
"stepId": "step//workflows/noop.ts//noop"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"workflows/addition.ts": {
|
|
25
|
-
"add": {
|
|
26
|
-
"stepId": "step//workflows/addition.ts//add"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"workflows/null-byte.ts": {
|
|
30
|
-
"nullByteStep": {
|
|
31
|
-
"stepId": "step//workflows/null-byte.ts//nullByteStep"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
39
|
"workflows/retriable-and-fatal.ts": {
|
|
35
40
|
"stepThatFails": {
|
|
36
41
|
"stepId": "step//workflows/retriable-and-fatal.ts//stepThatFails"
|
|
@@ -38,17 +43,12 @@
|
|
|
38
43
|
"stepThatThrowsRetryableError": {
|
|
39
44
|
"stepId": "step//workflows/retriable-and-fatal.ts//stepThatThrowsRetryableError"
|
|
40
45
|
}
|
|
41
|
-
},
|
|
42
|
-
"workflow/dist/stdlib.js": {
|
|
43
|
-
"fetch": {
|
|
44
|
-
"stepId": "step//workflow/dist/stdlib.js//fetch"
|
|
45
|
-
}
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"workflows": {
|
|
49
|
-
"workflows/
|
|
50
|
-
"
|
|
51
|
-
"workflowId": "workflow//workflows/
|
|
49
|
+
"workflows/addition.ts": {
|
|
50
|
+
"addition": {
|
|
51
|
+
"workflowId": "workflow//workflows/addition.ts//addition"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"workflows/noop.ts": {
|
|
@@ -56,20 +56,20 @@
|
|
|
56
56
|
"workflowId": "workflow//workflows/noop.ts//brokenWf"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"workflows/
|
|
60
|
-
"
|
|
61
|
-
"workflowId": "workflow//workflows/
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"workflows/retriable-and-fatal.ts": {
|
|
65
|
-
"retryableAndFatalErrorWorkflow": {
|
|
66
|
-
"workflowId": "workflow//workflows/retriable-and-fatal.ts//retryableAndFatalErrorWorkflow"
|
|
59
|
+
"workflows/null-byte.ts": {
|
|
60
|
+
"nullByteWorkflow": {
|
|
61
|
+
"workflowId": "workflow//workflows/null-byte.ts//nullByteWorkflow"
|
|
67
62
|
}
|
|
68
63
|
},
|
|
69
64
|
"workflows/hooks.ts": {
|
|
70
65
|
"collectWithHook": {
|
|
71
66
|
"workflowId": "workflow//workflows/hooks.ts//collectWithHook"
|
|
72
67
|
}
|
|
68
|
+
},
|
|
69
|
+
"workflows/retriable-and-fatal.ts": {
|
|
70
|
+
"retryableAndFatalErrorWorkflow": {
|
|
71
|
+
"workflowId": "workflow//workflows/retriable-and-fatal.ts//retryableAndFatalErrorWorkflow"
|
|
72
|
+
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -23661,6 +23661,30 @@ __name(__builtin_response_text, "__builtin_response_text");
|
|
|
23661
23661
|
registerStepFunction("__builtin_response_array_buffer", __builtin_response_array_buffer);
|
|
23662
23662
|
registerStepFunction("__builtin_response_json", __builtin_response_json);
|
|
23663
23663
|
registerStepFunction("__builtin_response_text", __builtin_response_text);
|
|
23664
|
+
// workflows/addition.ts
|
|
23665
|
+
async function add(num, num2) {
|
|
23666
|
+
return num + num2;
|
|
23667
|
+
}
|
|
23668
|
+
__name(add, "add");
|
|
23669
|
+
async function addition(num, num2) {
|
|
23670
|
+
throw new Error("You attempted to execute workflow addition function directly. To start a workflow, use start(addition) from workflow/api");
|
|
23671
|
+
}
|
|
23672
|
+
__name(addition, "addition");
|
|
23673
|
+
addition.workflowId = "workflow//workflows/addition.ts//addition";
|
|
23674
|
+
registerStepFunction("step//workflows/addition.ts//add", add);
|
|
23675
|
+
// workflows/noop.ts
|
|
23676
|
+
var count = 0;
|
|
23677
|
+
async function noop(_i) {
|
|
23678
|
+
count++;
|
|
23679
|
+
return count;
|
|
23680
|
+
}
|
|
23681
|
+
__name(noop, "noop");
|
|
23682
|
+
async function brokenWf() {
|
|
23683
|
+
throw new Error("You attempted to execute workflow brokenWf function directly. To start a workflow, use start(brokenWf) from workflow/api");
|
|
23684
|
+
}
|
|
23685
|
+
__name(brokenWf, "brokenWf");
|
|
23686
|
+
brokenWf.workflowId = "workflow//workflows/noop.ts//brokenWf";
|
|
23687
|
+
registerStepFunction("step//workflows/noop.ts//noop", noop);
|
|
23664
23688
|
// ../utils/dist/index.js
|
|
23665
23689
|
var import_ms = __toESM(require_ms(), 1);
|
|
23666
23690
|
function once(fn) {
|
|
@@ -41386,7 +41410,7 @@ __name(createLocalWorld, "createLocalWorld");
|
|
|
41386
41410
|
var import_node_os = __toESM(require("node:os"), 1);
|
|
41387
41411
|
var import_oidc2 = __toESM(require_dist(), 1);
|
|
41388
41412
|
// ../world-vercel/dist/version.js
|
|
41389
|
-
var version2 = "4.0.1-beta.
|
|
41413
|
+
var version2 = "4.0.1-beta.16";
|
|
41390
41414
|
// ../world-vercel/dist/utils.js
|
|
41391
41415
|
var DEFAULT_RESOLVE_DATA_OPTION2 = "all";
|
|
41392
41416
|
function dateToStringReplacer(_key, value) {
|
|
@@ -41524,7 +41548,7 @@ var MessageWrapper = object({
|
|
|
41524
41548
|
payload: QueuePayloadSchema,
|
|
41525
41549
|
queueName: ValidQueueName
|
|
41526
41550
|
});
|
|
41527
|
-
var VERCEL_QUEUE_MAX_VISIBILITY =
|
|
41551
|
+
var VERCEL_QUEUE_MAX_VISIBILITY = 39600;
|
|
41528
41552
|
function createQueue2(config3) {
|
|
41529
41553
|
const { baseUrl, usingProxy } = getHttpUrl(config3);
|
|
41530
41554
|
const headers = getHeaders(config3);
|
|
@@ -42977,17 +43001,6 @@ async function writeEvent(writable, event, payload) {
|
|
|
42977
43001
|
}
|
|
42978
43002
|
__name(writeEvent, "writeEvent");
|
|
42979
43003
|
registerStepFunction("step//workflows/hooks.ts//writeEvent", writeEvent);
|
|
42980
|
-
// workflows/addition.ts
|
|
42981
|
-
async function add(num, num2) {
|
|
42982
|
-
return num + num2;
|
|
42983
|
-
}
|
|
42984
|
-
__name(add, "add");
|
|
42985
|
-
async function addition(num, num2) {
|
|
42986
|
-
throw new Error("You attempted to execute workflow addition function directly. To start a workflow, use start(addition) from workflow/api");
|
|
42987
|
-
}
|
|
42988
|
-
__name(addition, "addition");
|
|
42989
|
-
addition.workflowId = "workflow//workflows/addition.ts//addition";
|
|
42990
|
-
registerStepFunction("step//workflows/addition.ts//add", add);
|
|
42991
43004
|
// workflows/null-byte.ts
|
|
42992
43005
|
async function nullByteStep() {
|
|
42993
43006
|
return "null byte \0";
|
|
@@ -42999,19 +43012,6 @@ async function nullByteWorkflow() {
|
|
|
42999
43012
|
__name(nullByteWorkflow, "nullByteWorkflow");
|
|
43000
43013
|
nullByteWorkflow.workflowId = "workflow//workflows/null-byte.ts//nullByteWorkflow";
|
|
43001
43014
|
registerStepFunction("step//workflows/null-byte.ts//nullByteStep", nullByteStep);
|
|
43002
|
-
// workflows/noop.ts
|
|
43003
|
-
var count = 0;
|
|
43004
|
-
async function noop(_i) {
|
|
43005
|
-
count++;
|
|
43006
|
-
return count;
|
|
43007
|
-
}
|
|
43008
|
-
__name(noop, "noop");
|
|
43009
|
-
async function brokenWf() {
|
|
43010
|
-
throw new Error("You attempted to execute workflow brokenWf function directly. To start a workflow, use start(brokenWf) from workflow/api");
|
|
43011
|
-
}
|
|
43012
|
-
__name(brokenWf, "brokenWf");
|
|
43013
|
-
brokenWf.workflowId = "workflow//workflows/noop.ts//brokenWf";
|
|
43014
|
-
registerStepFunction("step//workflows/noop.ts//noop", noop);
|
|
43015
43015
|
// workflows/retriable-and-fatal.ts
|
|
43016
43016
|
async function retryableAndFatalErrorWorkflow() {
|
|
43017
43017
|
throw new Error("You attempted to execute workflow retryableAndFatalErrorWorkflow function directly. To start a workflow, use start(retryableAndFatalErrorWorkflow) from workflow/api");
|