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.
@@ -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-ud5wEfnx.mjs";
2
- import { a as redelivery, i as invocationOf, n as atLeastOncePerMessage$1 } from "./delivery-invariants-BCtvzAfW.mjs";
3
- import { c as checkSpecModule, s as emitRegressionTest, t as renderJson, y as describeVerdict } from "./src-nwQA9Xwr.mjs";
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
- ctx.hooks.unsupported(`${binding}.newUniqueId() is random and differs on replay; use idFromName`);
644
- return target.newUniqueId(options);
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, () => handler.call(worker.handler, requestFor(req), worker.env, executionContext(background)));
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-Be43_PZo.mjs.map
5328
+ //# sourceMappingURL=workerd-DvhVDnQW.mjs.map