@builder.io/qwik-city
Advanced tools
Comparing version 0.0.101 to 0.0.102
@@ -47,3 +47,3 @@ /// <reference path="./modules.d.ts" /> | ||
*/ | ||
export declare type DocumentHead<T = unknown> = DocumentHeadValue | ((props: DocumentHeadProps<T>) => DocumentHeadValue); | ||
export declare type DocumentHead<T = unknown> = DocumentHeadValue | ((props: DocumentHeadProps<GetEndpointData<T>>) => DocumentHeadValue); | ||
@@ -180,2 +180,3 @@ /** | ||
readonly headings?: ContentHeading[]; | ||
readonly onStaticGenerate?: StaticGenerateHandler; | ||
} | ||
@@ -286,3 +287,3 @@ | ||
*/ | ||
export declare type RouteData = [pattern: RegExp, loaders: ModuleLoader[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[]]; | ||
export declare type RouteData = [pattern: RegExp, loaders: ModuleLoader[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[], originalPathname: string]; | ||
@@ -324,5 +325,14 @@ /** | ||
declare interface StaticGenerate { | ||
params?: RouteParams[]; | ||
} | ||
/** | ||
* @alpha | ||
*/ | ||
export declare type StaticGenerateHandler = () => Promise<StaticGenerate> | StaticGenerate; | ||
/** | ||
* @alpha | ||
*/ | ||
export declare const useContent: () => ContentState; | ||
@@ -329,0 +339,0 @@ |
@@ -31,3 +31,3 @@ import type { Render } from '@builder.io/qwik/server'; | ||
*/ | ||
declare type DocumentHead<T = unknown> = DocumentHeadValue | ((props: DocumentHeadProps<T>) => DocumentHeadValue); | ||
declare type DocumentHead<T = unknown> = DocumentHeadValue | ((props: DocumentHeadProps<GetEndpointData<T>>) => DocumentHeadValue); | ||
@@ -129,2 +129,4 @@ /** | ||
declare type GetEndpointData<T> = T extends RequestHandler<infer U> ? U : T; | ||
declare interface LayoutModule extends RouteModule { | ||
@@ -149,2 +151,3 @@ readonly default: any; | ||
readonly headings?: ContentHeading[]; | ||
readonly onStaticGenerate?: StaticGenerateHandler; | ||
} | ||
@@ -264,3 +267,3 @@ | ||
*/ | ||
declare type RouteData = [pattern: RegExp, loaders: ModuleLoader[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[]]; | ||
declare type RouteData = [pattern: RegExp, loaders: ModuleLoader[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[], originalPathname: string]; | ||
@@ -293,2 +296,11 @@ /** | ||
declare interface StaticGenerate { | ||
params?: RouteParams[]; | ||
} | ||
/** | ||
* @alpha | ||
*/ | ||
declare type StaticGenerateHandler = () => Promise<StaticGenerate> | StaticGenerate; | ||
export { } |
@@ -34,3 +34,3 @@ import type { NextFunction } from 'express'; | ||
*/ | ||
declare type DocumentHead<T = unknown> = DocumentHeadValue | ((props: DocumentHeadProps<T>) => DocumentHeadValue); | ||
declare type DocumentHead<T = unknown> = DocumentHeadValue | ((props: DocumentHeadProps<GetEndpointData<T>>) => DocumentHeadValue); | ||
@@ -123,2 +123,4 @@ /** | ||
declare type GetEndpointData<T> = T extends RequestHandler<infer U> ? U : T; | ||
declare interface LayoutModule extends RouteModule { | ||
@@ -143,2 +145,3 @@ readonly default: any; | ||
readonly headings?: ContentHeading[]; | ||
readonly onStaticGenerate?: StaticGenerateHandler; | ||
} | ||
@@ -261,3 +264,3 @@ | ||
*/ | ||
declare type RouteData = [pattern: RegExp, loaders: ModuleLoader[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[]]; | ||
declare type RouteData = [pattern: RegExp, loaders: ModuleLoader[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[], originalPathname: string]; | ||
@@ -290,2 +293,11 @@ /** | ||
declare interface StaticGenerate { | ||
params?: RouteParams[]; | ||
} | ||
/** | ||
* @alpha | ||
*/ | ||
declare type StaticGenerateHandler = () => Promise<StaticGenerate> | StaticGenerate; | ||
export { } |
@@ -31,3 +31,3 @@ import type { Render } from '@builder.io/qwik/server'; | ||
*/ | ||
declare type DocumentHead<T = unknown> = DocumentHeadValue | ((props: DocumentHeadProps<T>) => DocumentHeadValue); | ||
declare type DocumentHead<T = unknown> = DocumentHeadValue | ((props: DocumentHeadProps<GetEndpointData<T>>) => DocumentHeadValue); | ||
@@ -127,2 +127,4 @@ /** | ||
declare type GetEndpointData<T> = T extends RequestHandler<infer U> ? U : T; | ||
declare interface LayoutModule extends RouteModule { | ||
@@ -147,2 +149,3 @@ readonly default: any; | ||
readonly headings?: ContentHeading[]; | ||
readonly onStaticGenerate?: StaticGenerateHandler; | ||
} | ||
@@ -262,3 +265,3 @@ | ||
*/ | ||
declare type RouteData = [pattern: RegExp, loaders: ModuleLoader[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[]]; | ||
declare type RouteData = [pattern: RegExp, loaders: ModuleLoader[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[]] | [pattern: RegExp, loaders: ModuleLoader[], paramNames: string[], originalPathname: string]; | ||
@@ -291,2 +294,11 @@ /** | ||
declare interface StaticGenerate { | ||
params?: RouteParams[]; | ||
} | ||
/** | ||
* @alpha | ||
*/ | ||
declare type StaticGenerateHandler = () => Promise<StaticGenerate> | StaticGenerate; | ||
export { } |
{ | ||
"name": "@builder.io/qwik-city", | ||
"version": "0.0.101", | ||
"version": "0.0.102", | ||
"description": "The meta-framework for Qwik.", | ||
@@ -25,2 +25,6 @@ "main": "./index.qwik.cjs", | ||
}, | ||
"./static/node": { | ||
"import": "./static/node/index.mjs", | ||
"require": "./static/node/index.cjs" | ||
}, | ||
"./vite": { | ||
@@ -47,6 +51,6 @@ "import": "./vite/index.mjs", | ||
}, | ||
"private": false, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"private": false, | ||
"files": [ | ||
@@ -58,4 +62,5 @@ "index.d.ts", | ||
"middleware", | ||
"static", | ||
"vite" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2134095
21
62296
23
18