@bian-womp/spark-remote 0.3.77 → 0.3.78

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/lib/cjs/index.cjs CHANGED
@@ -573,14 +573,9 @@ async function createServerRuntimeAdapter(id, createRegistry, send, extensions)
573
573
  await originalAdapter.build(def, { environment: payload.environment });
574
574
  }
575
575
  else {
576
- const releasePause = graphRuntime.requestPause();
577
- try {
578
- graphRuntime.setEnvironment(payload.environment || {});
579
- graphRuntime.update(def, registry);
580
- }
581
- finally {
582
- releasePause();
583
- }
576
+ // Reuse adapter methods so applySnapshot follows normal update semantics.
577
+ await originalAdapter.setEnvironment(payload.environment || {}, { merge: false, dry: true });
578
+ await originalAdapter.update(def, { dry: true });
584
579
  }
585
580
  }
586
581
  else if (!graphRuntime) {