@hyperframes/studio-server 0.8.195 → 0.8.197

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.
@@ -2344,7 +2344,12 @@ var Engine = class {
2344
2344
  async writeAs(who, label, target, extra) {
2345
2345
  this.assertWritable();
2346
2346
  const changes = [...target].filter(([path, hash]) => (this.tracked.get(path)?.hash ?? null) !== hash).sort(([, a], [, b]) => Number(a !== null) - Number(b !== null));
2347
- const gone = changes.find(([, hash]) => hash !== null && !this.blobs.has(hash));
2347
+ const setAsideByDeletesFirst = new Set(
2348
+ changes.filter(([, hash]) => hash === null).map(([path]) => this.tracked.get(path)?.hash)
2349
+ );
2350
+ const gone = changes.find(
2351
+ ([, hash]) => hash !== null && !this.blobs.has(hash) && !setAsideByDeletesFirst.has(hash)
2352
+ );
2348
2353
  if (gone)
2349
2354
  throw new Error(
2350
2355
  `An earlier version of ${gone[0]} is not kept, so this cannot be brought back.`
@@ -22,7 +22,7 @@ import {
22
22
  recordRenderSuccess,
23
23
  registerRenderOutput,
24
24
  retainSnapshotOutput
25
- } from "../chunk-4HP26XV4.js";
25
+ } from "../chunk-VKQTZKGA.js";
26
26
  import "../chunk-QF7MFJJU.js";
27
27
  import "../chunk-SVQFE44C.js";
28
28
  import "../chunk-L3HJVTQE.js";
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  resolveProjectSignature,
63
63
  retainSnapshotOutput,
64
64
  settledFileTag
65
- } from "./chunk-4HP26XV4.js";
65
+ } from "./chunk-VKQTZKGA.js";
66
66
  import {
67
67
  clearElementScreenshotIsolation,
68
68
  getElementScreenshotClip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/studio-server",
3
- "version": "0.8.195",
3
+ "version": "0.8.197",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -84,8 +84,8 @@
84
84
  "linkedom": "^0.18.12",
85
85
  "postcss": "^8.5.8",
86
86
  "postcss-selector-parser": "^7.1.2",
87
- "@hyperframes/parsers": "0.8.195",
88
- "@hyperframes/core": "0.8.195"
87
+ "@hyperframes/core": "0.8.197",
88
+ "@hyperframes/parsers": "0.8.197"
89
89
  },
90
90
  "devDependencies": {
91
91
  "@types/node": "^25.0.10",