@blinkk/root 1.3.25 → 1.3.27
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/cli.d.ts +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/middleware.d.ts +2 -2
- package/dist/node.d.ts +1 -1
- package/dist/render.d.ts +1 -1
- package/dist/render.js +13 -0
- package/dist/render.js.map +1 -1
- package/dist/{types-YM5ppLFI.d.ts → types-lq4RNa8J.d.ts} +8 -0
- package/package.json +1 -1
package/dist/cli.d.ts
CHANGED
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Route } from './types-
|
|
2
|
-
export { i as ConfigureServerHook, j as ConfigureServerOptions, C as ContentSecurityPolicyConfig, o as GetStaticPaths, G as GetStaticProps, s as Handler, H as HandlerContext, v as HandlerRenderFn, u as HandlerRenderOptions, L as LocaleGroup, M as MultipartFile, N as NextFunction, k as Plugin, P as PluginHooks, q as Request, p as RequestMiddleware, r as Response, b as RootConfig, e as RootHeaderConfig, c as RootI18nConfig, d as RootRedirectConfig, f as RootSecurityConfig, g as RootServerConfig, a as RootUserConfig, t as RouteModule, n as RouteParams, S as Server, w as Sitemap, x as SitemapItem, X as XFrameOptionsConfig, l as configureServerPlugins, h as defineConfig, m as getVitePlugins } from './types-
|
|
1
|
+
import { R as Route } from './types-lq4RNa8J.js';
|
|
2
|
+
export { i as ConfigureServerHook, j as ConfigureServerOptions, C as ContentSecurityPolicyConfig, o as GetStaticPaths, G as GetStaticProps, s as Handler, H as HandlerContext, v as HandlerRenderFn, u as HandlerRenderOptions, L as LocaleGroup, M as MultipartFile, N as NextFunction, k as Plugin, P as PluginHooks, q as Request, p as RequestMiddleware, r as Response, b as RootConfig, e as RootHeaderConfig, c as RootI18nConfig, d as RootRedirectConfig, f as RootSecurityConfig, g as RootServerConfig, a as RootUserConfig, t as RouteModule, n as RouteParams, S as Server, w as Sitemap, x as SitemapItem, X as XFrameOptionsConfig, l as configureServerPlugins, h as defineConfig, m as getVitePlugins } from './types-lq4RNa8J.js';
|
|
3
3
|
import * as preact$1 from 'preact';
|
|
4
4
|
import { FunctionalComponent, ComponentChildren } from 'preact';
|
|
5
5
|
import 'express';
|
package/dist/middleware.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as RootConfig, q as Request, r as Response, N as NextFunction } from './types-
|
|
2
|
-
export { y as SESSION_COOKIE, A as SaveSessionOptions, D as Session, z as SessionMiddlewareOptions, B as sessionMiddleware } from './types-
|
|
1
|
+
import { b as RootConfig, q as Request, r as Response, N as NextFunction } from './types-lq4RNa8J.js';
|
|
2
|
+
export { y as SESSION_COOKIE, A as SaveSessionOptions, D as Session, z as SessionMiddlewareOptions, B as sessionMiddleware } from './types-lq4RNa8J.js';
|
|
3
3
|
import { RequestHandler } from 'express';
|
|
4
4
|
import 'preact';
|
|
5
5
|
import 'vite';
|
package/dist/node.d.ts
CHANGED
package/dist/render.d.ts
CHANGED
package/dist/render.js
CHANGED
|
@@ -13311,6 +13311,14 @@ var Renderer = class {
|
|
|
13311
13311
|
translations
|
|
13312
13312
|
});
|
|
13313
13313
|
}
|
|
13314
|
+
/**
|
|
13315
|
+
* Constructs and returns the project's sitemap.
|
|
13316
|
+
*
|
|
13317
|
+
* The sitemap is used to:
|
|
13318
|
+
* - determine all paths to build in SSG mode
|
|
13319
|
+
* - display links on the dev server's 404 page
|
|
13320
|
+
* - construct alternates for localized URL paths
|
|
13321
|
+
*/
|
|
13314
13322
|
async getSitemap() {
|
|
13315
13323
|
const sitemap = {};
|
|
13316
13324
|
const sitemapItemAlts = {};
|
|
@@ -13341,6 +13349,11 @@ var Renderer = class {
|
|
|
13341
13349
|
hrefLang,
|
|
13342
13350
|
alts: sitemapItemAlts[defaultUrlPath]
|
|
13343
13351
|
};
|
|
13352
|
+
if (sitemap[routePath.urlPath]) {
|
|
13353
|
+
console.warn(
|
|
13354
|
+
`multiple routes generate the same path: ${routePath.urlPath}. ensure each route generates a unique path.`
|
|
13355
|
+
);
|
|
13356
|
+
}
|
|
13344
13357
|
sitemap[routePath.urlPath] = sitemapItem;
|
|
13345
13358
|
});
|
|
13346
13359
|
});
|