@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
|
|
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.`
|
package/dist/history/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio-server",
|
|
3
|
-
"version": "0.8.
|
|
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/
|
|
88
|
-
"@hyperframes/
|
|
87
|
+
"@hyperframes/core": "0.8.197",
|
|
88
|
+
"@hyperframes/parsers": "0.8.197"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@types/node": "^25.0.10",
|