full site update
This commit is contained in:
3
node_modules/astro/dist/virtual-modules/container.d.ts
generated
vendored
3
node_modules/astro/dist/virtual-modules/container.d.ts
generated
vendored
@@ -1,4 +1,5 @@
|
||||
import type { AstroRenderer, SSRLoadedRenderer } from '../@types/astro.js';
|
||||
import type { AstroRenderer } from '../types/public/integrations.js';
|
||||
import type { SSRLoadedRenderer } from '../types/public/internal.js';
|
||||
/**
|
||||
* Use this function to provide renderers to the `AstroContainer`:
|
||||
*
|
||||
|
2
node_modules/astro/dist/virtual-modules/container.js
generated
vendored
2
node_modules/astro/dist/virtual-modules/container.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
async function loadRenderers(renderers) {
|
||||
const loadedRenderers = await Promise.all(
|
||||
renderers.map(async (renderer) => {
|
||||
const mod = await import(renderer.serverEntrypoint);
|
||||
const mod = await import(renderer.serverEntrypoint.toString());
|
||||
if (typeof mod.default !== "undefined") {
|
||||
return {
|
||||
...renderer,
|
||||
|
6
node_modules/astro/dist/virtual-modules/i18n.d.ts
generated
vendored
6
node_modules/astro/dist/virtual-modules/i18n.d.ts
generated
vendored
@@ -1,6 +1,8 @@
|
||||
import type { APIContext, AstroConfig, MiddlewareHandler, ValidRedirectStatus } from '../@types/astro.js';
|
||||
import * as I18nInternals from '../i18n/index.js';
|
||||
import type { RedirectToFallback } from '../i18n/index.js';
|
||||
import * as I18nInternals from '../i18n/index.js';
|
||||
import type { MiddlewareHandler } from '../types/public/common.js';
|
||||
import type { AstroConfig, ValidRedirectStatus } from '../types/public/config.js';
|
||||
import type { APIContext } from '../types/public/context.js';
|
||||
export { normalizeTheLocale, toCodes, toPaths } from '../i18n/index.js';
|
||||
export type GetLocaleOptions = I18nInternals.GetLocaleOptions;
|
||||
/**
|
||||
|
4
node_modules/astro/dist/virtual-modules/i18n.js
generated
vendored
4
node_modules/astro/dist/virtual-modules/i18n.js
generated
vendored
@@ -131,10 +131,10 @@ if (i18n?.routing === "manual") {
|
||||
fallbackType = toFallbackType(customOptions);
|
||||
const manifest = {
|
||||
...i18n,
|
||||
fallback: void 0,
|
||||
strategy,
|
||||
domainLookupTable: {},
|
||||
fallbackType
|
||||
fallbackType,
|
||||
fallback: i18n.fallback
|
||||
};
|
||||
return I18nInternals.createMiddleware(manifest, base, trailingSlash, format);
|
||||
};
|
||||
|
12
node_modules/astro/dist/virtual-modules/live-config.d.ts
generated
vendored
Normal file
12
node_modules/astro/dist/virtual-modules/live-config.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export * as z from 'zod';
|
||||
export { defineLiveCollection } from '../content/config.js';
|
||||
export declare const getCollection: () => never;
|
||||
export declare const render: () => never;
|
||||
export declare const getEntry: () => never;
|
||||
export declare const getEntryBySlug: () => never;
|
||||
export declare const getDataEntryById: () => never;
|
||||
export declare const getEntries: () => never;
|
||||
export declare const reference: () => never;
|
||||
export declare const getLiveCollection: () => never;
|
||||
export declare const getLiveEntry: () => never;
|
||||
export declare const defineCollection: () => never;
|
37
node_modules/astro/dist/virtual-modules/live-config.js
generated
vendored
Normal file
37
node_modules/astro/dist/virtual-modules/live-config.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import * as z from "zod";
|
||||
import { defineLiveCollection } from "../content/config.js";
|
||||
function createErrorFunction(message) {
|
||||
return () => {
|
||||
const error = new Error(`The ${message}() function is not available in live config files.`);
|
||||
const stackLines = error.stack?.split("\n");
|
||||
if (stackLines && stackLines.length > 1) {
|
||||
stackLines.splice(1, 1);
|
||||
error.stack = stackLines.join("\n");
|
||||
}
|
||||
throw error;
|
||||
};
|
||||
}
|
||||
const getCollection = createErrorFunction("getCollection");
|
||||
const render = createErrorFunction("render");
|
||||
const getEntry = createErrorFunction("getEntry");
|
||||
const getEntryBySlug = createErrorFunction("getEntryBySlug");
|
||||
const getDataEntryById = createErrorFunction("getDataEntryById");
|
||||
const getEntries = createErrorFunction("getEntries");
|
||||
const reference = createErrorFunction("reference");
|
||||
const getLiveCollection = createErrorFunction("getLiveCollection");
|
||||
const getLiveEntry = createErrorFunction("getLiveEntry");
|
||||
const defineCollection = createErrorFunction("defineCollection");
|
||||
export {
|
||||
defineCollection,
|
||||
defineLiveCollection,
|
||||
getCollection,
|
||||
getDataEntryById,
|
||||
getEntries,
|
||||
getEntry,
|
||||
getEntryBySlug,
|
||||
getLiveCollection,
|
||||
getLiveEntry,
|
||||
reference,
|
||||
render,
|
||||
z
|
||||
};
|
Reference in New Issue
Block a user