@valbuild/server 0.158.1 → 0.158.2
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 +3 -3
- package/browser/dist/valbuild-server-browser.cjs.prod.js +3 -3
- package/browser/dist/valbuild-server-browser.esm.js +3 -3
- package/dist/{ValOpsMemory-429bc61c.cjs.dev.js → ValOpsMemory-195af5ba.cjs.dev.js} +40 -7
- package/dist/{ValOpsMemory-9efeb0ff.cjs.prod.js → ValOpsMemory-61228586.cjs.prod.js} +40 -7
- package/dist/{ValOpsMemory-26ac24fc.esm.js → ValOpsMemory-b774e6c0.esm.js} +40 -7
- package/dist/{ValRouterCore-345a2899.esm.js → ValRouterCore-13df7164.esm.js} +1 -1
- package/dist/{ValRouterCore-ec4c58d2.cjs.prod.js → ValRouterCore-19688108.cjs.prod.js} +1 -1
- package/dist/{ValRouterCore-4b44cbe4.cjs.dev.js → ValRouterCore-5ece0996.cjs.dev.js} +1 -1
- package/dist/{createValRuntime-3eb37414.esm.js → createValRuntime-00ca6e1a.esm.js} +2 -2
- package/dist/{createValRuntime-53bfd9b1.cjs.prod.js → createValRuntime-41d5060b.cjs.prod.js} +2 -2
- package/dist/{createValRuntime-0096508d.cjs.dev.js → createValRuntime-dc7a01ff.cjs.dev.js} +2 -2
- package/dist/declarations/src/ValServer.d.ts +10 -1
- package/dist/{inTabFetch-e0ddaec8.esm.js → inTabFetch-0e91f6a6.esm.js} +2 -2
- package/dist/{inTabFetch-953d074b.cjs.dev.js → inTabFetch-eabf40a0.cjs.dev.js} +2 -2
- package/dist/{inTabFetch-7cc9afac.cjs.prod.js → inTabFetch-f0c1e376.cjs.prod.js} +2 -2
- package/dist/{publishKit-0413c918.cjs.dev.js → publishKit-6ba09844.cjs.dev.js} +1 -1
- package/dist/{publishKit-036459db.cjs.prod.js → publishKit-7160e22b.cjs.prod.js} +1 -1
- package/dist/{publishKit-8447bdec.esm.js → publishKit-8e178f78.esm.js} +1 -1
- package/dist/{valRuntime-02944d4c.cjs.prod.js → valRuntime-09c47b93.cjs.prod.js} +3 -3
- package/dist/{valRuntime-433321f5.esm.js → valRuntime-585d0f2c.esm.js} +3 -3
- package/dist/{valRuntime-9b12c6c0.cjs.dev.js → valRuntime-671505a9.cjs.dev.js} +3 -3
- package/dist/valbuild-server.cjs.dev.js +3 -3
- package/dist/valbuild-server.cjs.prod.js +3 -3
- package/dist/valbuild-server.esm.js +5 -5
- package/internal/browser/dist/valbuild-server-internal-browser.cjs.dev.js +3 -3
- package/internal/browser/dist/valbuild-server-internal-browser.cjs.prod.js +3 -3
- package/internal/browser/dist/valbuild-server-internal-browser.esm.js +3 -3
- 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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @valbuild/server
|
|
2
2
|
|
|
3
|
+
## 0.158.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1126](https://github.com/valbuild/val/pull/1126) [`81875b3`](https://github.com/valbuild/val/commit/81875b32a0dc1fce95734592bcf5848c4eff83db) Thanks [@freekh](https://github.com/freekh)! - **The preview loads once after a browser restart.** Signing in, and turning preview on while signed in, now keep Val and draft mode switched on for as long as you stay signed in. They used to switch off when the browser closed, so after a restart the page in the Studio's preview sat on "connecting" for eight seconds and then loaded again. On Next.js, whose draft-mode cookie Val cannot give an expiry, one quick reload remains. Sessions from before this release pick the change up at the next sign-in.
|
|
8
|
+
|
|
9
|
+
- **Val's cookies keep their expiry.** `@valbuild/next` and `@valbuild/tanstack` wrote `Expires` in a form browsers do not read, so every Val cookie, the sign-in included, lasted only until the browser closed. They now write an HTTP date.
|
|
10
|
+
- `ValServerCallbacks.onEnable` is told when the session runs out (`onEnable(success, { expires })`), and TanStack's `valDraftMode().enable({ expires })` writes it. A custom `draftMode` for `@valbuild/tanstack` can take it too; one that ignores it behaves as before.
|
|
11
|
+
- **A signed-out Studio no longer asks for remote file settings** after the login dialog is up. The answer could only be "signed out".
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`81875b3`](https://github.com/valbuild/val/commit/81875b32a0dc1fce95734592bcf5848c4eff83db), [`f064c76`](https://github.com/valbuild/val/commit/f064c765d92db45ba4200aa0d412ec12b31d4b6d), [`89bb8c8`](https://github.com/valbuild/val/commit/89bb8c8beb633eb4b5004e15224d0666df2d9b3a), [`ba03e5c`](https://github.com/valbuild/val/commit/ba03e5c90f0456b36f4995ad217e4b694cff4bf5), [`3ede551`](https://github.com/valbuild/val/commit/3ede551c81da3b14ad9fa46792ca9b5470f534c0), [`3ede551`](https://github.com/valbuild/val/commit/3ede551c81da3b14ad9fa46792ca9b5470f534c0), [`89bb8c8`](https://github.com/valbuild/val/commit/89bb8c8beb633eb4b5004e15224d0666df2d9b3a), [`89bb8c8`](https://github.com/valbuild/val/commit/89bb8c8beb633eb4b5004e15224d0666df2d9b3a)]:
|
|
14
|
+
- @valbuild/ui@0.158.2
|
|
15
|
+
- @valbuild/shared@0.158.2
|
|
16
|
+
|
|
3
17
|
## 0.158.1
|
|
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-eabf40a0.cjs.dev.js');
|
|
6
6
|
require('@valbuild/core');
|
|
7
|
-
require('../../dist/ValOpsMemory-
|
|
7
|
+
require('../../dist/ValOpsMemory-195af5ba.cjs.dev.js');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('@valbuild/shared/internal');
|
|
10
10
|
require('../../dist/jsonValuesPatch-88bc661d.cjs.dev.js');
|
|
@@ -13,7 +13,7 @@ require('zod-validation-error');
|
|
|
13
13
|
require('../../dist/ValPatchStore-b53db740.cjs.dev.js');
|
|
14
14
|
require('@valbuild/core/patch');
|
|
15
15
|
require('image-size');
|
|
16
|
-
require('../../dist/ValRouterCore-
|
|
16
|
+
require('../../dist/ValRouterCore-5ece0996.cjs.dev.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -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-f0c1e376.cjs.prod.js');
|
|
6
6
|
require('@valbuild/core');
|
|
7
|
-
require('../../dist/ValOpsMemory-
|
|
7
|
+
require('../../dist/ValOpsMemory-61228586.cjs.prod.js');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('@valbuild/shared/internal');
|
|
10
10
|
require('../../dist/jsonValuesPatch-92798812.cjs.prod.js');
|
|
@@ -13,7 +13,7 @@ require('zod-validation-error');
|
|
|
13
13
|
require('../../dist/ValPatchStore-457b166f.cjs.prod.js');
|
|
14
14
|
require('@valbuild/core/patch');
|
|
15
15
|
require('image-size');
|
|
16
|
-
require('../../dist/ValRouterCore-
|
|
16
|
+
require('../../dist/ValRouterCore-19688108.cjs.prod.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { c as createInTabValFetch } from '../../dist/inTabFetch-
|
|
1
|
+
export { c as createInTabValFetch } from '../../dist/inTabFetch-0e91f6a6.esm.js';
|
|
2
2
|
import '@valbuild/core';
|
|
3
|
-
import '../../dist/ValOpsMemory-
|
|
3
|
+
import '../../dist/ValOpsMemory-b774e6c0.esm.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@valbuild/shared/internal';
|
|
6
6
|
import '../../dist/jsonValuesPatch-13acc674.esm.js';
|
|
@@ -9,4 +9,4 @@ import 'zod-validation-error';
|
|
|
9
9
|
import '../../dist/ValPatchStore-9ccc09e7.esm.js';
|
|
10
10
|
import '@valbuild/core/patch';
|
|
11
11
|
import 'image-size';
|
|
12
|
-
import '../../dist/ValRouterCore-
|
|
12
|
+
import '../../dist/ValRouterCore-13df7164.esm.js';
|
|
@@ -4657,7 +4657,8 @@ function sessionAuth(cookie, opts) {
|
|
|
4657
4657
|
};
|
|
4658
4658
|
}
|
|
4659
4659
|
return {
|
|
4660
|
-
id: verification.data.sub
|
|
4660
|
+
id: verification.data.sub,
|
|
4661
|
+
exp: verification.data.exp
|
|
4661
4662
|
};
|
|
4662
4663
|
}
|
|
4663
4664
|
|
|
@@ -5124,7 +5125,7 @@ var packageJson = {
|
|
|
5124
5125
|
],
|
|
5125
5126
|
exports: true
|
|
5126
5127
|
},
|
|
5127
|
-
version: "0.158.
|
|
5128
|
+
version: "0.158.2",
|
|
5128
5129
|
scripts: {
|
|
5129
5130
|
typecheck: "tsc --noEmit",
|
|
5130
5131
|
test: "jest",
|
|
@@ -7004,7 +7005,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
7004
7005
|
if (typeof redirectToRes !== "string") {
|
|
7005
7006
|
return redirectToRes;
|
|
7006
7007
|
}
|
|
7007
|
-
await callbacks.onEnable(true);
|
|
7008
|
+
await callbacks.onEnable(true, enableOptionsFor(auth));
|
|
7008
7009
|
return {
|
|
7009
7010
|
status: 302,
|
|
7010
7011
|
redirectTo: redirectToRes
|
|
@@ -7171,10 +7172,10 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
7171
7172
|
if (typeof redirectToRes !== "string") {
|
|
7172
7173
|
return redirectToRes;
|
|
7173
7174
|
}
|
|
7174
|
-
await callbacks.onEnable(true);
|
|
7175
|
+
await callbacks.onEnable(true, enableOptionsFor(auth));
|
|
7175
7176
|
return {
|
|
7176
7177
|
cookies: {
|
|
7177
|
-
[internal.VAL_ENABLE_COOKIE_NAME]:
|
|
7178
|
+
[internal.VAL_ENABLE_COOKIE_NAME]: enableCookieUntil(enableOptionsFor(auth).expires)
|
|
7178
7179
|
},
|
|
7179
7180
|
status: 302,
|
|
7180
7181
|
redirectTo: redirectToRes
|
|
@@ -7298,14 +7299,17 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
7298
7299
|
}, valSecret);
|
|
7299
7300
|
// Signed in: now draft mode, which `/authorize` used to turn on for
|
|
7300
7301
|
// whoever asked.
|
|
7301
|
-
|
|
7302
|
+
const sessionExpires = new Date(exp * 1000);
|
|
7303
|
+
await callbacks.onEnable(true, {
|
|
7304
|
+
expires: sessionExpires
|
|
7305
|
+
});
|
|
7302
7306
|
return {
|
|
7303
7307
|
status: 302,
|
|
7304
7308
|
cookies: {
|
|
7305
7309
|
[internal.VAL_STATE_COOKIE]: {
|
|
7306
7310
|
value: null
|
|
7307
7311
|
},
|
|
7308
|
-
[internal.VAL_ENABLE_COOKIE_NAME]:
|
|
7312
|
+
[internal.VAL_ENABLE_COOKIE_NAME]: enableCookieUntil(sessionExpires),
|
|
7309
7313
|
[internal.VAL_SESSION_COOKIE]: {
|
|
7310
7314
|
value: cookie,
|
|
7311
7315
|
options: {
|
|
@@ -10325,6 +10329,35 @@ const ENABLE_COOKIE_VALUE = {
|
|
|
10325
10329
|
sameSite: "lax"
|
|
10326
10330
|
}
|
|
10327
10331
|
};
|
|
10332
|
+
|
|
10333
|
+
/**
|
|
10334
|
+
* `val_enable`, for as long as the session it was turned on for.
|
|
10335
|
+
*
|
|
10336
|
+
* Signing in, and turning preview on while signed in, set it to run out with
|
|
10337
|
+
* `val_session`. Without an `Expires` it went with the browser while the
|
|
10338
|
+
* session stayed: after a restart the editor was signed in but not enabled,
|
|
10339
|
+
* and the page in the canvas mounted no Val code, could not answer, and was
|
|
10340
|
+
* loaded again through `/enable` after `ANSWER_TIMEOUT_MS`. With no session
|
|
10341
|
+
* to follow (fs mode), it is the browser's, as before.
|
|
10342
|
+
*/
|
|
10343
|
+
function enableCookieUntil(expires) {
|
|
10344
|
+
return {
|
|
10345
|
+
value: ENABLE_COOKIE_VALUE.value,
|
|
10346
|
+
options: {
|
|
10347
|
+
...ENABLE_COOKIE_VALUE.options,
|
|
10348
|
+
...(expires !== undefined ? {
|
|
10349
|
+
expires
|
|
10350
|
+
} : {})
|
|
10351
|
+
}
|
|
10352
|
+
};
|
|
10353
|
+
}
|
|
10354
|
+
|
|
10355
|
+
/** What `onEnable` is told: when the caller's session runs out, if it does. */
|
|
10356
|
+
function enableOptionsFor(auth) {
|
|
10357
|
+
return "exp" in auth && typeof auth.exp === "number" ? {
|
|
10358
|
+
expires: new Date(auth.exp * 1000)
|
|
10359
|
+
} : {};
|
|
10360
|
+
}
|
|
10328
10361
|
const chunkSize = 1024 * 1024;
|
|
10329
10362
|
|
|
10330
10363
|
/**
|
|
@@ -4657,7 +4657,8 @@ function sessionAuth(cookie, opts) {
|
|
|
4657
4657
|
};
|
|
4658
4658
|
}
|
|
4659
4659
|
return {
|
|
4660
|
-
id: verification.data.sub
|
|
4660
|
+
id: verification.data.sub,
|
|
4661
|
+
exp: verification.data.exp
|
|
4661
4662
|
};
|
|
4662
4663
|
}
|
|
4663
4664
|
|
|
@@ -5124,7 +5125,7 @@ var packageJson = {
|
|
|
5124
5125
|
],
|
|
5125
5126
|
exports: true
|
|
5126
5127
|
},
|
|
5127
|
-
version: "0.158.
|
|
5128
|
+
version: "0.158.2",
|
|
5128
5129
|
scripts: {
|
|
5129
5130
|
typecheck: "tsc --noEmit",
|
|
5130
5131
|
test: "jest",
|
|
@@ -7004,7 +7005,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
7004
7005
|
if (typeof redirectToRes !== "string") {
|
|
7005
7006
|
return redirectToRes;
|
|
7006
7007
|
}
|
|
7007
|
-
await callbacks.onEnable(true);
|
|
7008
|
+
await callbacks.onEnable(true, enableOptionsFor(auth));
|
|
7008
7009
|
return {
|
|
7009
7010
|
status: 302,
|
|
7010
7011
|
redirectTo: redirectToRes
|
|
@@ -7171,10 +7172,10 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
7171
7172
|
if (typeof redirectToRes !== "string") {
|
|
7172
7173
|
return redirectToRes;
|
|
7173
7174
|
}
|
|
7174
|
-
await callbacks.onEnable(true);
|
|
7175
|
+
await callbacks.onEnable(true, enableOptionsFor(auth));
|
|
7175
7176
|
return {
|
|
7176
7177
|
cookies: {
|
|
7177
|
-
[internal.VAL_ENABLE_COOKIE_NAME]:
|
|
7178
|
+
[internal.VAL_ENABLE_COOKIE_NAME]: enableCookieUntil(enableOptionsFor(auth).expires)
|
|
7178
7179
|
},
|
|
7179
7180
|
status: 302,
|
|
7180
7181
|
redirectTo: redirectToRes
|
|
@@ -7298,14 +7299,17 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
7298
7299
|
}, valSecret);
|
|
7299
7300
|
// Signed in: now draft mode, which `/authorize` used to turn on for
|
|
7300
7301
|
// whoever asked.
|
|
7301
|
-
|
|
7302
|
+
const sessionExpires = new Date(exp * 1000);
|
|
7303
|
+
await callbacks.onEnable(true, {
|
|
7304
|
+
expires: sessionExpires
|
|
7305
|
+
});
|
|
7302
7306
|
return {
|
|
7303
7307
|
status: 302,
|
|
7304
7308
|
cookies: {
|
|
7305
7309
|
[internal.VAL_STATE_COOKIE]: {
|
|
7306
7310
|
value: null
|
|
7307
7311
|
},
|
|
7308
|
-
[internal.VAL_ENABLE_COOKIE_NAME]:
|
|
7312
|
+
[internal.VAL_ENABLE_COOKIE_NAME]: enableCookieUntil(sessionExpires),
|
|
7309
7313
|
[internal.VAL_SESSION_COOKIE]: {
|
|
7310
7314
|
value: cookie,
|
|
7311
7315
|
options: {
|
|
@@ -10325,6 +10329,35 @@ const ENABLE_COOKIE_VALUE = {
|
|
|
10325
10329
|
sameSite: "lax"
|
|
10326
10330
|
}
|
|
10327
10331
|
};
|
|
10332
|
+
|
|
10333
|
+
/**
|
|
10334
|
+
* `val_enable`, for as long as the session it was turned on for.
|
|
10335
|
+
*
|
|
10336
|
+
* Signing in, and turning preview on while signed in, set it to run out with
|
|
10337
|
+
* `val_session`. Without an `Expires` it went with the browser while the
|
|
10338
|
+
* session stayed: after a restart the editor was signed in but not enabled,
|
|
10339
|
+
* and the page in the canvas mounted no Val code, could not answer, and was
|
|
10340
|
+
* loaded again through `/enable` after `ANSWER_TIMEOUT_MS`. With no session
|
|
10341
|
+
* to follow (fs mode), it is the browser's, as before.
|
|
10342
|
+
*/
|
|
10343
|
+
function enableCookieUntil(expires) {
|
|
10344
|
+
return {
|
|
10345
|
+
value: ENABLE_COOKIE_VALUE.value,
|
|
10346
|
+
options: {
|
|
10347
|
+
...ENABLE_COOKIE_VALUE.options,
|
|
10348
|
+
...(expires !== undefined ? {
|
|
10349
|
+
expires
|
|
10350
|
+
} : {})
|
|
10351
|
+
}
|
|
10352
|
+
};
|
|
10353
|
+
}
|
|
10354
|
+
|
|
10355
|
+
/** What `onEnable` is told: when the caller's session runs out, if it does. */
|
|
10356
|
+
function enableOptionsFor(auth) {
|
|
10357
|
+
return "exp" in auth && typeof auth.exp === "number" ? {
|
|
10358
|
+
expires: new Date(auth.exp * 1000)
|
|
10359
|
+
} : {};
|
|
10360
|
+
}
|
|
10328
10361
|
const chunkSize = 1024 * 1024;
|
|
10329
10362
|
|
|
10330
10363
|
/**
|
|
@@ -4651,7 +4651,8 @@ function sessionAuth(cookie, opts) {
|
|
|
4651
4651
|
};
|
|
4652
4652
|
}
|
|
4653
4653
|
return {
|
|
4654
|
-
id: verification.data.sub
|
|
4654
|
+
id: verification.data.sub,
|
|
4655
|
+
exp: verification.data.exp
|
|
4655
4656
|
};
|
|
4656
4657
|
}
|
|
4657
4658
|
|
|
@@ -5118,7 +5119,7 @@ var packageJson = {
|
|
|
5118
5119
|
],
|
|
5119
5120
|
exports: true
|
|
5120
5121
|
},
|
|
5121
|
-
version: "0.158.
|
|
5122
|
+
version: "0.158.2",
|
|
5122
5123
|
scripts: {
|
|
5123
5124
|
typecheck: "tsc --noEmit",
|
|
5124
5125
|
test: "jest",
|
|
@@ -6998,7 +6999,7 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
6998
6999
|
if (typeof redirectToRes !== "string") {
|
|
6999
7000
|
return redirectToRes;
|
|
7000
7001
|
}
|
|
7001
|
-
await callbacks.onEnable(true);
|
|
7002
|
+
await callbacks.onEnable(true, enableOptionsFor(auth));
|
|
7002
7003
|
return {
|
|
7003
7004
|
status: 302,
|
|
7004
7005
|
redirectTo: redirectToRes
|
|
@@ -7165,10 +7166,10 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
7165
7166
|
if (typeof redirectToRes !== "string") {
|
|
7166
7167
|
return redirectToRes;
|
|
7167
7168
|
}
|
|
7168
|
-
await callbacks.onEnable(true);
|
|
7169
|
+
await callbacks.onEnable(true, enableOptionsFor(auth));
|
|
7169
7170
|
return {
|
|
7170
7171
|
cookies: {
|
|
7171
|
-
[VAL_ENABLE_COOKIE_NAME]:
|
|
7172
|
+
[VAL_ENABLE_COOKIE_NAME]: enableCookieUntil(enableOptionsFor(auth).expires)
|
|
7172
7173
|
},
|
|
7173
7174
|
status: 302,
|
|
7174
7175
|
redirectTo: redirectToRes
|
|
@@ -7292,14 +7293,17 @@ const ValServer = (valModules, options, callbacks, platform) => {
|
|
|
7292
7293
|
}, valSecret);
|
|
7293
7294
|
// Signed in: now draft mode, which `/authorize` used to turn on for
|
|
7294
7295
|
// whoever asked.
|
|
7295
|
-
|
|
7296
|
+
const sessionExpires = new Date(exp * 1000);
|
|
7297
|
+
await callbacks.onEnable(true, {
|
|
7298
|
+
expires: sessionExpires
|
|
7299
|
+
});
|
|
7296
7300
|
return {
|
|
7297
7301
|
status: 302,
|
|
7298
7302
|
cookies: {
|
|
7299
7303
|
[VAL_STATE_COOKIE]: {
|
|
7300
7304
|
value: null
|
|
7301
7305
|
},
|
|
7302
|
-
[VAL_ENABLE_COOKIE_NAME]:
|
|
7306
|
+
[VAL_ENABLE_COOKIE_NAME]: enableCookieUntil(sessionExpires),
|
|
7303
7307
|
[VAL_SESSION_COOKIE]: {
|
|
7304
7308
|
value: cookie,
|
|
7305
7309
|
options: {
|
|
@@ -10319,6 +10323,35 @@ const ENABLE_COOKIE_VALUE = {
|
|
|
10319
10323
|
sameSite: "lax"
|
|
10320
10324
|
}
|
|
10321
10325
|
};
|
|
10326
|
+
|
|
10327
|
+
/**
|
|
10328
|
+
* `val_enable`, for as long as the session it was turned on for.
|
|
10329
|
+
*
|
|
10330
|
+
* Signing in, and turning preview on while signed in, set it to run out with
|
|
10331
|
+
* `val_session`. Without an `Expires` it went with the browser while the
|
|
10332
|
+
* session stayed: after a restart the editor was signed in but not enabled,
|
|
10333
|
+
* and the page in the canvas mounted no Val code, could not answer, and was
|
|
10334
|
+
* loaded again through `/enable` after `ANSWER_TIMEOUT_MS`. With no session
|
|
10335
|
+
* to follow (fs mode), it is the browser's, as before.
|
|
10336
|
+
*/
|
|
10337
|
+
function enableCookieUntil(expires) {
|
|
10338
|
+
return {
|
|
10339
|
+
value: ENABLE_COOKIE_VALUE.value,
|
|
10340
|
+
options: {
|
|
10341
|
+
...ENABLE_COOKIE_VALUE.options,
|
|
10342
|
+
...(expires !== undefined ? {
|
|
10343
|
+
expires
|
|
10344
|
+
} : {})
|
|
10345
|
+
}
|
|
10346
|
+
};
|
|
10347
|
+
}
|
|
10348
|
+
|
|
10349
|
+
/** What `onEnable` is told: when the caller's session runs out, if it does. */
|
|
10350
|
+
function enableOptionsFor(auth) {
|
|
10351
|
+
return "exp" in auth && typeof auth.exp === "number" ? {
|
|
10352
|
+
expires: new Date(auth.exp * 1000)
|
|
10353
|
+
} : {};
|
|
10354
|
+
}
|
|
10322
10355
|
const chunkSize = 1024 * 1024;
|
|
10323
10356
|
|
|
10324
10357
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Internal } from '@valbuild/core';
|
|
2
2
|
import { STUDIO_ICON_PATHS, STUDIO_MANIFEST_PATH, studioManifest, studioAppIconFromQuery, STUDIO_SERVICE_WORKER_PATH, STUDIO_WORKER_SCOPE, STUDIO_SERVICE_WORKER_SOURCE, QUICK_PREVIEW_SERVICE_WORKER_PATH, QUICK_PREVIEW_SERVICE_WORKER_SOURCE, Api } from '@valbuild/shared/internal';
|
|
3
|
-
import { L as base64ToBytes } from './ValOpsMemory-
|
|
3
|
+
import { L as base64ToBytes } from './ValOpsMemory-b774e6c0.esm.js';
|
|
4
4
|
import { fromError } from 'zod-validation-error';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var core = require('@valbuild/core');
|
|
4
4
|
var internal = require('@valbuild/shared/internal');
|
|
5
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
5
|
+
var ValOpsMemory = require('./ValOpsMemory-61228586.cjs.prod.js');
|
|
6
6
|
var zodValidationError = require('zod-validation-error');
|
|
7
7
|
var z = require('zod');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var core = require('@valbuild/core');
|
|
4
4
|
var internal = require('@valbuild/shared/internal');
|
|
5
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
5
|
+
var ValOpsMemory = require('./ValOpsMemory-195af5ba.cjs.dev.js');
|
|
6
6
|
var zodValidationError = require('zod-validation-error');
|
|
7
7
|
var z = require('zod');
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as initHandlerOptions, v as valRuntime } from './valRuntime-
|
|
1
|
+
import { i as initHandlerOptions, v as valRuntime } from './valRuntime-585d0f2c.esm.js';
|
|
2
2
|
import '@valbuild/core';
|
|
3
|
-
import './ValOpsMemory-
|
|
3
|
+
import './ValOpsMemory-b774e6c0.esm.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@valbuild/shared/internal';
|
|
6
6
|
import './jsonValuesPatch-13acc674.esm.js';
|
package/dist/{createValRuntime-53bfd9b1.cjs.prod.js → createValRuntime-41d5060b.cjs.prod.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var valRuntime = require('./valRuntime-
|
|
3
|
+
var valRuntime = require('./valRuntime-09c47b93.cjs.prod.js');
|
|
4
4
|
require('@valbuild/core');
|
|
5
|
-
require('./ValOpsMemory-
|
|
5
|
+
require('./ValOpsMemory-61228586.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-671505a9.cjs.dev.js');
|
|
4
4
|
require('@valbuild/core');
|
|
5
|
-
require('./ValOpsMemory-
|
|
5
|
+
require('./ValOpsMemory-195af5ba.cjs.dev.js');
|
|
6
6
|
require('zod');
|
|
7
7
|
require('@valbuild/shared/internal');
|
|
8
8
|
require('./jsonValuesPatch-88bc661d.cjs.dev.js');
|
|
@@ -195,7 +195,16 @@ export declare const ValServer: (valModules: ValModules, options: ValServerConfi
|
|
|
195
195
|
platform: ValServerPlatform) => ServerOf<Api>;
|
|
196
196
|
export type ValServerCallbacks = {
|
|
197
197
|
isEnabled: () => Promise<boolean>;
|
|
198
|
-
|
|
198
|
+
/**
|
|
199
|
+
* Turn draft mode on for this browser.
|
|
200
|
+
*
|
|
201
|
+
* `expires` is when the session it was turned on for runs out, when there
|
|
202
|
+
* is one: draft mode should last as long, not until the browser closes.
|
|
203
|
+
* See {@link enableCookieUntil}.
|
|
204
|
+
*/
|
|
205
|
+
onEnable: (success: boolean, options?: {
|
|
206
|
+
expires?: Date;
|
|
207
|
+
}) => Promise<void>;
|
|
199
208
|
onDisable: (success: boolean) => Promise<void>;
|
|
200
209
|
};
|
|
201
210
|
export declare const ENABLE_COOKIE_VALUE: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_CONTENT_HOST } from '@valbuild/core';
|
|
2
|
-
import { o as ValOpsMemory, N as bytesToBase64, V as ValServer } from './ValOpsMemory-
|
|
3
|
-
import { c as createValRequestHandler } from './ValRouterCore-
|
|
2
|
+
import { o as ValOpsMemory, N as bytesToBase64, V as ValServer } from './ValOpsMemory-b774e6c0.esm.js';
|
|
3
|
+
import { c as createValRequestHandler } from './ValRouterCore-13df7164.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.";
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var core = require('@valbuild/core');
|
|
4
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
5
|
-
var ValRouterCore = require('./ValRouterCore-
|
|
4
|
+
var ValOpsMemory = require('./ValOpsMemory-195af5ba.cjs.dev.js');
|
|
5
|
+
var ValRouterCore = require('./ValRouterCore-5ece0996.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.";
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var core = require('@valbuild/core');
|
|
4
|
-
var ValOpsMemory = require('./ValOpsMemory-
|
|
5
|
-
var ValRouterCore = require('./ValRouterCore-
|
|
4
|
+
var ValOpsMemory = require('./ValOpsMemory-61228586.cjs.prod.js');
|
|
5
|
+
var ValRouterCore = require('./ValRouterCore-19688108.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.";
|
|
8
8
|
|
|
@@ -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-195af5ba.cjs.dev.js');
|
|
9
9
|
require('@valbuild/core/patch');
|
|
10
10
|
require('@valbuild/shared/internal');
|
|
11
11
|
require('path');
|
|
@@ -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-61228586.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 { O as bytesToUtf8 } from './ValOpsMemory-
|
|
8
|
+
import { O as bytesToUtf8 } from './ValOpsMemory-b774e6c0.esm.js';
|
|
9
9
|
import '@valbuild/core/patch';
|
|
10
10
|
import '@valbuild/shared/internal';
|
|
11
11
|
import '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-61228586.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-7160e22b.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-7160e22b.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-b774e6c0.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-8e178f78.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-8e178f78.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-195af5ba.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-6ba09844.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-6ba09844.cjs.dev.js'); });
|
|
3225
3225
|
const sources = {};
|
|
3226
3226
|
for (const {
|
|
3227
3227
|
path,
|
|
@@ -11,17 +11,17 @@ 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-195af5ba.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-671505a9.cjs.dev.js');
|
|
18
18
|
var http = require('node:http');
|
|
19
19
|
var https = require('node:https');
|
|
20
20
|
var net = require('node:net');
|
|
21
21
|
var sizeOf = require('image-size');
|
|
22
22
|
var http$1 = require('http');
|
|
23
23
|
var https$1 = require('https');
|
|
24
|
-
var ValRouterCore = require('./ValRouterCore-
|
|
24
|
+
var ValRouterCore = require('./ValRouterCore-5ece0996.cjs.dev.js');
|
|
25
25
|
var createPrettierFormatter = require('./createPrettierFormatter-a9109288.cjs.dev.js');
|
|
26
26
|
var proposalJsonEntries = require('./proposalJsonEntries-878ad5b6.cjs.dev.js');
|
|
27
27
|
var z = require('zod');
|
|
@@ -11,17 +11,17 @@ 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-61228586.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-09c47b93.cjs.prod.js');
|
|
18
18
|
var http = require('node:http');
|
|
19
19
|
var https = require('node:https');
|
|
20
20
|
var net = require('node:net');
|
|
21
21
|
var sizeOf = require('image-size');
|
|
22
22
|
var http$1 = require('http');
|
|
23
23
|
var https$1 = require('https');
|
|
24
|
-
var ValRouterCore = require('./ValRouterCore-
|
|
24
|
+
var ValRouterCore = require('./ValRouterCore-19688108.cjs.prod.js');
|
|
25
25
|
var createPrettierFormatter = require('./createPrettierFormatter-8e60f596.cjs.prod.js');
|
|
26
26
|
var proposalJsonEntries = require('./proposalJsonEntries-4fcfab08.cjs.prod.js');
|
|
27
27
|
var z = require('zod');
|
|
@@ -10,20 +10,20 @@ 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-b774e6c0.esm.js';
|
|
14
|
+
export { o as ValOpsMemory, j as askOncePerHost, e as formatPatchSourceError, g as getFileExt, k as getSettings, u as uploadRemoteFile } from './ValOpsMemory-b774e6c0.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-585d0f2c.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-585d0f2c.esm.js';
|
|
20
20
|
import http from 'node:http';
|
|
21
21
|
import https from 'node:https';
|
|
22
22
|
import net from 'node:net';
|
|
23
23
|
import sizeOf from 'image-size';
|
|
24
24
|
import http$1 from 'http';
|
|
25
25
|
import https$1 from 'https';
|
|
26
|
-
import { s as setRequestGuard, p as parseAllowedHosts, c as createValRequestHandler } from './ValRouterCore-
|
|
26
|
+
import { s as setRequestGuard, p as parseAllowedHosts, c as createValRequestHandler } from './ValRouterCore-13df7164.esm.js';
|
|
27
27
|
export { c as contentFromEnv, b as createPrettierFormatter, l as layeredSnapshot, p as proposalFromEnv, a as proposalSnapshot } from './createPrettierFormatter-fb68e363.esm.js';
|
|
28
28
|
export { proposalSnapshotForReaders } from './proposalJsonEntries-e1b07915.esm.js';
|
|
29
29
|
import z$1, { z } from 'zod';
|
|
@@ -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-eabf40a0.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-195af5ba.cjs.dev.js');
|
|
9
9
|
require('zod');
|
|
10
10
|
require('@valbuild/shared/internal');
|
|
11
11
|
require('../../../dist/jsonValuesPatch-88bc661d.cjs.dev.js');
|
|
@@ -14,7 +14,7 @@ require('zod-validation-error');
|
|
|
14
14
|
require('../../../dist/ValPatchStore-b53db740.cjs.dev.js');
|
|
15
15
|
require('@valbuild/core/patch');
|
|
16
16
|
require('image-size');
|
|
17
|
-
require('../../../dist/ValRouterCore-
|
|
17
|
+
require('../../../dist/ValRouterCore-5ece0996.cjs.dev.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -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-f0c1e376.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-61228586.cjs.prod.js');
|
|
9
9
|
require('zod');
|
|
10
10
|
require('@valbuild/shared/internal');
|
|
11
11
|
require('../../../dist/jsonValuesPatch-92798812.cjs.prod.js');
|
|
@@ -14,7 +14,7 @@ require('zod-validation-error');
|
|
|
14
14
|
require('../../../dist/ValPatchStore-457b166f.cjs.prod.js');
|
|
15
15
|
require('@valbuild/core/patch');
|
|
16
16
|
require('image-size');
|
|
17
|
-
require('../../../dist/ValRouterCore-
|
|
17
|
+
require('../../../dist/ValRouterCore-19688108.cjs.prod.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as createInTabVal } from '../../../dist/inTabFetch-
|
|
1
|
+
export { a as createInTabVal } from '../../../dist/inTabFetch-0e91f6a6.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-b774e6c0.esm.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@valbuild/shared/internal';
|
|
7
7
|
import '../../../dist/jsonValuesPatch-13acc674.esm.js';
|
|
@@ -10,4 +10,4 @@ import 'zod-validation-error';
|
|
|
10
10
|
import '../../../dist/ValPatchStore-9ccc09e7.esm.js';
|
|
11
11
|
import '@valbuild/core/patch';
|
|
12
12
|
import 'image-size';
|
|
13
|
-
import '../../../dist/ValRouterCore-
|
|
13
|
+
import '../../../dist/ValRouterCore-13df7164.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-dc7a01ff.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-41d5060b.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-00ca6e1a.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.158.
|
|
40
|
+
"version": "0.158.2",
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@prettier/sync": "^0.6.1",
|
|
43
43
|
"@types/jest": "^30.0.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"zod": "^4.6.6",
|
|
53
53
|
"zod-validation-error": "^5.0.0",
|
|
54
54
|
"@valbuild/core": "0.158.0",
|
|
55
|
-
"@valbuild/shared": "0.158.
|
|
56
|
-
"@valbuild/ui": "0.158.
|
|
55
|
+
"@valbuild/shared": "0.158.2",
|
|
56
|
+
"@valbuild/ui": "0.158.2"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": "^20.19.0 || >=22"
|