@wrongstack/governance 0.319.1 → 0.320.1
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.js +9 -2
- package/dist/project-daemon.js +9 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1211,6 +1211,7 @@ async function connectGovernanceProjectClient(options) {
|
|
|
1211
1211
|
|
|
1212
1212
|
// src/sanitize.ts
|
|
1213
1213
|
function sanitizeGovernanceMessage(message) {
|
|
1214
|
+
if (typeof message !== "string") return "";
|
|
1214
1215
|
return message.replace(/wsg_[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*/gu, "[credential]").slice(0, 512);
|
|
1215
1216
|
}
|
|
1216
1217
|
|
|
@@ -4568,7 +4569,10 @@ var SqliteGovernanceEventStore = class _SqliteGovernanceEventStore {
|
|
|
4568
4569
|
aggregate: resultAggregate
|
|
4569
4570
|
};
|
|
4570
4571
|
} catch (error) {
|
|
4571
|
-
|
|
4572
|
+
try {
|
|
4573
|
+
this.db.exec("ROLLBACK");
|
|
4574
|
+
} catch {
|
|
4575
|
+
}
|
|
4572
4576
|
throw error;
|
|
4573
4577
|
}
|
|
4574
4578
|
}
|
|
@@ -4632,7 +4636,10 @@ var SqliteGovernanceEventStore = class _SqliteGovernanceEventStore {
|
|
|
4632
4636
|
this.db.exec("COMMIT");
|
|
4633
4637
|
return { handled: true, idempotentReplay: false, observation: stored };
|
|
4634
4638
|
} catch (error) {
|
|
4635
|
-
|
|
4639
|
+
try {
|
|
4640
|
+
this.db.exec("ROLLBACK");
|
|
4641
|
+
} catch {
|
|
4642
|
+
}
|
|
4636
4643
|
throw error;
|
|
4637
4644
|
}
|
|
4638
4645
|
}
|
package/dist/project-daemon.js
CHANGED
|
@@ -489,6 +489,7 @@ async function acquireGovernanceDaemonStartupLease(options) {
|
|
|
489
489
|
|
|
490
490
|
// src/sanitize.ts
|
|
491
491
|
function sanitizeGovernanceMessage(message) {
|
|
492
|
+
if (typeof message !== "string") return "";
|
|
492
493
|
return message.replace(/wsg_[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*/gu, "[credential]").slice(0, 512);
|
|
493
494
|
}
|
|
494
495
|
|
|
@@ -3062,7 +3063,10 @@ var SqliteGovernanceEventStore = class _SqliteGovernanceEventStore {
|
|
|
3062
3063
|
aggregate: resultAggregate
|
|
3063
3064
|
};
|
|
3064
3065
|
} catch (error) {
|
|
3065
|
-
|
|
3066
|
+
try {
|
|
3067
|
+
this.db.exec("ROLLBACK");
|
|
3068
|
+
} catch {
|
|
3069
|
+
}
|
|
3066
3070
|
throw error;
|
|
3067
3071
|
}
|
|
3068
3072
|
}
|
|
@@ -3126,7 +3130,10 @@ var SqliteGovernanceEventStore = class _SqliteGovernanceEventStore {
|
|
|
3126
3130
|
this.db.exec("COMMIT");
|
|
3127
3131
|
return { handled: true, idempotentReplay: false, observation: stored };
|
|
3128
3132
|
} catch (error) {
|
|
3129
|
-
|
|
3133
|
+
try {
|
|
3134
|
+
this.db.exec("ROLLBACK");
|
|
3135
|
+
} catch {
|
|
3136
|
+
}
|
|
3130
3137
|
throw error;
|
|
3131
3138
|
}
|
|
3132
3139
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/governance",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.320.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Deterministic workflow contracts and transition policy for WrongStack orchestration.",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@wrongstack/persistence": "0.
|
|
30
|
+
"@wrongstack/persistence": "0.320.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^26.2.0",
|