eutaxy 0.15.0 → 0.15.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/README.md +6 -6
- package/dist/aws.mjs +2 -2
- package/dist/bin.mjs +1 -1
- package/dist/{cli-CzGCMudc.mjs → cli-DT4lxaPK.mjs} +231 -39
- package/dist/cli-DT4lxaPK.mjs.map +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/cloudflare.mjs +2 -2
- package/dist/{delivery-invariants-BCtvzAfW.mjs → delivery-invariants-Dr658H1W.mjs} +2 -2
- package/dist/{delivery-invariants-BCtvzAfW.mjs.map → delivery-invariants-Dr658H1W.mjs.map} +1 -1
- package/dist/explore-B52m-wmk.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{src-ud5wEfnx.mjs → src-CPuihHZh.mjs} +217 -238
- package/dist/src-CPuihHZh.mjs.map +1 -0
- package/dist/{src-nwQA9Xwr.mjs → src-wa0JZa-T.mjs} +2 -2
- package/dist/{src-nwQA9Xwr.mjs.map → src-wa0JZa-T.mjs.map} +1 -1
- package/dist/{workerd-Be43_PZo.mjs → workerd-DvhVDnQW.mjs} +14 -7
- package/dist/workerd-DvhVDnQW.mjs.map +1 -0
- package/package.json +3 -3
- package/dist/cli-CzGCMudc.mjs.map +0 -1
- package/dist/src-ud5wEfnx.mjs.map +0 -1
- package/dist/workerd-Be43_PZo.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as readFaults, E as validateScenario, I as getPath, L as canonicalJson, S as virtualEpoch, T as defaultBounds, _ as toResponse, a as explore, b as realTick, c as hostInvocation, d as InjectedEffectError, f as findResponse, g as replyOf, h as parseBody, i as proxiedSide, j as writeFaults, k as decisionFaults, l as runInvocation, m as isRedirect, n as DifferentialStuck, p as installScriptedFetch, r as compareSides, t as observeCore, u as CrashSignal, v as withoutNetwork, w as toJson, x as settleOn, y as patchGlobals } from "./src-
|
|
2
|
-
import { a as redelivery, i as invocationOf, n as atLeastOncePerMessage$1 } from "./delivery-invariants-
|
|
3
|
-
import { c as checkSpecModule, s as emitRegressionTest, t as renderJson, y as describeVerdict } from "./src-
|
|
1
|
+
import { A as readFaults, E as validateScenario, I as getPath, L as canonicalJson, S as virtualEpoch, T as defaultBounds, _ as toResponse, a as explore, b as realTick, c as hostInvocation, d as InjectedEffectError, f as findResponse, g as replyOf, h as parseBody, i as proxiedSide, j as writeFaults, k as decisionFaults, l as runInvocation, m as isRedirect, n as DifferentialStuck, p as installScriptedFetch, r as compareSides, t as observeCore, u as CrashSignal, v as withoutNetwork, w as toJson, x as settleOn, y as patchGlobals } from "./src-CPuihHZh.mjs";
|
|
2
|
+
import { a as redelivery, i as invocationOf, n as atLeastOncePerMessage$1 } from "./delivery-invariants-Dr658H1W.mjs";
|
|
3
|
+
import { c as checkSpecModule, s as emitRegressionTest, t as renderJson, y as describeVerdict } from "./src-wa0JZa-T.mjs";
|
|
4
4
|
// packages/cli/src/regression.ts
|
|
5
5
|
/**
|
|
6
6
|
* Identifiers for binding names: a qualified name (`orders/DB`) becomes
|
|
@@ -640,8 +640,11 @@ function proxyNamespace(real, binding, ctx, state, helpers, isReset) {
|
|
|
640
640
|
case "idFromName": return idFromName;
|
|
641
641
|
case "idFromString": return (hex) => target.idFromString(hex);
|
|
642
642
|
case "newUniqueId": return (options) => {
|
|
643
|
-
|
|
644
|
-
|
|
643
|
+
if (options?.jurisdiction !== void 0) {
|
|
644
|
+
ctx.hooks.unsupported(`${binding}.newUniqueId({ jurisdiction }) ids are not proxied or reset; use newUniqueId() without one`);
|
|
645
|
+
return target.newUniqueId(options);
|
|
646
|
+
}
|
|
647
|
+
return idFromName(`eutaxy:unique:${crypto.randomUUID()}`);
|
|
645
648
|
};
|
|
646
649
|
case "get": return (id, options) => stubFor(target.get(id, options), id.toString(), nameOf(id));
|
|
647
650
|
case "getByName": return (name) => {
|
|
@@ -3927,7 +3930,11 @@ async function deliverRequest(event, hooks, spec, drive, invocation, worker) {
|
|
|
3927
3930
|
requestId: event.id,
|
|
3928
3931
|
attempts: event.attempt
|
|
3929
3932
|
});
|
|
3930
|
-
const handled = await runInvocation(hooks, inv, () =>
|
|
3933
|
+
const handled = await runInvocation(hooks, inv, async () => {
|
|
3934
|
+
const value = await handler.call(worker.handler, requestFor(req), worker.env, executionContext(background));
|
|
3935
|
+
if (!(value instanceof Response)) throw new TypeError("the fetch handler returned something that is not a Response");
|
|
3936
|
+
return value;
|
|
3937
|
+
});
|
|
3931
3938
|
const response = handled.status === "completed" ? handled.value : void 0;
|
|
3932
3939
|
let status = handled.status;
|
|
3933
3940
|
let summary = null;
|
|
@@ -5318,4 +5325,4 @@ async function checkInWorkerd(input) {
|
|
|
5318
5325
|
}
|
|
5319
5326
|
export { r2Bucket as A, webSocketReceived as B, external as C, implies as D, httpResponse as E, rpc as F, cloudflareRegressionTest as G, workflow as H, rpcResponse as I, service as L, r2Rows as M, references as N, queue as O, refines as P, serviceCall as R, everyRow as S, http as T, workflowRows as U, websocket as V, workflowStep as W, d1Write as _, createCloudflarePlatform as a, durableObjectRows as b, expectHolds as c, callee as d, cron as f, d1Schema as g, d1Rows as h, runDifferential as i, r2Op as j, queueAck as k, calleeEnv as l, d1Read as m, globKey as n, snapshotD1 as o, d1Param as p, specKey as r, check as s, checkInWorkerd as t, atLeastOncePerMessage as u, defineScenario as v, fetchCall as w, durableObjectTable as x, durableObject as y, unique as z };
|
|
5320
5327
|
|
|
5321
|
-
//# sourceMappingURL=workerd-
|
|
5328
|
+
//# sourceMappingURL=workerd-DvhVDnQW.mjs.map
|