@leitwerk-dev/worker 0.2.1 → 0.3.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.
@@ -7646,7 +7646,12 @@ function createWorkerRuntime(options) {
7646
7646
  adapters.exit(command.code);
7647
7647
  return;
7648
7648
  case "bootstrap":
7649
- void resources.bootstrap(command.payload, resolveWorkerRuntimeSettings(config, command.payload)).then(
7649
+ void Promise.resolve().then(() => adapters.beforeTurnBootstrap?.(command.payload.turnStart.turnId)).then(
7650
+ () => resources.bootstrap(
7651
+ command.payload,
7652
+ resolveWorkerRuntimeSettings(config, command.payload)
7653
+ )
7654
+ ).then(
7650
7655
  (completion) => complete({
7651
7656
  kind: "bootstrap_succeeded",
7652
7657
  startRecordId: command.startRecordId,
@@ -8774,6 +8779,7 @@ function createWorkerEntryRuntime(overrides = {}) {
8774
8779
  extensionEvents: workerExtensionApi.events,
8775
8780
  stderr: overrides.stderr,
8776
8781
  scheduler,
8782
+ beforeTurnBootstrap: overrides.beforeTurnBootstrap,
8777
8783
  exit: overrides.exit ?? ((code) => process.exit(code))
8778
8784
  }
8779
8785
  });
@@ -8784,4 +8790,4 @@ export {
8784
8790
  createWorkerRuntime,
8785
8791
  createWorkerEntryRuntime
8786
8792
  };
8787
- //# sourceMappingURL=chunk-2LLFMCR6.js.map
8793
+ //# sourceMappingURL=chunk-4WNVRNE5.js.map