astro 3.0.5 → 3.0.6
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.
|
@@ -300,6 +300,7 @@ const { fallback = 'animate' } = Astro.props as Props;
|
|
|
300
300
|
!link ||
|
|
301
301
|
!(link instanceof HTMLAnchorElement) ||
|
|
302
302
|
link.dataset.astroReload !== undefined ||
|
|
303
|
+
link.hasAttribute('download') ||
|
|
303
304
|
!link.href ||
|
|
304
305
|
(link.target && link.target !== '_self') ||
|
|
305
306
|
link.origin !== location.origin ||
|
package/dist/core/constants.js
CHANGED
package/dist/core/dev/dev.js
CHANGED
|
@@ -20,7 +20,7 @@ async function dev(inlineConfig) {
|
|
|
20
20
|
base: restart.container.settings.config.base
|
|
21
21
|
})
|
|
22
22
|
);
|
|
23
|
-
const currentVersion = "3.0.
|
|
23
|
+
const currentVersion = "3.0.6";
|
|
24
24
|
if (currentVersion.includes("-")) {
|
|
25
25
|
logger.warn(null, msg.prerelease({ currentVersion }));
|
|
26
26
|
}
|
package/dist/core/messages.js
CHANGED
|
@@ -50,7 +50,7 @@ function serverStart({
|
|
|
50
50
|
base,
|
|
51
51
|
isRestart = false
|
|
52
52
|
}) {
|
|
53
|
-
const version = "3.0.
|
|
53
|
+
const version = "3.0.6";
|
|
54
54
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
55
55
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
56
56
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -235,7 +235,7 @@ function printHelp({
|
|
|
235
235
|
message.push(
|
|
236
236
|
linebreak(),
|
|
237
237
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
238
|
-
`v${"3.0.
|
|
238
|
+
`v${"3.0.6"}`
|
|
239
239
|
)} ${headline}`
|
|
240
240
|
);
|
|
241
241
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { trimSlashes } from "../path.js";
|
|
1
2
|
import { validateGetStaticPathsParameter } from "./validation.js";
|
|
2
3
|
function getParams(array) {
|
|
3
4
|
const fn = (match) => {
|
|
@@ -17,7 +18,9 @@ function stringifyParams(params, route) {
|
|
|
17
18
|
const validatedParams = Object.entries(params).reduce((acc, next) => {
|
|
18
19
|
validateGetStaticPathsParameter(next, route.component);
|
|
19
20
|
const [key, value] = next;
|
|
20
|
-
|
|
21
|
+
if (value !== void 0) {
|
|
22
|
+
acc[key] = typeof value === "string" ? trimSlashes(value) : value.toString();
|
|
23
|
+
}
|
|
21
24
|
return acc;
|
|
22
25
|
}, {});
|
|
23
26
|
return JSON.stringify(route.generate(validatedParams));
|