@objectstack/types 17.3.0 → 17.4.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/CHANGELOG.md +165 -0
- package/dist/index.d.mts +117 -3
- package/dist/index.d.ts +117 -3
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -1
- package/dist/node.js +21 -20
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +21 -20
- package/dist/node.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -417,6 +417,24 @@ function demotedDeclaredCode(thrown) {
|
|
|
417
417
|
return thrown.declaredCode !== void 0 && thrown.declaredCode !== thrown.code ? thrown.declaredCode : void 0;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
+
// src/stranded-decision.ts
|
|
421
|
+
var CARRIER = "strandedDecision";
|
|
422
|
+
function strandedDecisionDetails(err) {
|
|
423
|
+
const carried = err?.[CARRIER];
|
|
424
|
+
if (!carried || typeof carried !== "object") return void 0;
|
|
425
|
+
const d = carried;
|
|
426
|
+
if (d.finalized !== true) return void 0;
|
|
427
|
+
if (typeof d.decision !== "string" || d.decision === "") return void 0;
|
|
428
|
+
if (typeof d.runId !== "string" || d.runId === "") return void 0;
|
|
429
|
+
if (typeof d.repairable !== "boolean") return void 0;
|
|
430
|
+
return { finalized: true, decision: d.decision, runId: d.runId, repairable: d.repairable };
|
|
431
|
+
}
|
|
432
|
+
function strandedDecisionFailure(message, details) {
|
|
433
|
+
const err = new Error(message);
|
|
434
|
+
err[CARRIER] = details;
|
|
435
|
+
return err;
|
|
436
|
+
}
|
|
437
|
+
|
|
420
438
|
// src/relation-sub-object.ts
|
|
421
439
|
function matchMissingColumnOfRelation(message) {
|
|
422
440
|
return MISSING_COLUMN_OF_RELATION.exec(message)?.[1];
|
|
@@ -848,6 +866,8 @@ export {
|
|
|
848
866
|
serverFaultLogMeta,
|
|
849
867
|
serverFaultProvenance,
|
|
850
868
|
stampSearchPinyinEnabled,
|
|
869
|
+
strandedDecisionDetails,
|
|
870
|
+
strandedDecisionFailure,
|
|
851
871
|
targetedTableOf,
|
|
852
872
|
unconfirmedGlobalUniques,
|
|
853
873
|
uniqueViolationColumn,
|