astro 4.16.2 → 4.16.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.
|
@@ -121,7 +121,7 @@ class ContentLayer {
|
|
|
121
121
|
logger.info("Content config changed");
|
|
122
122
|
shouldClear = true;
|
|
123
123
|
}
|
|
124
|
-
if (previousAstroVersion !== "4.16.
|
|
124
|
+
if (previousAstroVersion !== "4.16.3") {
|
|
125
125
|
logger.info("Astro version changed");
|
|
126
126
|
shouldClear = true;
|
|
127
127
|
}
|
|
@@ -129,8 +129,8 @@ class ContentLayer {
|
|
|
129
129
|
logger.info("Clearing content store");
|
|
130
130
|
this.#store.clearAll();
|
|
131
131
|
}
|
|
132
|
-
if ("4.16.
|
|
133
|
-
await this.#store.metaStore().set("astro-version", "4.16.
|
|
132
|
+
if ("4.16.3") {
|
|
133
|
+
await this.#store.metaStore().set("astro-version", "4.16.3");
|
|
134
134
|
}
|
|
135
135
|
if (currentConfigDigest) {
|
|
136
136
|
await this.#store.metaStore().set("config-digest", currentConfigDigest);
|
package/dist/core/app/node.js
CHANGED
|
@@ -42,10 +42,9 @@ class NodeApp extends App {
|
|
|
42
42
|
const protocol = forwardedProtocol ?? (isEncrypted ? "https" : "http");
|
|
43
43
|
const forwardedHostname = getFirstForwardedValue(req.headers["x-forwarded-host"]);
|
|
44
44
|
const hostname = forwardedHostname ?? req.headers.host ?? req.headers[":authority"];
|
|
45
|
-
const
|
|
46
|
-
const port = forwardedPort ?? req.socket?.remotePort?.toString() ?? (isEncrypted ? "443" : "80");
|
|
45
|
+
const port = getFirstForwardedValue(req.headers["x-forwarded-port"]);
|
|
47
46
|
const portInHostname = typeof hostname === "string" && /:\d+$/.test(hostname);
|
|
48
|
-
const hostnamePort = portInHostname ? hostname : `${hostname}
|
|
47
|
+
const hostnamePort = portInHostname ? hostname : `${hostname}${port ? `:${port}` : ""}`;
|
|
49
48
|
const url = `${protocol}://${hostnamePort}${req.url}`;
|
|
50
49
|
const options = {
|
|
51
50
|
method: req.method || "GET",
|
package/dist/core/constants.js
CHANGED
package/dist/core/dev/dev.js
CHANGED
|
@@ -22,7 +22,7 @@ async function dev(inlineConfig) {
|
|
|
22
22
|
await telemetry.record([]);
|
|
23
23
|
const restart = await createContainerWithAutomaticRestart({ inlineConfig, fs });
|
|
24
24
|
const logger = restart.container.logger;
|
|
25
|
-
const currentVersion = "4.16.
|
|
25
|
+
const currentVersion = "4.16.3";
|
|
26
26
|
const isPrerelease = currentVersion.includes("-");
|
|
27
27
|
if (!isPrerelease) {
|
|
28
28
|
try {
|
package/dist/core/messages.js
CHANGED
|
@@ -38,7 +38,7 @@ function serverStart({
|
|
|
38
38
|
host,
|
|
39
39
|
base
|
|
40
40
|
}) {
|
|
41
|
-
const version = "4.16.
|
|
41
|
+
const version = "4.16.3";
|
|
42
42
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
43
43
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
44
44
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -270,7 +270,7 @@ function printHelp({
|
|
|
270
270
|
message.push(
|
|
271
271
|
linebreak(),
|
|
272
272
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
273
|
-
`v${"4.16.
|
|
273
|
+
`v${"4.16.3"}`
|
|
274
274
|
)} ${headline}`
|
|
275
275
|
);
|
|
276
276
|
}
|
package/package.json
CHANGED
package/templates/env/module.mjs
CHANGED
|
@@ -26,6 +26,8 @@ const _internalGetSecret = (key) => {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// used while generating the virtual module
|
|
29
|
-
|
|
29
|
+
// biome-ignore lint/correctness/noUnusedFunctionParameters: `reset` is used by the generated code
|
|
30
|
+
// biome-ignore lint/correctness/noUnusedVariables: `reset` is used by the generated code
|
|
31
|
+
setOnSetGetEnv((reset) => {
|
|
30
32
|
// @@ON_SET_GET_ENV@@
|
|
31
33
|
});
|