@valbuild/server 0.156.0 → 0.156.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.
- package/CHANGELOG.md +14 -0
- package/browser/dist/valbuild-server-browser.cjs.dev.js +2 -2
- package/browser/dist/valbuild-server-browser.cjs.prod.js +2 -2
- package/browser/dist/valbuild-server-browser.esm.js +2 -2
- package/dist/{ValOpsMemory-073f9526.cjs.prod.js → ValOpsMemory-6155aa9b.cjs.prod.js} +36 -4
- package/dist/{ValOpsMemory-ecc15827.esm.js → ValOpsMemory-a00c3187.esm.js} +36 -4
- package/dist/{ValOpsMemory-3ce3e9e8.cjs.dev.js → ValOpsMemory-c1453e6a.cjs.dev.js} +36 -4
- package/dist/{createValRuntime-02197b93.esm.js → createValRuntime-4371c69b.esm.js} +2 -2
- package/dist/{createValRuntime-42622f8f.cjs.prod.js → createValRuntime-5eb0336d.cjs.prod.js} +2 -2
- package/dist/{createValRuntime-b55d14f0.cjs.dev.js → createValRuntime-82f38747.cjs.dev.js} +2 -2
- package/dist/{inTabFetch-6dacc8a1.esm.js → inTabFetch-22fc6815.esm.js} +1 -1
- package/dist/{inTabFetch-46ad6b87.cjs.prod.js → inTabFetch-4efbd411.cjs.prod.js} +1 -1
- package/dist/{inTabFetch-85b1aef4.cjs.dev.js → inTabFetch-f5eedbd0.cjs.dev.js} +1 -1
- package/dist/{publishKit-70276aed.cjs.prod.js → publishKit-0ec427f3.cjs.prod.js} +1 -1
- package/dist/{publishKit-a732e3c3.esm.js → publishKit-a40062cd.esm.js} +1 -1
- package/dist/{publishKit-f7a77be5.cjs.dev.js → publishKit-ffcaf2af.cjs.dev.js} +1 -1
- package/dist/{valRuntime-8585d3ce.cjs.prod.js → valRuntime-175e2032.cjs.prod.js} +3 -3
- package/dist/{valRuntime-407399c1.esm.js → valRuntime-18d4c693.esm.js} +3 -3
- package/dist/{valRuntime-7a4bbb5d.cjs.dev.js → valRuntime-c4b2e906.cjs.dev.js} +3 -3
- package/dist/valbuild-server.cjs.dev.js +2 -2
- package/dist/valbuild-server.cjs.prod.js +2 -2
- package/dist/valbuild-server.esm.js +4 -4
- package/internal/browser/dist/valbuild-server-internal-browser.cjs.dev.js +2 -2
- package/internal/browser/dist/valbuild-server-internal-browser.cjs.prod.js +2 -2
- package/internal/browser/dist/valbuild-server-internal-browser.esm.js +2 -2
- package/internal/dist/valbuild-server-internal.cjs.dev.js +1 -1
- package/internal/dist/valbuild-server-internal.cjs.prod.js +1 -1
- package/internal/dist/valbuild-server-internal.esm.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @valbuild/server
|
|
2
2
|
|
|
3
|
+
## 0.156.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1082](https://github.com/valbuild/val/pull/1082) [`156b58e`](https://github.com/valbuild/val/commit/156b58e6a268c704db8aac6eb6769e6cca518f2c) Thanks [@freekh](https://github.com/freekh)! - Discarding many changes is now one request, and a discard that only partly succeeds no longer leaves discarded changes on screen.
|
|
8
|
+
|
|
9
|
+
When some of the changes could not be discarded, for example because one was part of a publish that was running, the Studio said nothing had been discarded and kept showing changes that were already gone. It now drops the ones that were discarded, keeps the rest, and says how many went through, with **Try again** (or **Cancel publish**) for the ones that are left. **Cancel publish** is offered again when a running publish holds a change: that refusal never reached the Studio before.
|
|
10
|
+
|
|
11
|
+
`DELETE /api/val/patches` now takes its ids in the body (`{ "ids": [...] }`), and still accepts the `id` query parameters older Studio tabs send. When it answers 500 because some changes were refused, it now also says which ones it deleted (`deleted`) and the version it moved to (`headVersion`).
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`156b58e`](https://github.com/valbuild/val/commit/156b58e6a268c704db8aac6eb6769e6cca518f2c), [`604d91a`](https://github.com/valbuild/val/commit/604d91a54fbf19e319c39867217caad8bb2f7e8d), [`99b798c`](https://github.com/valbuild/val/commit/99b798ce785c11543891b58b3d53a66339953882)]:
|
|
14
|
+
- @valbuild/ui@0.156.1
|
|
15
|
+
- @valbuild/shared@0.156.1
|
|
16
|
+
|
|
3
17
|
## 0.156.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var inTabFetch = require('../../dist/inTabFetch-
|
|
5
|
+
var inTabFetch = require('../../dist/inTabFetch-f5eedbd0.cjs.dev.js');
|
|
6
6
|
require('@valbuild/core');
|
|
7
|
-
require('../../dist/ValOpsMemory-
|
|
7
|
+
require('../../dist/ValOpsMemory-c1453e6a.cjs.dev.js');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('@valbuild/shared/internal');
|
|
10
10
|
require('../../dist/jsonValuesPatch-88bc661d.cjs.dev.js');
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var inTabFetch = require('../../dist/inTabFetch-
|
|
5
|
+
var inTabFetch = require('../../dist/inTabFetch-4efbd411.cjs.prod.js');
|
|
6
6
|
require('@valbuild/core');
|
|
7
|
-
require('../../dist/ValOpsMemory-
|
|
7
|
+
require('../../dist/ValOpsMemory-6155aa9b.cjs.prod.js');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('@valbuild/shared/internal');
|
|
10
10
|
require('../../dist/jsonValuesPatch-92798812.cjs.prod.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as createInTabValFetch } from '../../dist/inTabFetch-
|
|
1
|
+
export { c as createInTabValFetch } from '../../dist/inTabFetch-22fc6815.esm.js';
|
|
2
2
|
import '@valbuild/core';
|
|
3
|
-
import '../../dist/ValOpsMemory-
|
|
3
|
+
import '../../dist/ValOpsMemory-a00c3187.esm.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@valbuild/shared/internal';
|
|
6
6
|
import '../../dist/jsonValuesPatch-13acc674.esm.js';
|
|
@@ -5124,7 +5124,7 @@ var packageJson = {
|
|
|
5124
5124
|
],
|
|
5125
5125
|
exports: true
|
|
5126
5126
|
},
|
|
5127
|
-
version: "0.156.
|
|
5127
|
+
version: "0.156.1",
|
|
5128
5128
|
scripts: {
|
|
5129
5129
|
typecheck: "tsc --noEmit",
|
|
5130
5130
|
test: "jest",
|
|
@@ -8285,7 +8285,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8285
8285
|
};
|
|
8286
8286
|
},
|
|
8287
8287
|
DELETE: async req => {
|
|
8288
|
-
var _req$body;
|
|
8288
|
+
var _req$body, _req$body2;
|
|
8289
8289
|
const query = req.query;
|
|
8290
8290
|
const cookies = req.cookies;
|
|
8291
8291
|
const auth = getAuth(cookies);
|
|
@@ -8305,7 +8305,30 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8305
8305
|
}
|
|
8306
8306
|
};
|
|
8307
8307
|
}
|
|
8308
|
-
|
|
8308
|
+
/*
|
|
8309
|
+
* In the body, from the Studio; in the query, from a tab opened before
|
|
8310
|
+
* the ids moved there. One or the other: a request with both is a bug
|
|
8311
|
+
* in whatever sent it, and deleting the union would hide it.
|
|
8312
|
+
*/
|
|
8313
|
+
const fromBody = (_req$body = req.body) === null || _req$body === void 0 ? void 0 : _req$body.ids;
|
|
8314
|
+
const fromQuery = query.id;
|
|
8315
|
+
if (fromBody !== undefined && fromQuery !== undefined) {
|
|
8316
|
+
return {
|
|
8317
|
+
status: 400,
|
|
8318
|
+
json: {
|
|
8319
|
+
message: "Send the patch ids either in the body (`ids`) or in the query (`id`), not both"
|
|
8320
|
+
}
|
|
8321
|
+
};
|
|
8322
|
+
}
|
|
8323
|
+
const ids = fromBody ?? fromQuery ?? [];
|
|
8324
|
+
if (ids.length === 0) {
|
|
8325
|
+
return {
|
|
8326
|
+
status: 400,
|
|
8327
|
+
json: {
|
|
8328
|
+
message: "At least one patch id is required"
|
|
8329
|
+
}
|
|
8330
|
+
};
|
|
8331
|
+
}
|
|
8309
8332
|
const deleteRes = await serverOps.deletePatches(ids);
|
|
8310
8333
|
if ("error" in deleteRes && deleteRes.error !== undefined) {
|
|
8311
8334
|
/*
|
|
@@ -8332,6 +8355,15 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8332
8355
|
status: 500,
|
|
8333
8356
|
json: {
|
|
8334
8357
|
message: "Failed to delete patches",
|
|
8358
|
+
/*
|
|
8359
|
+
* The ones that went, though others did not. Without them the
|
|
8360
|
+
* Studio kept showing -- and saving, and publishing -- changes
|
|
8361
|
+
* that were already gone.
|
|
8362
|
+
*/
|
|
8363
|
+
deleted: deleteRes.deleted,
|
|
8364
|
+
...(deleteRes.headVersion !== undefined ? {
|
|
8365
|
+
headVersion: deleteRes.headVersion
|
|
8366
|
+
} : {}),
|
|
8335
8367
|
errors: Object.entries(deleteRes.errors).map(([id, error]) => ({
|
|
8336
8368
|
patchId: id,
|
|
8337
8369
|
...error,
|
|
@@ -8346,7 +8378,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8346
8378
|
}
|
|
8347
8379
|
};
|
|
8348
8380
|
}
|
|
8349
|
-
if (((_req$
|
|
8381
|
+
if (((_req$body2 = req.body) === null || _req$body2 === void 0 ? void 0 : _req$body2.reportHeadVersion) === true) {
|
|
8350
8382
|
return {
|
|
8351
8383
|
status: 200,
|
|
8352
8384
|
json: {
|
|
@@ -5118,7 +5118,7 @@ var packageJson = {
|
|
|
5118
5118
|
],
|
|
5119
5119
|
exports: true
|
|
5120
5120
|
},
|
|
5121
|
-
version: "0.156.
|
|
5121
|
+
version: "0.156.1",
|
|
5122
5122
|
scripts: {
|
|
5123
5123
|
typecheck: "tsc --noEmit",
|
|
5124
5124
|
test: "jest",
|
|
@@ -8279,7 +8279,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8279
8279
|
};
|
|
8280
8280
|
},
|
|
8281
8281
|
DELETE: async req => {
|
|
8282
|
-
var _req$body;
|
|
8282
|
+
var _req$body, _req$body2;
|
|
8283
8283
|
const query = req.query;
|
|
8284
8284
|
const cookies = req.cookies;
|
|
8285
8285
|
const auth = getAuth(cookies);
|
|
@@ -8299,7 +8299,30 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8299
8299
|
}
|
|
8300
8300
|
};
|
|
8301
8301
|
}
|
|
8302
|
-
|
|
8302
|
+
/*
|
|
8303
|
+
* In the body, from the Studio; in the query, from a tab opened before
|
|
8304
|
+
* the ids moved there. One or the other: a request with both is a bug
|
|
8305
|
+
* in whatever sent it, and deleting the union would hide it.
|
|
8306
|
+
*/
|
|
8307
|
+
const fromBody = (_req$body = req.body) === null || _req$body === void 0 ? void 0 : _req$body.ids;
|
|
8308
|
+
const fromQuery = query.id;
|
|
8309
|
+
if (fromBody !== undefined && fromQuery !== undefined) {
|
|
8310
|
+
return {
|
|
8311
|
+
status: 400,
|
|
8312
|
+
json: {
|
|
8313
|
+
message: "Send the patch ids either in the body (`ids`) or in the query (`id`), not both"
|
|
8314
|
+
}
|
|
8315
|
+
};
|
|
8316
|
+
}
|
|
8317
|
+
const ids = fromBody ?? fromQuery ?? [];
|
|
8318
|
+
if (ids.length === 0) {
|
|
8319
|
+
return {
|
|
8320
|
+
status: 400,
|
|
8321
|
+
json: {
|
|
8322
|
+
message: "At least one patch id is required"
|
|
8323
|
+
}
|
|
8324
|
+
};
|
|
8325
|
+
}
|
|
8303
8326
|
const deleteRes = await serverOps.deletePatches(ids);
|
|
8304
8327
|
if ("error" in deleteRes && deleteRes.error !== undefined) {
|
|
8305
8328
|
/*
|
|
@@ -8326,6 +8349,15 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8326
8349
|
status: 500,
|
|
8327
8350
|
json: {
|
|
8328
8351
|
message: "Failed to delete patches",
|
|
8352
|
+
/*
|
|
8353
|
+
* The ones that went, though others did not. Without them the
|
|
8354
|
+
* Studio kept showing -- and saving, and publishing -- changes
|
|
8355
|
+
* that were already gone.
|
|
8356
|
+
*/
|
|
8357
|
+
deleted: deleteRes.deleted,
|
|
8358
|
+
...(deleteRes.headVersion !== undefined ? {
|
|
8359
|
+
headVersion: deleteRes.headVersion
|
|
8360
|
+
} : {}),
|
|
8329
8361
|
errors: Object.entries(deleteRes.errors).map(([id, error]) => ({
|
|
8330
8362
|
patchId: id,
|
|
8331
8363
|
...error,
|
|
@@ -8340,7 +8372,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8340
8372
|
}
|
|
8341
8373
|
};
|
|
8342
8374
|
}
|
|
8343
|
-
if (((_req$
|
|
8375
|
+
if (((_req$body2 = req.body) === null || _req$body2 === void 0 ? void 0 : _req$body2.reportHeadVersion) === true) {
|
|
8344
8376
|
return {
|
|
8345
8377
|
status: 200,
|
|
8346
8378
|
json: {
|
|
@@ -5124,7 +5124,7 @@ var packageJson = {
|
|
|
5124
5124
|
],
|
|
5125
5125
|
exports: true
|
|
5126
5126
|
},
|
|
5127
|
-
version: "0.156.
|
|
5127
|
+
version: "0.156.1",
|
|
5128
5128
|
scripts: {
|
|
5129
5129
|
typecheck: "tsc --noEmit",
|
|
5130
5130
|
test: "jest",
|
|
@@ -8285,7 +8285,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8285
8285
|
};
|
|
8286
8286
|
},
|
|
8287
8287
|
DELETE: async req => {
|
|
8288
|
-
var _req$body;
|
|
8288
|
+
var _req$body, _req$body2;
|
|
8289
8289
|
const query = req.query;
|
|
8290
8290
|
const cookies = req.cookies;
|
|
8291
8291
|
const auth = getAuth(cookies);
|
|
@@ -8305,7 +8305,30 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8305
8305
|
}
|
|
8306
8306
|
};
|
|
8307
8307
|
}
|
|
8308
|
-
|
|
8308
|
+
/*
|
|
8309
|
+
* In the body, from the Studio; in the query, from a tab opened before
|
|
8310
|
+
* the ids moved there. One or the other: a request with both is a bug
|
|
8311
|
+
* in whatever sent it, and deleting the union would hide it.
|
|
8312
|
+
*/
|
|
8313
|
+
const fromBody = (_req$body = req.body) === null || _req$body === void 0 ? void 0 : _req$body.ids;
|
|
8314
|
+
const fromQuery = query.id;
|
|
8315
|
+
if (fromBody !== undefined && fromQuery !== undefined) {
|
|
8316
|
+
return {
|
|
8317
|
+
status: 400,
|
|
8318
|
+
json: {
|
|
8319
|
+
message: "Send the patch ids either in the body (`ids`) or in the query (`id`), not both"
|
|
8320
|
+
}
|
|
8321
|
+
};
|
|
8322
|
+
}
|
|
8323
|
+
const ids = fromBody ?? fromQuery ?? [];
|
|
8324
|
+
if (ids.length === 0) {
|
|
8325
|
+
return {
|
|
8326
|
+
status: 400,
|
|
8327
|
+
json: {
|
|
8328
|
+
message: "At least one patch id is required"
|
|
8329
|
+
}
|
|
8330
|
+
};
|
|
8331
|
+
}
|
|
8309
8332
|
const deleteRes = await serverOps.deletePatches(ids);
|
|
8310
8333
|
if ("error" in deleteRes && deleteRes.error !== undefined) {
|
|
8311
8334
|
/*
|
|
@@ -8332,6 +8355,15 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8332
8355
|
status: 500,
|
|
8333
8356
|
json: {
|
|
8334
8357
|
message: "Failed to delete patches",
|
|
8358
|
+
/*
|
|
8359
|
+
* The ones that went, though others did not. Without them the
|
|
8360
|
+
* Studio kept showing -- and saving, and publishing -- changes
|
|
8361
|
+
* that were already gone.
|
|
8362
|
+
*/
|
|
8363
|
+
deleted: deleteRes.deleted,
|
|
8364
|
+
...(deleteRes.headVersion !== undefined ? {
|
|
8365
|
+
headVersion: deleteRes.headVersion
|
|
8366
|
+
} : {}),
|
|
8335
8367
|
errors: Object.entries(deleteRes.errors).map(([id, error]) => ({
|
|
8336
8368
|
patchId: id,
|
|
8337
8369
|
...error,
|
|
@@ -8346,7 +8378,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
8346
8378
|
}
|
|
8347
8379
|
};
|
|
8348
8380
|
}
|
|
8349
|
-
if (((_req$
|
|
8381
|
+
if (((_req$body2 = req.body) === null || _req$body2 === void 0 ? void 0 : _req$body2.reportHeadVersion) === true) {
|
|
8350
8382
|
return {
|
|
8351
8383
|
status: 200,
|
|
8352
8384
|
json: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as initHandlerOptions, v as valRuntime } from './valRuntime-
|
|
1
|
+
import { i as initHandlerOptions, v as valRuntime } from './valRuntime-18d4c693.esm.js';
|
|
2
2
|
import '@valbuild/core';
|
|
3
|
-
import './ValOpsMemory-
|
|
3
|
+
import './ValOpsMemory-a00c3187.esm.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@valbuild/shared/internal';
|
|
6
6
|
import './jsonValuesPatch-13acc674.esm.js';
|
package/dist/{createValRuntime-42622f8f.cjs.prod.js → createValRuntime-5eb0336d.cjs.prod.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var valRuntime = require('./valRuntime-
|
|
3
|
+
var valRuntime = require('./valRuntime-175e2032.cjs.prod.js');
|
|
4
4
|
require('@valbuild/core');
|
|
5
|
-
require('./ValOpsMemory-
|
|
5
|
+
require('./ValOpsMemory-6155aa9b.cjs.prod.js');
|
|
6
6
|
require('zod');
|
|
7
7
|
require('@valbuild/shared/internal');
|
|
8
8
|
require('./jsonValuesPatch-92798812.cjs.prod.js');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var valRuntime = require('./valRuntime-
|
|
3
|
+
var valRuntime = require('./valRuntime-c4b2e906.cjs.dev.js');
|
|
4
4
|
require('@valbuild/core');
|
|
5
|
-
require('./ValOpsMemory-
|
|
5
|
+
require('./ValOpsMemory-c1453e6a.cjs.dev.js');
|
|
6
6
|
require('zod');
|
|
7
7
|
require('@valbuild/shared/internal');
|
|
8
8
|
require('./jsonValuesPatch-88bc661d.cjs.dev.js');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_CONTENT_HOST } from '@valbuild/core';
|
|
2
|
-
import { o as ValOpsMemory, L as bytesToBase64, V as ValServer } from './ValOpsMemory-
|
|
2
|
+
import { o as ValOpsMemory, L as bytesToBase64, V as ValServer } from './ValOpsMemory-a00c3187.esm.js';
|
|
3
3
|
import { c as createValRequestHandler } from './ValRouterCore-f7d6394e.esm.js';
|
|
4
4
|
|
|
5
5
|
const NO_SESSIONS = "Val: sessions are not available here -- this server runs in the browser, " + "has no secret to sign them with, and serves without authenticating.";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var core = require('@valbuild/core');
|
|
4
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
4
|
+
var ValOpsMemory = require('./ValOpsMemory-6155aa9b.cjs.prod.js');
|
|
5
5
|
var ValRouterCore = require('./ValRouterCore-65bb6323.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
const NO_SESSIONS = "Val: sessions are not available here -- this server runs in the browser, " + "has no secret to sign them with, and serves without authenticating.";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var core = require('@valbuild/core');
|
|
4
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
4
|
+
var ValOpsMemory = require('./ValOpsMemory-c1453e6a.cjs.dev.js');
|
|
5
5
|
var ValRouterCore = require('./ValRouterCore-adb69698.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
const NO_SESSIONS = "Val: sessions are not available here -- this server runs in the browser, " + "has no secret to sign them with, and serves without authenticating.";
|
|
@@ -5,7 +5,7 @@ var fp = require('@valbuild/core/fp');
|
|
|
5
5
|
var merge = require('./merge-5a8fc685.cjs.prod.js');
|
|
6
6
|
var jsonValuesModule = require('./jsonValuesModule-6cf73937.cjs.prod.js');
|
|
7
7
|
var jsonValuesPatch = require('./jsonValuesPatch-92798812.cjs.prod.js');
|
|
8
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
8
|
+
var ValOpsMemory = require('./ValOpsMemory-6155aa9b.cjs.prod.js');
|
|
9
9
|
require('@valbuild/core/patch');
|
|
10
10
|
require('@valbuild/shared/internal');
|
|
11
11
|
require('path');
|
|
@@ -5,7 +5,7 @@ export { i as insertValJsonEntry, r as removeValJsonEntry } from './merge-eca8ec
|
|
|
5
5
|
import { a as analyzeValModule, c as analyzeJsonValuesEntries } from './jsonValuesModule-12fc4bb0.esm.js';
|
|
6
6
|
export { c as analyzeJsonValuesEntries, a as analyzeValModule, i as evaluateModuleSource, j as jsonValuesRecordKeys } from './jsonValuesModule-12fc4bb0.esm.js';
|
|
7
7
|
import { p as posixPath } from './jsonValuesPatch-13acc674.esm.js';
|
|
8
|
-
import { N as bytesToUtf8 } from './ValOpsMemory-
|
|
8
|
+
import { N as bytesToUtf8 } from './ValOpsMemory-a00c3187.esm.js';
|
|
9
9
|
import '@valbuild/core/patch';
|
|
10
10
|
import '@valbuild/shared/internal';
|
|
11
11
|
import 'path';
|
|
@@ -5,7 +5,7 @@ var fp = require('@valbuild/core/fp');
|
|
|
5
5
|
var merge = require('./merge-a21a9c78.cjs.dev.js');
|
|
6
6
|
var jsonValuesModule = require('./jsonValuesModule-ed68a9de.cjs.dev.js');
|
|
7
7
|
var jsonValuesPatch = require('./jsonValuesPatch-88bc661d.cjs.dev.js');
|
|
8
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
8
|
+
var ValOpsMemory = require('./ValOpsMemory-c1453e6a.cjs.dev.js');
|
|
9
9
|
require('@valbuild/core/patch');
|
|
10
10
|
require('@valbuild/shared/internal');
|
|
11
11
|
require('path');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var core = require('@valbuild/core');
|
|
4
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
4
|
+
var ValOpsMemory = require('./ValOpsMemory-6155aa9b.cjs.prod.js');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
var ts = require('typescript');
|
|
7
7
|
var z = require('zod');
|
|
@@ -1541,7 +1541,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
|
|
|
1541
1541
|
* as a bundler does.
|
|
1542
1542
|
*/
|
|
1543
1543
|
function loadTypeScriptKit() {
|
|
1544
|
-
return Promise.resolve().then(function () { return require('./publishKit-
|
|
1544
|
+
return Promise.resolve().then(function () { return require('./publishKit-0ec427f3.cjs.prod.js'); });
|
|
1545
1545
|
}
|
|
1546
1546
|
|
|
1547
1547
|
/** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
|
|
@@ -3221,7 +3221,7 @@ async function stagedModuleSources(files) {
|
|
|
3221
3221
|
parseValFile,
|
|
3222
3222
|
analyzeValModule,
|
|
3223
3223
|
evaluateModuleSource
|
|
3224
|
-
} = await Promise.resolve().then(function () { return require('./publishKit-
|
|
3224
|
+
} = await Promise.resolve().then(function () { return require('./publishKit-0ec427f3.cjs.prod.js'); });
|
|
3225
3225
|
const sources = {};
|
|
3226
3226
|
for (const {
|
|
3227
3227
|
path,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Internal, DEFAULT_CONTENT_HOST } from '@valbuild/core';
|
|
2
|
-
import { q as summaryOf, t as matchesFilter, w as byUpdatedAt, x as newSketchpad, y as isSketchpadId, z as applySketchpadChange, A as ValOps, h as VAL_CLIENT_HEADERS, B as isSafePatchId, C as isMediaFilePath, M as MEDIA_FILE_PATH_ACCEPTS, D as bufferFromDataUrl, d as getFieldsForType, u as uploadRemoteFile, g as getFileExt, E as isPublicFilePath, F as guessMimeTypeFromPath, G as createMetadataFromBuffer, H as fetchFresh, I as DEFAULT_ANALYTICS_INGEST_URL, o as ValOpsMemory, J as sessionAuth, K as isHttpOps } from './ValOpsMemory-
|
|
2
|
+
import { q as summaryOf, t as matchesFilter, w as byUpdatedAt, x as newSketchpad, y as isSketchpadId, z as applySketchpadChange, A as ValOps, h as VAL_CLIENT_HEADERS, B as isSafePatchId, C as isMediaFilePath, M as MEDIA_FILE_PATH_ACCEPTS, D as bufferFromDataUrl, d as getFieldsForType, u as uploadRemoteFile, g as getFileExt, E as isPublicFilePath, F as guessMimeTypeFromPath, G as createMetadataFromBuffer, H as fetchFresh, I as DEFAULT_ANALYTICS_INGEST_URL, o as ValOpsMemory, J as sessionAuth, K as isHttpOps } from './ValOpsMemory-a00c3187.esm.js';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
import ts from 'typescript';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -1513,7 +1513,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
|
|
|
1513
1513
|
* as a bundler does.
|
|
1514
1514
|
*/
|
|
1515
1515
|
function loadTypeScriptKit() {
|
|
1516
|
-
return import('./publishKit-
|
|
1516
|
+
return import('./publishKit-a40062cd.esm.js');
|
|
1517
1517
|
}
|
|
1518
1518
|
|
|
1519
1519
|
/** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
|
|
@@ -3193,7 +3193,7 @@ async function stagedModuleSources(files) {
|
|
|
3193
3193
|
parseValFile,
|
|
3194
3194
|
analyzeValModule,
|
|
3195
3195
|
evaluateModuleSource
|
|
3196
|
-
} = await import('./publishKit-
|
|
3196
|
+
} = await import('./publishKit-a40062cd.esm.js');
|
|
3197
3197
|
const sources = {};
|
|
3198
3198
|
for (const {
|
|
3199
3199
|
path,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var core = require('@valbuild/core');
|
|
4
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
4
|
+
var ValOpsMemory = require('./ValOpsMemory-c1453e6a.cjs.dev.js');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
var ts = require('typescript');
|
|
7
7
|
var z = require('zod');
|
|
@@ -1541,7 +1541,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
|
|
|
1541
1541
|
* as a bundler does.
|
|
1542
1542
|
*/
|
|
1543
1543
|
function loadTypeScriptKit() {
|
|
1544
|
-
return Promise.resolve().then(function () { return require('./publishKit-
|
|
1544
|
+
return Promise.resolve().then(function () { return require('./publishKit-ffcaf2af.cjs.dev.js'); });
|
|
1545
1545
|
}
|
|
1546
1546
|
|
|
1547
1547
|
/** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
|
|
@@ -3221,7 +3221,7 @@ async function stagedModuleSources(files) {
|
|
|
3221
3221
|
parseValFile,
|
|
3222
3222
|
analyzeValModule,
|
|
3223
3223
|
evaluateModuleSource
|
|
3224
|
-
} = await Promise.resolve().then(function () { return require('./publishKit-
|
|
3224
|
+
} = await Promise.resolve().then(function () { return require('./publishKit-ffcaf2af.cjs.dev.js'); });
|
|
3225
3225
|
const sources = {};
|
|
3226
3226
|
for (const {
|
|
3227
3227
|
path,
|
|
@@ -11,10 +11,10 @@ var ts = require('typescript');
|
|
|
11
11
|
var path = require('path');
|
|
12
12
|
var fs = require('fs');
|
|
13
13
|
var jsonValuesPatch = require('./jsonValuesPatch-88bc661d.cjs.dev.js');
|
|
14
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
14
|
+
var ValOpsMemory = require('./ValOpsMemory-c1453e6a.cjs.dev.js');
|
|
15
15
|
var internal = require('@valbuild/shared/internal');
|
|
16
16
|
var server = require('@valbuild/ui/server');
|
|
17
|
-
var valRuntime = require('./valRuntime-
|
|
17
|
+
var valRuntime = require('./valRuntime-c4b2e906.cjs.dev.js');
|
|
18
18
|
var http = require('node:http');
|
|
19
19
|
var https = require('node:https');
|
|
20
20
|
var net = require('node:net');
|
|
@@ -11,10 +11,10 @@ var ts = require('typescript');
|
|
|
11
11
|
var path = require('path');
|
|
12
12
|
var fs = require('fs');
|
|
13
13
|
var jsonValuesPatch = require('./jsonValuesPatch-92798812.cjs.prod.js');
|
|
14
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
14
|
+
var ValOpsMemory = require('./ValOpsMemory-6155aa9b.cjs.prod.js');
|
|
15
15
|
var internal = require('@valbuild/shared/internal');
|
|
16
16
|
var server = require('@valbuild/ui/server');
|
|
17
|
-
var valRuntime = require('./valRuntime-
|
|
17
|
+
var valRuntime = require('./valRuntime-175e2032.cjs.prod.js');
|
|
18
18
|
var http = require('node:http');
|
|
19
19
|
var https = require('node:https');
|
|
20
20
|
var net = require('node:net');
|
|
@@ -10,13 +10,13 @@ import ts from 'typescript';
|
|
|
10
10
|
import path from 'path';
|
|
11
11
|
import fs from 'fs';
|
|
12
12
|
import { r as resolveExistingJsonPath, f as findNestedJsonValuesRecords, g as getNewJsonEntryPaths } from './jsonValuesPatch-13acc674.esm.js';
|
|
13
|
-
import { v as validateJsonValuesEntries, i as isHlsMasterPlaylist, s as sumHlsSegmentDurations, p as parseHlsMasterVariants, l as largestHlsVariant, g as getFileExt, f as fallbackRefOf, m as mapHlsUris, a as movedRemoteHost, n as needsHostCheck, r as rewriteRefHost, b as fallbackRemoteHost, c as checkRemoteFiles, d as getFieldsForType, V as ValServer, e as formatPatchSourceError, h as VAL_CLIENT_HEADERS } from './ValOpsMemory-
|
|
14
|
-
export { o as ValOpsMemory, j as askOncePerHost, e as formatPatchSourceError, g as getFileExt, k as getSettings, u as uploadRemoteFile } from './ValOpsMemory-
|
|
13
|
+
import { v as validateJsonValuesEntries, i as isHlsMasterPlaylist, s as sumHlsSegmentDurations, p as parseHlsMasterVariants, l as largestHlsVariant, g as getFileExt, f as fallbackRefOf, m as mapHlsUris, a as movedRemoteHost, n as needsHostCheck, r as rewriteRefHost, b as fallbackRemoteHost, c as checkRemoteFiles, d as getFieldsForType, V as ValServer, e as formatPatchSourceError, h as VAL_CLIENT_HEADERS } from './ValOpsMemory-a00c3187.esm.js';
|
|
14
|
+
export { o as ValOpsMemory, j as askOncePerHost, e as formatPatchSourceError, g as getFileExt, k as getSettings, u as uploadRemoteFile } from './ValOpsMemory-a00c3187.esm.js';
|
|
15
15
|
import { isJsonValuesRootOp, rebaseContentOp, classifyJsonValuesOp, LOCAL_FILE_IN_REMOTE_PROJECT_WARNING, LOCAL_FILE_IN_REMOTE_PROJECT_HINT, traverseSchemaSource, richTextImageSchema, forEachRichTextImage, isStudioFix } from '@valbuild/shared/internal';
|
|
16
16
|
export { classifyJsonValuesOp, rebaseContentOp } from '@valbuild/shared/internal';
|
|
17
17
|
import { createUIRequestHandler } from '@valbuild/ui/server';
|
|
18
|
-
import { g as getPersonalAccessTokenPath, p as parsePersonalAccessTokenFile, v as valRuntime, a as verifyJwt, d as decodeJwtWithoutVerifying, e as encodeJwt, b as getExpire, r as readValLoginToken, c as resolveRemoteFileAuth, l as loadTypeScriptKit, i as initHandlerOptions, V as ValOpsFS } from './valRuntime-
|
|
19
|
-
export { A as APP_MODE_REQUIRES_REMOTE_FILES, V as ValOpsFS, h as ValOpsHttp, f as createValOps, d as decodeJwtWithoutVerifying, k as describePatchStoreProblems, e as encodeJwt, b as getExpire, g as getPersonalAccessTokenPath, i as initHandlerOptions, l as loadTypeScriptKit, p as parsePersonalAccessTokenFile, j as readPatchStore, c as resolveRemoteFileAuth, v as valRuntime, a as verifyJwt } from './valRuntime-
|
|
18
|
+
import { g as getPersonalAccessTokenPath, p as parsePersonalAccessTokenFile, v as valRuntime, a as verifyJwt, d as decodeJwtWithoutVerifying, e as encodeJwt, b as getExpire, r as readValLoginToken, c as resolveRemoteFileAuth, l as loadTypeScriptKit, i as initHandlerOptions, V as ValOpsFS } from './valRuntime-18d4c693.esm.js';
|
|
19
|
+
export { A as APP_MODE_REQUIRES_REMOTE_FILES, V as ValOpsFS, h as ValOpsHttp, f as createValOps, d as decodeJwtWithoutVerifying, k as describePatchStoreProblems, e as encodeJwt, b as getExpire, g as getPersonalAccessTokenPath, i as initHandlerOptions, l as loadTypeScriptKit, p as parsePersonalAccessTokenFile, j as readPatchStore, c as resolveRemoteFileAuth, v as valRuntime, a as verifyJwt } from './valRuntime-18d4c693.esm.js';
|
|
20
20
|
import http from 'node:http';
|
|
21
21
|
import https from 'node:https';
|
|
22
22
|
import net from 'node:net';
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var inTabFetch = require('../../../dist/inTabFetch-
|
|
5
|
+
var inTabFetch = require('../../../dist/inTabFetch-f5eedbd0.cjs.dev.js');
|
|
6
6
|
var draftReads = require('../../../dist/draftReads-1f256502.cjs.dev.js');
|
|
7
7
|
require('@valbuild/core');
|
|
8
|
-
require('../../../dist/ValOpsMemory-
|
|
8
|
+
require('../../../dist/ValOpsMemory-c1453e6a.cjs.dev.js');
|
|
9
9
|
require('zod');
|
|
10
10
|
require('@valbuild/shared/internal');
|
|
11
11
|
require('../../../dist/jsonValuesPatch-88bc661d.cjs.dev.js');
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var inTabFetch = require('../../../dist/inTabFetch-
|
|
5
|
+
var inTabFetch = require('../../../dist/inTabFetch-4efbd411.cjs.prod.js');
|
|
6
6
|
var draftReads = require('../../../dist/draftReads-27351e97.cjs.prod.js');
|
|
7
7
|
require('@valbuild/core');
|
|
8
|
-
require('../../../dist/ValOpsMemory-
|
|
8
|
+
require('../../../dist/ValOpsMemory-6155aa9b.cjs.prod.js');
|
|
9
9
|
require('zod');
|
|
10
10
|
require('@valbuild/shared/internal');
|
|
11
11
|
require('../../../dist/jsonValuesPatch-92798812.cjs.prod.js');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as createInTabVal } from '../../../dist/inTabFetch-
|
|
1
|
+
export { a as createInTabVal } from '../../../dist/inTabFetch-22fc6815.esm.js';
|
|
2
2
|
export { s as serverDraftSource } from '../../../dist/draftReads-7f0f0eb3.esm.js';
|
|
3
3
|
import '@valbuild/core';
|
|
4
|
-
import '../../../dist/ValOpsMemory-
|
|
4
|
+
import '../../../dist/ValOpsMemory-a00c3187.esm.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@valbuild/shared/internal';
|
|
7
7
|
import '../../../dist/jsonValuesPatch-13acc674.esm.js';
|
|
@@ -37,7 +37,7 @@ require('path');
|
|
|
37
37
|
async function createValRuntime(valModules, route, opts, config) {
|
|
38
38
|
const {
|
|
39
39
|
createValRuntime
|
|
40
|
-
} = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-
|
|
40
|
+
} = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-82f38747.cjs.dev.js'); });
|
|
41
41
|
return createValRuntime(valModules, route, opts, config);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
@@ -37,7 +37,7 @@ require('path');
|
|
|
37
37
|
async function createValRuntime(valModules, route, opts, config) {
|
|
38
38
|
const {
|
|
39
39
|
createValRuntime
|
|
40
|
-
} = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-
|
|
40
|
+
} = await Promise.resolve().then(function () { return require('../../dist/createValRuntime-5eb0336d.cjs.prod.js'); });
|
|
41
41
|
return createValRuntime(valModules, route, opts, config);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
@@ -33,7 +33,7 @@ import 'path';
|
|
|
33
33
|
async function createValRuntime(valModules, route, opts, config) {
|
|
34
34
|
const {
|
|
35
35
|
createValRuntime
|
|
36
|
-
} = await import('../../dist/createValRuntime-
|
|
36
|
+
} = await import('../../dist/createValRuntime-4371c69b.esm.js');
|
|
37
37
|
return createValRuntime(valModules, route, opts, config);
|
|
38
38
|
}
|
|
39
39
|
/**
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"exports": true
|
|
39
39
|
},
|
|
40
|
-
"version": "0.156.
|
|
40
|
+
"version": "0.156.1",
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@prettier/sync": "^0.6.1",
|
|
43
43
|
"@types/jest": "^30.0.0",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"typescript": "^6.0.3",
|
|
52
52
|
"zod": "^4.6.6",
|
|
53
53
|
"zod-validation-error": "^5.0.0",
|
|
54
|
-
"@valbuild/
|
|
55
|
-
"@valbuild/ui": "0.156.
|
|
56
|
-
"@valbuild/
|
|
54
|
+
"@valbuild/core": "0.155.0",
|
|
55
|
+
"@valbuild/ui": "0.156.1",
|
|
56
|
+
"@valbuild/shared": "0.156.1"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": "^20.19.0 || >=22"
|