@powerhousedao/reactor 6.2.3-dev.48 → 6.2.3-dev.49
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/{document-indexer-lfgXu9ph.js → document-indexer-Dc_Sv6yi.js} +2 -2
- package/dist/{document-indexer-lfgXu9ph.js.map → document-indexer-Dc_Sv6yi.js.map} +1 -1
- package/dist/{drive-container-types-CifLQjd3.js → drive-container-types-D380mcB3.js} +2 -2
- package/dist/{drive-container-types-CifLQjd3.js.map → drive-container-types-D380mcB3.js.map} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{index-81SYQKda.d.ts → index-Dq2f7oAC.d.ts} +4 -3
- package/dist/{index-81SYQKda.d.ts.map → index-Dq2f7oAC.d.ts.map} +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/{load-spec-f2ppXyKZ.js → load-spec-D9lnje-H.js} +28 -2
- package/dist/load-spec-D9lnje-H.js.map +1 -0
- package/dist/projection-entry.js +2 -2
- package/dist/{projection-shard-manager-XMam-rTs.js → projection-shard-manager-MRJ9BjVM.js} +2 -2
- package/dist/{projection-shard-manager-XMam-rTs.js.map → projection-shard-manager-MRJ9BjVM.js.map} +1 -1
- package/dist/rpc.d.ts +1 -1
- package/dist/{worker-handle-BKuaSp9T.js → worker-handle-B48V1hDm.js} +2 -2
- package/dist/{worker-handle-BKuaSp9T.js.map → worker-handle-B48V1hDm.js.map} +1 -1
- package/package.json +3 -3
- package/dist/load-spec-f2ppXyKZ.js.map +0 -1
|
@@ -414,6 +414,32 @@ var UnsupportedStoredProtocolError = class UnsupportedStoredProtocolError extend
|
|
|
414
414
|
return Error.isError(error) && error.name === "UnsupportedStoredProtocolError";
|
|
415
415
|
}
|
|
416
416
|
};
|
|
417
|
+
/**
|
|
418
|
+
* A batch job failed. A batch is not atomic, so `jobs` holds every job's final
|
|
419
|
+
* state, keyed by plan key; `cause` carries the failed job's own error name.
|
|
420
|
+
*
|
|
421
|
+
* The SharedWorker RPC boundary rebuilds a thrown error from `{ name, message,
|
|
422
|
+
* stack, cause }` alone (`src/rpc/error-info.ts`), so `key` and
|
|
423
|
+
* `jobs` do not survive it. `isError` therefore checks for them, not only the
|
|
424
|
+
* name; across that boundary, classify by the `cause` chain's names instead.
|
|
425
|
+
*/
|
|
426
|
+
var BatchJobFailedError = class BatchJobFailedError extends Error {
|
|
427
|
+
key;
|
|
428
|
+
jobs;
|
|
429
|
+
constructor(key, jobs) {
|
|
430
|
+
const failure = jobs[key].error;
|
|
431
|
+
const cause = new Error(failure?.message ?? "Job failed");
|
|
432
|
+
cause.name = failure?.name ?? "Error";
|
|
433
|
+
super(failure?.message ?? "Job failed", { cause });
|
|
434
|
+
this.name = "BatchJobFailedError";
|
|
435
|
+
this.key = key;
|
|
436
|
+
this.jobs = jobs;
|
|
437
|
+
Error.captureStackTrace(this, BatchJobFailedError);
|
|
438
|
+
}
|
|
439
|
+
static isError(error) {
|
|
440
|
+
return Error.isError(error) && error.name === "BatchJobFailedError" && typeof error.key === "string" && typeof error.jobs === "object";
|
|
441
|
+
}
|
|
442
|
+
};
|
|
417
443
|
//#endregion
|
|
418
444
|
//#region src/storage/interfaces.ts
|
|
419
445
|
/**
|
|
@@ -3843,6 +3869,6 @@ async function loadDocumentModelSpec(spec) {
|
|
|
3843
3869
|
return await defaultLoadFactory(spec);
|
|
3844
3870
|
}
|
|
3845
3871
|
//#endregion
|
|
3846
|
-
export { relationshipTarget as $, CollectionMembershipCache as A,
|
|
3872
|
+
export { relationshipTarget as $, CollectionMembershipCache as A, ReactorEventTypes as At, TouchedStreams as B, ProbeSettler as C, PurgeTooLargeError as Ct, parseSnapshot as D, UnsupportedStoredProtocolError as Dt, describeWaitingSessions as E, UnsupportedProtocolVersionError as Et, ModuleNotFoundError as F, __exportAll as Ft, createConsistencyToken as G, applyUpgradeDocumentAction$1 as H, DOCUMENT_SCOPE_ACTIONS as I, createOperation as J, createDocumentFromAction as K, FencedWriteCache as L, DuplicateModuleError as M, parsePagingOptions as Mt, InvalidModuleError as N, throwIfAborted as Nt, snapshotFunctionsFor as O, UpgradePreconditionFailedError as Ot, ModelNotWorkerImportableError as P, yieldToMain as Pt, refusalError as Q, GATED_DOCUMENT_ACTIONS as R, listPurged as S, InvalidSignatureError as St, createKyselyWatermarkProbe as T, ReservedActionError as Tt, buildErrorResult as U, applyDeleteDocumentAction$1 as V, buildSuccessResult as W, isGenesisOperation as X, getNextIndexForScope as Y, jobWriteIds as Z, KyselyOperationIndex as _, DocumentNotFoundError as _t, sanitizeArg as a, AppendConditionFailedError as at, acquirePurgeLocks as b, GroupInUseError as bt, getMigrationStatus as c, DuplicateOperationError as ct, instrumentPgPool as d, AuthEnforcementDisabledError as dt, submittedActionIds as et, KyselyOperationStore as f, AuthTimestampNotMonotonicError as ft, KyselyWriteCache as g, DocumentNotDeletedError as gt, EventBus as h, DocumentDeletedError as ht, errorToInfo as i, APPEND_CONDITION_FAILED_PREFIX as it, DuplicateManifestError as j, matchesScope as jt, DocumentMetaCache as k, EventBusAggregateError as kt, runMigrations as l, OptimisticLockError as lt, DocumentModelRegistry as m, BatchJobFailedError as mt, loadDocumentModelSpec as n, targetDocumentId as nt, fromErrorInfo as o, DocumentAlreadyExistsError as ot, KyselyKeyframeStore as p, AuthorizationDeniedError as pt, createEmptyConsistencyToken as q, createForwardingLogger as r, updateDocumentRevision as rt, REACTOR_SCHEMA as s, DocumentExistence as st, defaultLoadFactory as t, summarizeSubmittedActions as tt, createForwardingPoolInstrumentation as u, RevisionMismatchError as ut, PURGE_LOCK_BUCKETS as v, DocumentPurgedError as vt, SettledWatermark as w, RelationshipNotFoundError as wt, findPurged as x, InvalidOperationTimestampError as xt, PURGE_NS as y, ExcessiveReshuffleError as yt, PurgeFence as z };
|
|
3847
3873
|
|
|
3848
|
-
//# sourceMappingURL=load-spec-
|
|
3874
|
+
//# sourceMappingURL=load-spec-D9lnje-H.js.map
|