@void/platform 0.20.2 → 0.20.3
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/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -2
- package/dist/installer.d.mts +1 -1
- package/dist/installer.mjs +1 -1
- package/dist/runtime/api/README.md +1 -1
- package/dist/runtime/api/index.js +1146 -371
- package/dist/runtime/api/index.js.map +4 -4
- package/dist/runtime/dispatch/README.md +1 -1
- package/dist/runtime/dispatch/index.js +9 -5
- package/dist/runtime/dispatch/index.js.map +2 -2
- package/dist/runtime/emailGateway/README.md +1 -1
- package/dist/runtime/manifest.json +9 -9
- package/dist/runtime/proxy/README.md +1 -1
- package/dist/runtime/proxy/index.js +23 -4
- package/dist/runtime/proxy/index.js.map +2 -2
- package/dist/runtime/tail/README.md +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains the built output assets for the worker "void-runtime-build-email-gateway" generated at 2026-09-
|
|
1
|
+
This folder contains the built output assets for the worker "void-runtime-build-email-gateway" generated at 2026-09-24T06:17:08.206Z.
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"artifacts": {
|
|
3
3
|
"api": {
|
|
4
4
|
"path": "api/index.js",
|
|
5
|
-
"sha256": "
|
|
6
|
-
"size":
|
|
5
|
+
"sha256": "52e8a5859705a80d2144f7ee2f884d851ece6ad7a7c5add848619b3c612fbff0",
|
|
6
|
+
"size": 3765459
|
|
7
7
|
},
|
|
8
8
|
"dispatch": {
|
|
9
9
|
"path": "dispatch/index.js",
|
|
10
|
-
"sha256": "
|
|
11
|
-
"size":
|
|
10
|
+
"sha256": "235b4df0fca0c64f2b2800362f48dd9c28048d2e9ff4f047284eb89253d53aa1",
|
|
11
|
+
"size": 119276
|
|
12
12
|
},
|
|
13
13
|
"proxy": {
|
|
14
14
|
"path": "proxy/index.js",
|
|
15
|
-
"sha256": "
|
|
16
|
-
"size":
|
|
15
|
+
"sha256": "09c8a3af8c8947ee1dccab23cf3265fc981867dd2faf9409a8133eb442727f2a",
|
|
16
|
+
"size": 177919
|
|
17
17
|
},
|
|
18
18
|
"tail": {
|
|
19
19
|
"path": "tail/index.js",
|
|
@@ -315,11 +315,11 @@
|
|
|
315
315
|
],
|
|
316
316
|
"schemaDigest": "089431e230970d03afa429c102613598e88371155cb693c076002c5d632bb0b6"
|
|
317
317
|
},
|
|
318
|
-
"platformVersion": "0.20.
|
|
318
|
+
"platformVersion": "0.20.3",
|
|
319
319
|
"safetyProtocols": {
|
|
320
|
-
"sandboxDrain":
|
|
320
|
+
"sandboxDrain": 3
|
|
321
321
|
},
|
|
322
322
|
"schemaVersion": 2,
|
|
323
|
-
"sourceRevision": "
|
|
323
|
+
"sourceRevision": "1bf5bf7c908062db971bb735a7a56e78c8aebca6",
|
|
324
324
|
"usageProtocolVersion": 2
|
|
325
325
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains the built output assets for the worker "void-runtime-build-proxy" generated at 2026-09-
|
|
1
|
+
This folder contains the built output assets for the worker "void-runtime-build-proxy" generated at 2026-09-24T06:17:07.138Z.
|
|
@@ -5506,7 +5506,13 @@ app3.post("/*", async (context, next) => {
|
|
|
5506
5506
|
const token = authHeader.slice(7);
|
|
5507
5507
|
const payload = await verifyJwt(token, context.env.JWT_SECRET);
|
|
5508
5508
|
if (!payload) {
|
|
5509
|
-
return context.json(
|
|
5509
|
+
return context.json(
|
|
5510
|
+
{
|
|
5511
|
+
error: "invalid or expired token",
|
|
5512
|
+
message: "This proxy credential is invalid or expired. Sign in to the connected platform again for remote development, or restart the build to obtain a fresh prerender token."
|
|
5513
|
+
},
|
|
5514
|
+
401
|
|
5515
|
+
);
|
|
5510
5516
|
}
|
|
5511
5517
|
const projectId = asString(body.projectId);
|
|
5512
5518
|
if (!projectId) {
|
|
@@ -5514,7 +5520,13 @@ app3.post("/*", async (context, next) => {
|
|
|
5514
5520
|
}
|
|
5515
5521
|
if (payload.aud === "prerender") {
|
|
5516
5522
|
if (!payload.project || payload.project !== projectId) {
|
|
5517
|
-
return context.json(
|
|
5523
|
+
return context.json(
|
|
5524
|
+
{
|
|
5525
|
+
error: "forbidden",
|
|
5526
|
+
message: "This prerender token does not match the requested project. Restart the build with a prerender token issued for the selected project."
|
|
5527
|
+
},
|
|
5528
|
+
403
|
|
5529
|
+
);
|
|
5518
5530
|
}
|
|
5519
5531
|
const active = await verifyPrerenderAuthority(
|
|
5520
5532
|
context.env.API,
|
|
@@ -5529,7 +5541,8 @@ app3.post("/*", async (context, next) => {
|
|
|
5529
5541
|
if (!active) {
|
|
5530
5542
|
return context.json(
|
|
5531
5543
|
{
|
|
5532
|
-
error: payload.credential ? "prerender token credential is no longer active" : payload.build ? "prerender token build is no longer active" : "prerender token authority is no longer active"
|
|
5544
|
+
error: payload.credential ? "prerender token credential is no longer active" : payload.build ? "prerender token build is no longer active" : "prerender token authority is no longer active",
|
|
5545
|
+
message: payload.credential ? "The deploy credential used for prerendering is no longer authorized. Ask the project owner for an active deploy credential, then restart the build." : payload.build ? "This build is no longer authorized to prerender. Start a new build to obtain a fresh prerender token." : "This prerender token is no longer authorized. Confirm your project access with a project admin or owner, then restart the build to obtain a fresh token."
|
|
5533
5546
|
},
|
|
5534
5547
|
403
|
|
5535
5548
|
);
|
|
@@ -5546,7 +5559,13 @@ app3.post("/*", async (context, next) => {
|
|
|
5546
5559
|
), "checkOwner");
|
|
5547
5560
|
revalidateHuman = /* @__PURE__ */ __name(async () => payload.exp > Date.now() / 1e3 && await checkOwner(), "revalidateHuman");
|
|
5548
5561
|
if (!await revalidateHuman()) {
|
|
5549
|
-
return context.json(
|
|
5562
|
+
return context.json(
|
|
5563
|
+
{
|
|
5564
|
+
error: "forbidden",
|
|
5565
|
+
message: "Remote access could not be authorized. Check the selected platform and project, then ask a project admin or owner to confirm your access. If your access is correct, retry shortly."
|
|
5566
|
+
},
|
|
5567
|
+
403
|
|
5568
|
+
);
|
|
5550
5569
|
}
|
|
5551
5570
|
}
|
|
5552
5571
|
context.set("projectId", projectId);
|