astro 5.7.4 → 5.7.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.
- package/components/image.css +5 -12
- package/dist/assets/fonts/config.d.ts +6 -22
- package/dist/assets/fonts/config.js +2 -3
- package/dist/assets/fonts/constants.d.ts +1 -1
- package/dist/assets/fonts/providers/index.d.ts +1 -1
- package/dist/assets/fonts/providers/index.js +3 -2
- package/dist/assets/fonts/utils.d.ts +2 -2
- package/dist/assets/fonts/utils.js +9 -6
- package/dist/assets/fonts/vite-plugin-fonts.js +29 -10
- package/dist/assets/internal.js +0 -2
- package/dist/assets/layout.js +4 -4
- package/dist/assets/services/service.d.ts +1 -1
- package/dist/assets/types.d.ts +4 -4
- package/dist/assets/utils/etag.d.ts +0 -11
- package/dist/assets/utils/etag.js +1 -2
- package/dist/assets/utils/vendor/image-size/lookup.d.ts +0 -2
- package/dist/assets/utils/vendor/image-size/lookup.js +0 -10
- package/dist/cli/add/index.d.ts +0 -9
- package/dist/cli/add/index.js +1 -2
- package/dist/cli/info/index.d.ts +0 -1
- package/dist/cli/info/index.js +0 -1
- package/dist/cli/preferences/index.d.ts +0 -2
- package/dist/container/index.js +1 -6
- package/dist/content/content-layer.d.ts +2 -7
- package/dist/content/content-layer.js +4 -6
- package/dist/content/index.d.ts +1 -2
- package/dist/content/index.js +1 -5
- package/dist/content/loaders/file.d.ts +2 -1
- package/dist/content/loaders/glob.d.ts +3 -2
- package/dist/content/utils.d.ts +1 -12
- package/dist/content/utils.js +0 -13
- package/dist/content/vite-plugin-content-virtual-mod.d.ts +0 -16
- package/dist/content/vite-plugin-content-virtual-mod.js +1 -3
- package/dist/core/app/index.js +3 -4
- package/dist/core/app/pipeline.d.ts +2 -3
- package/dist/core/app/pipeline.js +1 -3
- package/dist/core/app/types.d.ts +3 -2
- package/dist/core/build/consts.d.ts +0 -1
- package/dist/core/build/consts.js +1 -3
- package/dist/core/build/index.d.ts +2 -1
- package/dist/core/build/page-data.d.ts +3 -2
- package/dist/core/build/plugin.d.ts +1 -1
- package/dist/core/build/plugins/plugin-analyzer.d.ts +0 -2
- package/dist/core/build/plugins/plugin-analyzer.js +1 -2
- package/dist/core/build/plugins/plugin-chunks.d.ts +0 -2
- package/dist/core/build/plugins/plugin-chunks.js +1 -2
- package/dist/core/build/plugins/plugin-component-entry.d.ts +0 -8
- package/dist/core/build/plugins/plugin-component-entry.js +1 -3
- package/dist/core/build/plugins/plugin-internals.d.ts +0 -2
- package/dist/core/build/plugins/plugin-internals.js +1 -2
- package/dist/core/build/plugins/plugin-renderers.d.ts +0 -2
- package/dist/core/build/plugins/plugin-renderers.js +1 -2
- package/dist/core/build/plugins/plugin-scripts.d.ts +0 -5
- package/dist/core/build/plugins/plugin-scripts.js +1 -2
- package/dist/core/build/plugins/plugin-ssr.d.ts +0 -1
- package/dist/core/build/plugins/plugin-ssr.js +0 -1
- package/dist/core/build/plugins/util.d.ts +0 -9
- package/dist/core/build/plugins/util.js +0 -2
- package/dist/core/build/types.d.ts +1 -1
- package/dist/core/config/config.d.ts +0 -1
- package/dist/core/config/config.js +0 -1
- package/dist/core/config/index.d.ts +1 -2
- package/dist/core/config/index.js +0 -2
- package/dist/core/config/schemas/base.d.ts +21 -19
- package/dist/core/config/schemas/base.js +1 -1
- package/dist/core/config/schemas/relative.d.ts +25 -25
- package/dist/core/config/timer.d.ts +0 -5
- package/dist/core/config/tsconfig.d.ts +1 -1
- package/dist/core/constants.d.ts +0 -4
- package/dist/core/constants.js +1 -3
- package/dist/core/cookies/index.d.ts +1 -1
- package/dist/core/cookies/index.js +2 -4
- package/dist/core/cookies/response.d.ts +0 -1
- package/dist/core/cookies/response.js +1 -5
- package/dist/core/dev/container.d.ts +2 -1
- package/dist/core/dev/dev.js +1 -1
- package/dist/core/dev/index.d.ts +1 -1
- package/dist/core/dev/index.js +1 -2
- package/dist/core/dev/restart.d.ts +1 -1
- package/dist/core/encryption.d.ts +0 -8
- package/dist/core/encryption.js +1 -7
- package/dist/core/errors/errors-data.d.ts +2 -1
- package/dist/core/errors/errors-data.js +2 -1
- package/dist/core/errors/index.d.ts +1 -2
- package/dist/core/errors/index.js +0 -2
- package/dist/core/logger/core.d.ts +3 -9
- package/dist/core/logger/core.js +1 -5
- package/dist/core/messages.d.ts +0 -1
- package/dist/core/messages.js +2 -11
- package/dist/core/middleware/sequence.js +3 -0
- package/dist/core/preview/static-preview-server.d.ts +2 -1
- package/dist/core/redirects/index.d.ts +0 -1
- package/dist/core/redirects/index.js +0 -2
- package/dist/core/render/index.d.ts +0 -17
- package/dist/core/render/ssr-element.d.ts +0 -2
- package/dist/core/render/ssr-element.js +0 -2
- package/dist/core/render-context.js +4 -0
- package/dist/core/request.d.ts +1 -1
- package/dist/core/routing/3xx.d.ts +2 -1
- package/dist/core/routing/astro-designed-error-pages.d.ts +0 -1
- package/dist/core/routing/astro-designed-error-pages.js +1 -16
- package/dist/core/routing/index.d.ts +2 -3
- package/dist/core/routing/index.js +3 -8
- package/dist/core/routing/manifest/create.d.ts +2 -3
- package/dist/core/routing/manifest/create.js +4 -2
- package/dist/core/routing/request.d.ts +0 -1
- package/dist/core/routing/request.js +1 -2
- package/dist/core/routing/rewrite.d.ts +3 -2
- package/dist/core/server-islands/vite-plugin-server-islands.d.ts +0 -1
- package/dist/core/server-islands/vite-plugin-server-islands.js +0 -1
- package/dist/core/sync/index.d.ts +2 -1
- package/dist/core/util.d.ts +0 -1
- package/dist/core/util.js +0 -1
- package/dist/events/session.d.ts +1 -1
- package/dist/integrations/features-validation.d.ts +1 -3
- package/dist/integrations/features-validation.js +0 -2
- package/dist/preferences/index.d.ts +4 -4
- package/dist/type-utils.d.ts +0 -4
- package/dist/types/public/config.d.ts +36 -20
- package/dist/types/typed-emitter.d.ts +2 -1
- package/dist/vite-plugin-astro/hmr.d.ts +2 -1
- package/dist/vite-plugin-astro/query.d.ts +3 -2
- package/dist/vite-plugin-astro/types.d.ts +2 -1
- package/dist/vite-plugin-astro-server/controller.d.ts +2 -2
- package/dist/vite-plugin-astro-server/plugin.d.ts +2 -1
- package/dist/vite-plugin-astro-server/response.d.ts +0 -1
- package/dist/vite-plugin-astro-server/response.js +0 -12
- package/dist/vite-plugin-astro-server/route.d.ts +1 -1
- package/dist/vite-plugin-astro-server/server-state.d.ts +3 -3
- package/dist/vite-plugin-astro-server/server-state.js +0 -4
- package/dist/vite-plugin-load-fallback/index.d.ts +1 -1
- package/dist/vite-plugin-scanner/index.d.ts +2 -1
- package/package.json +5 -11
- package/templates/env.mjs +1 -0
|
@@ -2,6 +2,7 @@ import type { OutgoingHttpHeaders } from 'node:http';
|
|
|
2
2
|
import type { ShikiConfig, RehypePlugin as _RehypePlugin, RemarkPlugin as _RemarkPlugin, RemarkRehype as _RemarkRehype } from '@astrojs/markdown-remark';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import type { ViteUserConfig } from '../../../types/public/config.js';
|
|
5
|
+
/** @lintignore */
|
|
5
6
|
export interface ComplexifyUnionObj {
|
|
6
7
|
}
|
|
7
8
|
type ComplexifyWithUnion<T> = T & ComplexifyUnionObj;
|
|
@@ -11,6 +12,7 @@ type ShikiTheme = ComplexifyWithUnion<NonNullable<ShikiConfig['theme']>>;
|
|
|
11
12
|
type ShikiTransformer = ComplexifyWithUnion<NonNullable<ShikiConfig['transformers']>[number]>;
|
|
12
13
|
type RehypePlugin = ComplexifyWithUnion<_RehypePlugin>;
|
|
13
14
|
type RemarkPlugin = ComplexifyWithUnion<_RemarkPlugin>;
|
|
15
|
+
/** @lintignore */
|
|
14
16
|
export type RemarkRehype = ComplexifyWithOmit<_RemarkRehype>;
|
|
15
17
|
export declare const ASTRO_CONFIG_DEFAULTS: {
|
|
16
18
|
root: string;
|
|
@@ -238,7 +240,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
238
240
|
hostname?: string | undefined;
|
|
239
241
|
pathname?: string | undefined;
|
|
240
242
|
}>, "many">>;
|
|
241
|
-
experimentalLayout: z.ZodOptional<z.ZodEnum<["
|
|
243
|
+
experimentalLayout: z.ZodOptional<z.ZodEnum<["constrained", "fixed", "full-width", "none"]>>;
|
|
242
244
|
experimentalObjectFit: z.ZodOptional<z.ZodString>;
|
|
243
245
|
experimentalObjectPosition: z.ZodOptional<z.ZodString>;
|
|
244
246
|
experimentalBreakpoints: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
@@ -258,7 +260,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
258
260
|
hostname?: string | undefined;
|
|
259
261
|
pathname?: string | undefined;
|
|
260
262
|
}[];
|
|
261
|
-
experimentalLayout?: "
|
|
263
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
262
264
|
experimentalObjectFit?: string | undefined;
|
|
263
265
|
experimentalObjectPosition?: string | undefined;
|
|
264
266
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -278,7 +280,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
278
280
|
hostname?: string | undefined;
|
|
279
281
|
pathname?: string | undefined;
|
|
280
282
|
}[] | undefined;
|
|
281
|
-
experimentalLayout?: "
|
|
283
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
282
284
|
experimentalObjectFit?: string | undefined;
|
|
283
285
|
experimentalObjectPosition?: string | undefined;
|
|
284
286
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -726,7 +728,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
726
728
|
name: z.ZodString;
|
|
727
729
|
cssVariable: z.ZodString;
|
|
728
730
|
}, {
|
|
729
|
-
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "
|
|
731
|
+
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
730
732
|
optimizedFallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
731
733
|
}>, {
|
|
732
734
|
provider: z.ZodLiteral<"local">;
|
|
@@ -815,7 +817,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
815
817
|
featureSettings?: string | undefined;
|
|
816
818
|
variationSettings?: string | undefined;
|
|
817
819
|
}[]];
|
|
818
|
-
fallbacks?:
|
|
820
|
+
fallbacks?: string[] | undefined;
|
|
819
821
|
optimizedFallbacks?: boolean | undefined;
|
|
820
822
|
}, {
|
|
821
823
|
name: string;
|
|
@@ -852,7 +854,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
852
854
|
featureSettings?: string | undefined;
|
|
853
855
|
variationSettings?: string | undefined;
|
|
854
856
|
}[]];
|
|
855
|
-
fallbacks?:
|
|
857
|
+
fallbacks?: string[] | undefined;
|
|
856
858
|
optimizedFallbacks?: boolean | undefined;
|
|
857
859
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
858
860
|
name: z.ZodString;
|
|
@@ -866,7 +868,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
866
868
|
featureSettings: z.ZodOptional<z.ZodString>;
|
|
867
869
|
variationSettings: z.ZodOptional<z.ZodString>;
|
|
868
870
|
}, "style" | "weight">>, {
|
|
869
|
-
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "
|
|
871
|
+
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
870
872
|
optimizedFallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
871
873
|
}>, {
|
|
872
874
|
provider: z.ZodObject<{
|
|
@@ -889,7 +891,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
889
891
|
entrypoint: string | URL;
|
|
890
892
|
config?: Record<string, any> | undefined;
|
|
891
893
|
};
|
|
892
|
-
fallbacks?:
|
|
894
|
+
fallbacks?: string[] | undefined;
|
|
893
895
|
optimizedFallbacks?: boolean | undefined;
|
|
894
896
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
895
897
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -906,7 +908,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
906
908
|
entrypoint: string | URL;
|
|
907
909
|
config?: Record<string, any> | undefined;
|
|
908
910
|
};
|
|
909
|
-
fallbacks?:
|
|
911
|
+
fallbacks?: string[] | undefined;
|
|
910
912
|
optimizedFallbacks?: boolean | undefined;
|
|
911
913
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
912
914
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -958,7 +960,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
958
960
|
featureSettings?: string | undefined;
|
|
959
961
|
variationSettings?: string | undefined;
|
|
960
962
|
}[]];
|
|
961
|
-
fallbacks?:
|
|
963
|
+
fallbacks?: string[] | undefined;
|
|
962
964
|
optimizedFallbacks?: boolean | undefined;
|
|
963
965
|
} | {
|
|
964
966
|
name: string;
|
|
@@ -967,7 +969,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
967
969
|
entrypoint: string | URL;
|
|
968
970
|
config?: Record<string, any> | undefined;
|
|
969
971
|
};
|
|
970
|
-
fallbacks?:
|
|
972
|
+
fallbacks?: string[] | undefined;
|
|
971
973
|
optimizedFallbacks?: boolean | undefined;
|
|
972
974
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
973
975
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -1019,7 +1021,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1019
1021
|
featureSettings?: string | undefined;
|
|
1020
1022
|
variationSettings?: string | undefined;
|
|
1021
1023
|
}[]];
|
|
1022
|
-
fallbacks?:
|
|
1024
|
+
fallbacks?: string[] | undefined;
|
|
1023
1025
|
optimizedFallbacks?: boolean | undefined;
|
|
1024
1026
|
} | {
|
|
1025
1027
|
name: string;
|
|
@@ -1028,7 +1030,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1028
1030
|
entrypoint: string | URL;
|
|
1029
1031
|
config?: Record<string, any> | undefined;
|
|
1030
1032
|
};
|
|
1031
|
-
fallbacks?:
|
|
1033
|
+
fallbacks?: string[] | undefined;
|
|
1032
1034
|
optimizedFallbacks?: boolean | undefined;
|
|
1033
1035
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
1034
1036
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -1104,7 +1106,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1104
1106
|
hostname?: string | undefined;
|
|
1105
1107
|
pathname?: string | undefined;
|
|
1106
1108
|
}[];
|
|
1107
|
-
experimentalLayout?: "
|
|
1109
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
1108
1110
|
experimentalObjectFit?: string | undefined;
|
|
1109
1111
|
experimentalObjectPosition?: string | undefined;
|
|
1110
1112
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -1219,7 +1221,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1219
1221
|
featureSettings?: string | undefined;
|
|
1220
1222
|
variationSettings?: string | undefined;
|
|
1221
1223
|
}[]];
|
|
1222
|
-
fallbacks?:
|
|
1224
|
+
fallbacks?: string[] | undefined;
|
|
1223
1225
|
optimizedFallbacks?: boolean | undefined;
|
|
1224
1226
|
} | {
|
|
1225
1227
|
name: string;
|
|
@@ -1228,7 +1230,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1228
1230
|
entrypoint: string | URL;
|
|
1229
1231
|
config?: Record<string, any> | undefined;
|
|
1230
1232
|
};
|
|
1231
|
-
fallbacks?:
|
|
1233
|
+
fallbacks?: string[] | undefined;
|
|
1232
1234
|
optimizedFallbacks?: boolean | undefined;
|
|
1233
1235
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
1234
1236
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -1336,7 +1338,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1336
1338
|
hostname?: string | undefined;
|
|
1337
1339
|
pathname?: string | undefined;
|
|
1338
1340
|
}[] | undefined;
|
|
1339
|
-
experimentalLayout?: "
|
|
1341
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
1340
1342
|
experimentalObjectFit?: string | undefined;
|
|
1341
1343
|
experimentalObjectPosition?: string | undefined;
|
|
1342
1344
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -1478,7 +1480,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1478
1480
|
featureSettings?: string | undefined;
|
|
1479
1481
|
variationSettings?: string | undefined;
|
|
1480
1482
|
}[]];
|
|
1481
|
-
fallbacks?:
|
|
1483
|
+
fallbacks?: string[] | undefined;
|
|
1482
1484
|
optimizedFallbacks?: boolean | undefined;
|
|
1483
1485
|
} | {
|
|
1484
1486
|
name: string;
|
|
@@ -1487,7 +1489,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1487
1489
|
entrypoint: string | URL;
|
|
1488
1490
|
config?: Record<string, any> | undefined;
|
|
1489
1491
|
};
|
|
1490
|
-
fallbacks?:
|
|
1492
|
+
fallbacks?: string[] | undefined;
|
|
1491
1493
|
optimizedFallbacks?: boolean | undefined;
|
|
1492
1494
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
1493
1495
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -146,7 +146,7 @@ const AstroConfigSchema = z.object({
|
|
|
146
146
|
pathname: z.string().optional()
|
|
147
147
|
})
|
|
148
148
|
).default([]),
|
|
149
|
-
experimentalLayout: z.enum(["
|
|
149
|
+
experimentalLayout: z.enum(["constrained", "fixed", "full-width", "none"]).optional(),
|
|
150
150
|
experimentalObjectFit: z.string().optional(),
|
|
151
151
|
experimentalObjectPosition: z.string().optional(),
|
|
152
152
|
experimentalBreakpoints: z.array(z.number()).optional()
|
|
@@ -165,7 +165,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
165
165
|
hostname?: string | undefined;
|
|
166
166
|
pathname?: string | undefined;
|
|
167
167
|
}>, "many">>;
|
|
168
|
-
experimentalLayout: z.ZodOptional<z.ZodEnum<["
|
|
168
|
+
experimentalLayout: z.ZodOptional<z.ZodEnum<["constrained", "fixed", "full-width", "none"]>>;
|
|
169
169
|
experimentalObjectFit: z.ZodOptional<z.ZodString>;
|
|
170
170
|
experimentalObjectPosition: z.ZodOptional<z.ZodString>;
|
|
171
171
|
experimentalBreakpoints: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
@@ -185,7 +185,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
185
185
|
hostname?: string | undefined;
|
|
186
186
|
pathname?: string | undefined;
|
|
187
187
|
}[];
|
|
188
|
-
experimentalLayout?: "
|
|
188
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
189
189
|
experimentalObjectFit?: string | undefined;
|
|
190
190
|
experimentalObjectPosition?: string | undefined;
|
|
191
191
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -205,7 +205,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
205
205
|
hostname?: string | undefined;
|
|
206
206
|
pathname?: string | undefined;
|
|
207
207
|
}[] | undefined;
|
|
208
|
-
experimentalLayout?: "
|
|
208
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
209
209
|
experimentalObjectFit?: string | undefined;
|
|
210
210
|
experimentalObjectPosition?: string | undefined;
|
|
211
211
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -653,7 +653,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
653
653
|
name: z.ZodString;
|
|
654
654
|
cssVariable: z.ZodString;
|
|
655
655
|
}, {
|
|
656
|
-
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "
|
|
656
|
+
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
657
657
|
optimizedFallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
658
658
|
}>, {
|
|
659
659
|
provider: z.ZodLiteral<"local">;
|
|
@@ -742,7 +742,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
742
742
|
featureSettings?: string | undefined;
|
|
743
743
|
variationSettings?: string | undefined;
|
|
744
744
|
}[]];
|
|
745
|
-
fallbacks?:
|
|
745
|
+
fallbacks?: string[] | undefined;
|
|
746
746
|
optimizedFallbacks?: boolean | undefined;
|
|
747
747
|
}, {
|
|
748
748
|
name: string;
|
|
@@ -779,7 +779,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
779
779
|
featureSettings?: string | undefined;
|
|
780
780
|
variationSettings?: string | undefined;
|
|
781
781
|
}[]];
|
|
782
|
-
fallbacks?:
|
|
782
|
+
fallbacks?: string[] | undefined;
|
|
783
783
|
optimizedFallbacks?: boolean | undefined;
|
|
784
784
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
785
785
|
name: z.ZodString;
|
|
@@ -793,7 +793,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
793
793
|
featureSettings: z.ZodOptional<z.ZodString>;
|
|
794
794
|
variationSettings: z.ZodOptional<z.ZodString>;
|
|
795
795
|
}, "style" | "weight">>, {
|
|
796
|
-
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "
|
|
796
|
+
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
797
797
|
optimizedFallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
798
798
|
}>, {
|
|
799
799
|
provider: z.ZodObject<{
|
|
@@ -816,7 +816,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
816
816
|
entrypoint: string | URL;
|
|
817
817
|
config?: Record<string, any> | undefined;
|
|
818
818
|
};
|
|
819
|
-
fallbacks?:
|
|
819
|
+
fallbacks?: string[] | undefined;
|
|
820
820
|
optimizedFallbacks?: boolean | undefined;
|
|
821
821
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
822
822
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -833,7 +833,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
833
833
|
entrypoint: string | URL;
|
|
834
834
|
config?: Record<string, any> | undefined;
|
|
835
835
|
};
|
|
836
|
-
fallbacks?:
|
|
836
|
+
fallbacks?: string[] | undefined;
|
|
837
837
|
optimizedFallbacks?: boolean | undefined;
|
|
838
838
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
839
839
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -885,7 +885,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
885
885
|
featureSettings?: string | undefined;
|
|
886
886
|
variationSettings?: string | undefined;
|
|
887
887
|
}[]];
|
|
888
|
-
fallbacks?:
|
|
888
|
+
fallbacks?: string[] | undefined;
|
|
889
889
|
optimizedFallbacks?: boolean | undefined;
|
|
890
890
|
} | {
|
|
891
891
|
name: string;
|
|
@@ -894,7 +894,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
894
894
|
entrypoint: string | URL;
|
|
895
895
|
config?: Record<string, any> | undefined;
|
|
896
896
|
};
|
|
897
|
-
fallbacks?:
|
|
897
|
+
fallbacks?: string[] | undefined;
|
|
898
898
|
optimizedFallbacks?: boolean | undefined;
|
|
899
899
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
900
900
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -946,7 +946,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
946
946
|
featureSettings?: string | undefined;
|
|
947
947
|
variationSettings?: string | undefined;
|
|
948
948
|
}[]];
|
|
949
|
-
fallbacks?:
|
|
949
|
+
fallbacks?: string[] | undefined;
|
|
950
950
|
optimizedFallbacks?: boolean | undefined;
|
|
951
951
|
} | {
|
|
952
952
|
name: string;
|
|
@@ -955,7 +955,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
955
955
|
entrypoint: string | URL;
|
|
956
956
|
config?: Record<string, any> | undefined;
|
|
957
957
|
};
|
|
958
|
-
fallbacks?:
|
|
958
|
+
fallbacks?: string[] | undefined;
|
|
959
959
|
optimizedFallbacks?: boolean | undefined;
|
|
960
960
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
961
961
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -1109,7 +1109,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1109
1109
|
hostname?: string | undefined;
|
|
1110
1110
|
pathname?: string | undefined;
|
|
1111
1111
|
}[];
|
|
1112
|
-
experimentalLayout?: "
|
|
1112
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
1113
1113
|
experimentalObjectFit?: string | undefined;
|
|
1114
1114
|
experimentalObjectPosition?: string | undefined;
|
|
1115
1115
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -1224,7 +1224,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1224
1224
|
featureSettings?: string | undefined;
|
|
1225
1225
|
variationSettings?: string | undefined;
|
|
1226
1226
|
}[]];
|
|
1227
|
-
fallbacks?:
|
|
1227
|
+
fallbacks?: string[] | undefined;
|
|
1228
1228
|
optimizedFallbacks?: boolean | undefined;
|
|
1229
1229
|
} | {
|
|
1230
1230
|
name: string;
|
|
@@ -1233,7 +1233,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1233
1233
|
entrypoint: string | URL;
|
|
1234
1234
|
config?: Record<string, any> | undefined;
|
|
1235
1235
|
};
|
|
1236
|
-
fallbacks?:
|
|
1236
|
+
fallbacks?: string[] | undefined;
|
|
1237
1237
|
optimizedFallbacks?: boolean | undefined;
|
|
1238
1238
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
1239
1239
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -1341,7 +1341,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1341
1341
|
hostname?: string | undefined;
|
|
1342
1342
|
pathname?: string | undefined;
|
|
1343
1343
|
}[] | undefined;
|
|
1344
|
-
experimentalLayout?: "
|
|
1344
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
1345
1345
|
experimentalObjectFit?: string | undefined;
|
|
1346
1346
|
experimentalObjectPosition?: string | undefined;
|
|
1347
1347
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -1483,7 +1483,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1483
1483
|
featureSettings?: string | undefined;
|
|
1484
1484
|
variationSettings?: string | undefined;
|
|
1485
1485
|
}[]];
|
|
1486
|
-
fallbacks?:
|
|
1486
|
+
fallbacks?: string[] | undefined;
|
|
1487
1487
|
optimizedFallbacks?: boolean | undefined;
|
|
1488
1488
|
} | {
|
|
1489
1489
|
name: string;
|
|
@@ -1492,7 +1492,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1492
1492
|
entrypoint: string | URL;
|
|
1493
1493
|
config?: Record<string, any> | undefined;
|
|
1494
1494
|
};
|
|
1495
|
-
fallbacks?:
|
|
1495
|
+
fallbacks?: string[] | undefined;
|
|
1496
1496
|
optimizedFallbacks?: boolean | undefined;
|
|
1497
1497
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
1498
1498
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -1565,7 +1565,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1565
1565
|
hostname?: string | undefined;
|
|
1566
1566
|
pathname?: string | undefined;
|
|
1567
1567
|
}[];
|
|
1568
|
-
experimentalLayout?: "
|
|
1568
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
1569
1569
|
experimentalObjectFit?: string | undefined;
|
|
1570
1570
|
experimentalObjectPosition?: string | undefined;
|
|
1571
1571
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -1680,7 +1680,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1680
1680
|
featureSettings?: string | undefined;
|
|
1681
1681
|
variationSettings?: string | undefined;
|
|
1682
1682
|
}[]];
|
|
1683
|
-
fallbacks?:
|
|
1683
|
+
fallbacks?: string[] | undefined;
|
|
1684
1684
|
optimizedFallbacks?: boolean | undefined;
|
|
1685
1685
|
} | {
|
|
1686
1686
|
name: string;
|
|
@@ -1689,7 +1689,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1689
1689
|
entrypoint: string | URL;
|
|
1690
1690
|
config?: Record<string, any> | undefined;
|
|
1691
1691
|
};
|
|
1692
|
-
fallbacks?:
|
|
1692
|
+
fallbacks?: string[] | undefined;
|
|
1693
1693
|
optimizedFallbacks?: boolean | undefined;
|
|
1694
1694
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
1695
1695
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -1797,7 +1797,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1797
1797
|
hostname?: string | undefined;
|
|
1798
1798
|
pathname?: string | undefined;
|
|
1799
1799
|
}[] | undefined;
|
|
1800
|
-
experimentalLayout?: "
|
|
1800
|
+
experimentalLayout?: "none" | "fixed" | "constrained" | "full-width" | undefined;
|
|
1801
1801
|
experimentalObjectFit?: string | undefined;
|
|
1802
1802
|
experimentalObjectPosition?: string | undefined;
|
|
1803
1803
|
experimentalBreakpoints?: number[] | undefined;
|
|
@@ -1939,7 +1939,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1939
1939
|
featureSettings?: string | undefined;
|
|
1940
1940
|
variationSettings?: string | undefined;
|
|
1941
1941
|
}[]];
|
|
1942
|
-
fallbacks?:
|
|
1942
|
+
fallbacks?: string[] | undefined;
|
|
1943
1943
|
optimizedFallbacks?: boolean | undefined;
|
|
1944
1944
|
} | {
|
|
1945
1945
|
name: string;
|
|
@@ -1948,7 +1948,7 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1948
1948
|
entrypoint: string | URL;
|
|
1949
1949
|
config?: Record<string, any> | undefined;
|
|
1950
1950
|
};
|
|
1951
|
-
fallbacks?:
|
|
1951
|
+
fallbacks?: string[] | undefined;
|
|
1952
1952
|
optimizedFallbacks?: boolean | undefined;
|
|
1953
1953
|
display?: "fallback" | "auto" | "optional" | "block" | "swap" | undefined;
|
|
1954
1954
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
@@ -13,7 +13,7 @@ export declare function loadTSConfig(root: string | undefined, findUp?: boolean)
|
|
|
13
13
|
rawConfig: TSConfig;
|
|
14
14
|
}>>;
|
|
15
15
|
export declare function updateTSConfigForFramework(target: TSConfig, framework: frameworkWithTSSettings): TSConfig;
|
|
16
|
-
|
|
16
|
+
type StripEnums<T extends Record<string, any>> = {
|
|
17
17
|
[K in keyof T]: T[K] extends boolean ? T[K] : T[K] extends string ? T[K] : T[K] extends object ? T[K] : T[K] extends Array<any> ? T[K] : T[K] extends undefined ? undefined : any;
|
|
18
18
|
};
|
|
19
19
|
export interface TSConfig {
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -38,10 +38,6 @@ export declare const ROUTE_TYPE_HEADER = "X-Astro-Route-Type";
|
|
|
38
38
|
* The value of the `component` field of the default 404 page, which is used when there is no user-provided 404.astro page.
|
|
39
39
|
*/
|
|
40
40
|
export declare const DEFAULT_404_COMPONENT = "astro-default-404.astro";
|
|
41
|
-
/**
|
|
42
|
-
* The value of the `component` field of the default 500 page, which is used when there is no user-provided 404.astro page.
|
|
43
|
-
*/
|
|
44
|
-
export declare const DEFAULT_500_COMPONENT = "astro-default-500.astro";
|
|
45
41
|
/**
|
|
46
42
|
* A response with one of these status codes will create a redirect response.
|
|
47
43
|
*/
|
package/dist/core/constants.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
const ASTRO_VERSION = "5.7.
|
|
1
|
+
const ASTRO_VERSION = "5.7.6";
|
|
2
2
|
const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
|
|
3
3
|
const REWRITE_DIRECTIVE_HEADER_KEY = "X-Astro-Rewrite";
|
|
4
4
|
const REWRITE_DIRECTIVE_HEADER_VALUE = "yes";
|
|
5
5
|
const NOOP_MIDDLEWARE_HEADER = "X-Astro-Noop";
|
|
6
6
|
const ROUTE_TYPE_HEADER = "X-Astro-Route-Type";
|
|
7
7
|
const DEFAULT_404_COMPONENT = "astro-default-404.astro";
|
|
8
|
-
const DEFAULT_500_COMPONENT = "astro-default-500.astro";
|
|
9
8
|
const REDIRECT_STATUS_CODES = [301, 302, 303, 307, 308, 300, 304];
|
|
10
9
|
const REROUTABLE_STATUS_CODES = [404, 500];
|
|
11
10
|
const clientAddressSymbol = Symbol.for("astro.clientAddress");
|
|
@@ -24,7 +23,6 @@ const MIDDLEWARE_PATH_SEGMENT_NAME = "middleware";
|
|
|
24
23
|
export {
|
|
25
24
|
ASTRO_VERSION,
|
|
26
25
|
DEFAULT_404_COMPONENT,
|
|
27
|
-
DEFAULT_500_COMPONENT,
|
|
28
26
|
MIDDLEWARE_PATH_SEGMENT_NAME,
|
|
29
27
|
NOOP_MIDDLEWARE_HEADER,
|
|
30
28
|
REDIRECT_STATUS_CODES,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { AstroCookies } from './cookies.js';
|
|
2
|
-
export { attachCookiesToResponse, getSetCookiesFromResponse,
|
|
2
|
+
export { attachCookiesToResponse, getSetCookiesFromResponse, } from './response.js';
|
|
3
3
|
export type { AstroCookieSetOptions, AstroCookieGetOptions } from './cookies.js';
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { AstroCookies } from "./cookies.js";
|
|
2
2
|
import {
|
|
3
3
|
attachCookiesToResponse,
|
|
4
|
-
getSetCookiesFromResponse
|
|
5
|
-
responseHasCookies
|
|
4
|
+
getSetCookiesFromResponse
|
|
6
5
|
} from "./response.js";
|
|
7
6
|
export {
|
|
8
7
|
AstroCookies,
|
|
9
8
|
attachCookiesToResponse,
|
|
10
|
-
getSetCookiesFromResponse
|
|
11
|
-
responseHasCookies
|
|
9
|
+
getSetCookiesFromResponse
|
|
12
10
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AstroCookies } from './cookies.js';
|
|
2
2
|
export declare function attachCookiesToResponse(response: Response, cookies: AstroCookies): void;
|
|
3
|
-
export declare function responseHasCookies(response: Response): boolean;
|
|
4
3
|
export declare function getCookiesFromResponse(response: Response): AstroCookies | undefined;
|
|
5
4
|
export declare function getSetCookiesFromResponse(response: Response): Generator<string, string[]>;
|
|
@@ -3,9 +3,6 @@ const astroCookiesSymbol = Symbol.for("astro.cookies");
|
|
|
3
3
|
function attachCookiesToResponse(response, cookies) {
|
|
4
4
|
Reflect.set(response, astroCookiesSymbol, cookies);
|
|
5
5
|
}
|
|
6
|
-
function responseHasCookies(response) {
|
|
7
|
-
return Reflect.has(response, astroCookiesSymbol);
|
|
8
|
-
}
|
|
9
6
|
function getCookiesFromResponse(response) {
|
|
10
7
|
let cookies = Reflect.get(response, astroCookiesSymbol);
|
|
11
8
|
if (cookies != null) {
|
|
@@ -27,6 +24,5 @@ function* getSetCookiesFromResponse(response) {
|
|
|
27
24
|
export {
|
|
28
25
|
attachCookiesToResponse,
|
|
29
26
|
getCookiesFromResponse,
|
|
30
|
-
getSetCookiesFromResponse
|
|
31
|
-
responseHasCookies
|
|
27
|
+
getSetCookiesFromResponse
|
|
32
28
|
};
|
|
@@ -15,7 +15,7 @@ export interface Container {
|
|
|
15
15
|
handle: (req: http.IncomingMessage, res: http.ServerResponse) => void;
|
|
16
16
|
close: () => Promise<void>;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
interface CreateContainerParams {
|
|
19
19
|
logger: Logger;
|
|
20
20
|
settings: AstroSettings;
|
|
21
21
|
inlineConfig?: AstroInlineConfig;
|
|
@@ -24,3 +24,4 @@ export interface CreateContainerParams {
|
|
|
24
24
|
}
|
|
25
25
|
export declare function createContainer({ isRestart, logger, inlineConfig, settings, fs, }: CreateContainerParams): Promise<Container>;
|
|
26
26
|
export declare function startContainer({ settings, viteServer, logger, }: Container): Promise<AddressInfo>;
|
|
27
|
+
export {};
|
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 = "5.7.
|
|
25
|
+
const currentVersion = "5.7.6";
|
|
26
26
|
const isPrerelease = currentVersion.includes("-");
|
|
27
27
|
if (!isPrerelease) {
|
|
28
28
|
try {
|
package/dist/core/dev/index.d.ts
CHANGED
package/dist/core/dev/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { startContainer } from "./container.js";
|
|
2
2
|
import { default as default2 } from "./dev.js";
|
|
3
3
|
import { createContainerWithAutomaticRestart } from "./restart.js";
|
|
4
4
|
export {
|
|
5
|
-
createContainer,
|
|
6
5
|
createContainerWithAutomaticRestart,
|
|
7
6
|
default2 as default,
|
|
8
7
|
startContainer
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type nodeFs from 'node:fs';
|
|
2
2
|
import type { AstroInlineConfig } from '../../types/public/config.js';
|
|
3
3
|
import type { Container } from './container.js';
|
|
4
|
-
|
|
4
|
+
interface CreateContainerWithAutomaticRestart {
|
|
5
5
|
inlineConfig?: AstroInlineConfig;
|
|
6
6
|
fs: typeof nodeFs;
|
|
7
7
|
}
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
* Creates a CryptoKey object that can be used to encrypt any string.
|
|
3
3
|
*/
|
|
4
4
|
export declare function createKey(): Promise<CryptoKey>;
|
|
5
|
-
/**
|
|
6
|
-
* Get the encoded value of the ASTRO_KEY env var.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getEncodedEnvironmentKey(): string;
|
|
9
5
|
/**
|
|
10
6
|
* See if the environment variable key ASTRO_KEY is set.
|
|
11
7
|
*/
|
|
@@ -14,10 +10,6 @@ export declare function hasEnvironmentKey(): boolean;
|
|
|
14
10
|
* Get the environment variable key and decode it into a CryptoKey.
|
|
15
11
|
*/
|
|
16
12
|
export declare function getEnvironmentKey(): Promise<CryptoKey>;
|
|
17
|
-
/**
|
|
18
|
-
* Takes a key that has been serialized to an array of bytes and returns a CryptoKey
|
|
19
|
-
*/
|
|
20
|
-
export declare function importKey(bytes: Uint8Array): Promise<CryptoKey>;
|
|
21
13
|
/**
|
|
22
14
|
* Encodes a CryptoKey to base64 string, so that it can be embedded in JSON / JavaScript
|
|
23
15
|
*/
|
package/dist/core/encryption.js
CHANGED
|
@@ -27,10 +27,6 @@ async function getEnvironmentKey() {
|
|
|
27
27
|
const encodedKey = getEncodedEnvironmentKey();
|
|
28
28
|
return decodeKey(encodedKey);
|
|
29
29
|
}
|
|
30
|
-
async function importKey(bytes) {
|
|
31
|
-
const key = await crypto.subtle.importKey("raw", bytes, ALGORITHM, true, ["encrypt", "decrypt"]);
|
|
32
|
-
return key;
|
|
33
|
-
}
|
|
34
30
|
async function encodeKey(key) {
|
|
35
31
|
const exported = await crypto.subtle.exportKey("raw", key);
|
|
36
32
|
const encodedKey = encodeBase64(new Uint8Array(exported));
|
|
@@ -76,8 +72,6 @@ export {
|
|
|
76
72
|
decryptString,
|
|
77
73
|
encodeKey,
|
|
78
74
|
encryptString,
|
|
79
|
-
getEncodedEnvironmentKey,
|
|
80
75
|
getEnvironmentKey,
|
|
81
|
-
hasEnvironmentKey
|
|
82
|
-
importKey
|
|
76
|
+
hasEnvironmentKey
|
|
83
77
|
};
|
|
@@ -874,7 +874,8 @@ export declare const RedirectWithNoLocation: {
|
|
|
874
874
|
export declare const UnsupportedExternalRedirect: {
|
|
875
875
|
name: string;
|
|
876
876
|
title: string;
|
|
877
|
-
message: string;
|
|
877
|
+
message: (from: string, to: string) => string;
|
|
878
|
+
hint: string;
|
|
878
879
|
};
|
|
879
880
|
/**
|
|
880
881
|
* @docs
|
|
@@ -305,7 +305,8 @@ const RedirectWithNoLocation = {
|
|
|
305
305
|
const UnsupportedExternalRedirect = {
|
|
306
306
|
name: "UnsupportedExternalRedirect",
|
|
307
307
|
title: "Unsupported or malformed URL.",
|
|
308
|
-
message:
|
|
308
|
+
message: (from, to) => `The destination URL in the external redirect from "${from}" to "${to}" is unsupported.`,
|
|
309
|
+
hint: "An external redirect must start with http or https, and must be a valid URL."
|
|
309
310
|
};
|
|
310
311
|
const InvalidDynamicRoute = {
|
|
311
312
|
name: "InvalidDynamicRoute",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * as AstroErrorData from './errors-data.js';
|
|
2
2
|
export { AggregateError, AstroError, AstroUserError, CSSError, CompilerError, MarkdownError, isAstroError, } from './errors.js';
|
|
3
|
-
export type {
|
|
4
|
-
export { codeFrame } from './printer.js';
|
|
3
|
+
export type { ErrorWithMetadata } from './errors.js';
|
|
5
4
|
export { createSafeError, positionAt } from './utils.js';
|
|
6
5
|
export { errorMap } from './zod-error-map.js';
|