@geonosis/workflows 0.2.0 → 0.3.0
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/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1037,7 +1037,8 @@ var journalConformance = (createSubject) => {
|
|
|
1037
1037
|
await openRun(journal, { idempotencyKey: "key-a" });
|
|
1038
1038
|
await (0, import_conformance.assertRefuses)(
|
|
1039
1039
|
() => openRun(journal, { idempotencyKey: "key-a" }),
|
|
1040
|
-
"a key held by a running run must be refused"
|
|
1040
|
+
"a key held by a running run must be refused",
|
|
1041
|
+
IdempotencyKeyHeldError
|
|
1041
1042
|
);
|
|
1042
1043
|
}),
|
|
1043
1044
|
// Named rather than merely thrown. Every store words a uniqueness violation differently, and an
|
|
@@ -1062,7 +1063,8 @@ var journalConformance = (createSubject) => {
|
|
|
1062
1063
|
await closeRun(journal, runId, "completed", { done: true });
|
|
1063
1064
|
await (0, import_conformance.assertRefuses)(
|
|
1064
1065
|
() => openRun(journal, { idempotencyKey: "key-b" }),
|
|
1065
|
-
"a key held by a completed run must be refused"
|
|
1066
|
+
"a key held by a completed run must be refused",
|
|
1067
|
+
IdempotencyKeyHeldError
|
|
1066
1068
|
);
|
|
1067
1069
|
}),
|
|
1068
1070
|
...["failed", "compensated", "cancelled"].map(
|
package/dist/index.js
CHANGED
|
@@ -975,7 +975,8 @@ var journalConformance = (createSubject) => {
|
|
|
975
975
|
await openRun(journal, { idempotencyKey: "key-a" });
|
|
976
976
|
await assertRefuses(
|
|
977
977
|
() => openRun(journal, { idempotencyKey: "key-a" }),
|
|
978
|
-
"a key held by a running run must be refused"
|
|
978
|
+
"a key held by a running run must be refused",
|
|
979
|
+
IdempotencyKeyHeldError
|
|
979
980
|
);
|
|
980
981
|
}),
|
|
981
982
|
// Named rather than merely thrown. Every store words a uniqueness violation differently, and an
|
|
@@ -1000,7 +1001,8 @@ var journalConformance = (createSubject) => {
|
|
|
1000
1001
|
await closeRun(journal, runId, "completed", { done: true });
|
|
1001
1002
|
await assertRefuses(
|
|
1002
1003
|
() => openRun(journal, { idempotencyKey: "key-b" }),
|
|
1003
|
-
"a key held by a completed run must be refused"
|
|
1004
|
+
"a key held by a completed run must be refused",
|
|
1005
|
+
IdempotencyKeyHeldError
|
|
1004
1006
|
);
|
|
1005
1007
|
}),
|
|
1006
1008
|
...["failed", "compensated", "cancelled"].map(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geonosis/workflows",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"description": "A workflow engine with one door: named steps whose compensation travels with them, a body that is a real async function with real values, and a journal contract whose run lifecycle, transactional outbox and reverse-start unwinding are model-checked.",
|
|
6
6
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@geonosis/conformance": "^0.2.0",
|
|
40
|
-
"@geonosis/events": "^1.5.
|
|
40
|
+
"@geonosis/events": "^1.5.1"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=22"
|