@getcronit/pylon 3.0.0-canary-20250328152343.40b45e7f1112cde4b3669206a81904062ae419cf → 3.0.0-canary-20250407115039.56009eb223a513a3bc338c169e69e23adc1bad96
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/app/pylon-handler.d.ts +1 -1
- package/dist/components/global-error-page.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +283 -346
- package/dist/index.js.map +4 -4
- package/dist/pages/index.d.ts +2 -0
- package/dist/pages/index.js +109 -41
- package/dist/pages/index.js.map +4 -4
- package/dist/pages/internals.d.ts +6 -0
- package/dist/plugins/use-pages/build/app-utils.d.ts +7 -6
- package/package.json +1 -1
- package/dist/plugins/use-pages/setup/app-loader.d.ts +0 -13
|
@@ -8,6 +8,6 @@ interface PylonHandlerOptions {
|
|
|
8
8
|
};
|
|
9
9
|
config?: PylonConfig;
|
|
10
10
|
}
|
|
11
|
-
export declare const executeConfig: (config: PylonConfig) => void
|
|
11
|
+
export declare const executeConfig: (config: PylonConfig) => Promise<void>;
|
|
12
12
|
export declare const handler: (options: PylonHandlerOptions) => (c: Context) => Promise<Response>;
|
|
13
13
|
export {};
|
|
@@ -3,5 +3,5 @@ interface GlobalErrorProps {
|
|
|
3
3
|
digest?: string;
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
export default function GlobalError({ error }: GlobalErrorProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default function GlobalError({ error, ...rest }: GlobalErrorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { MiddlewareHandler } from 'hono';
|
|
|
14
14
|
import { BuildContext, BuildOptions } from 'esbuild';
|
|
15
15
|
export type Plugin<PluginContext extends Record<string, any> = {}, TServerContext extends Record<string, any> = {}, TUserContext = {}> = YogaPlugin<PluginContext, TServerContext, TUserContext> & {
|
|
16
16
|
middleware?: MiddlewareHandler<Env>;
|
|
17
|
-
setup?: (app: typeof pylonApp) => void;
|
|
17
|
+
setup?: (app: typeof pylonApp) => Promise<void> | void;
|
|
18
18
|
build?: <T extends BuildOptions>(args: {
|
|
19
19
|
onBuild: () => void;
|
|
20
20
|
}) => Promise<Omit<BuildContext<T>, 'serve'>>;
|