@bananacool467/authtics-host 0.2.6 → 0.2.7
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/.agents/memory/MEMORY.md +1 -0
- package/.agents/memory/node-child-process-tests.md +10 -0
- package/README.md +131 -6
- package/assets/dev_panel.jpg +0 -0
- package/assets/result.jpg +0 -0
- package/dist/BrowserAPIs.d.ts +10 -0
- package/dist/BrowserAPIs.js +53 -0
- package/dist/cli.d.ts +5 -3
- package/dist/cli.js +408 -58
- package/dist/config.d.ts +5 -0
- package/dist/config.js +15 -1
- package/dist/devPanel.d.ts +11 -0
- package/dist/devPanel.js +358 -56
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/renderEngine.d.ts +4 -3
- package/dist/renderEngine.js +265 -68
- package/dist/rendererTempFiles.d.ts +10 -1
- package/dist/rendererTempFiles.js +101 -17
- package/dist/superBuildOutput.d.ts +9 -0
- package/dist/superBuildOutput.js +175 -0
- package/dist/svg_assets/slope_top_left.d.ts +1 -0
- package/dist/svg_assets/slope_top_left.js +4 -0
- package/package.json +8 -1
- package/scripts/post-merge.sh +5 -0
- package/svg_assets/slope_top_left.tsx +19 -0
- package/tests/source-map-access.test.mjs +167 -0
- package/tests/source-map-location.test.mjs +237 -0
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
export type BuildStyle = 'default' | 'super';
|
|
2
|
+
export type BuildTrigger = 'default' | 'prebuilt';
|
|
1
3
|
export interface AuthticsConfig {
|
|
2
4
|
port?: number;
|
|
5
|
+
buildStyle?: BuildStyle;
|
|
6
|
+
buildTrigger?: BuildTrigger;
|
|
3
7
|
ssr?: boolean;
|
|
4
8
|
renderType?: 'ssr' | 'csr' | 'ssg' | 'srtws';
|
|
5
9
|
dir?: string;
|
|
@@ -14,5 +18,6 @@ export interface AuthticsConfig {
|
|
|
14
18
|
autoFileDir?: string;
|
|
15
19
|
hasPausedRoute?: boolean;
|
|
16
20
|
patchForSsr?: boolean;
|
|
21
|
+
patchForServer?: boolean;
|
|
17
22
|
}
|
|
18
23
|
export declare function defineConfig(config: AuthticsConfig): AuthticsConfig;
|
package/dist/config.js
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
export function defineConfig(config) {
|
|
2
|
+
if (config.buildStyle == undefined)
|
|
3
|
+
config.buildStyle = 'default';
|
|
4
|
+
if (config.buildStyle !== 'default' && config.buildStyle !== 'super') {
|
|
5
|
+
throw new Error('[HostJS] Invalid buildStyle. Expected "default" or "super".');
|
|
6
|
+
}
|
|
7
|
+
if (config.buildTrigger == undefined)
|
|
8
|
+
config.buildTrigger = 'default';
|
|
9
|
+
if (config.buildTrigger !== 'default' && config.buildTrigger !== 'prebuilt') {
|
|
10
|
+
throw new Error('[HostJS] Invalid buildTrigger. Expected "default" or "prebuilt".');
|
|
11
|
+
}
|
|
2
12
|
if (config.autoPage == undefined)
|
|
3
13
|
config.autoPage = true;
|
|
4
14
|
if (config.autoFile == undefined)
|
|
@@ -9,10 +19,14 @@ export function defineConfig(config) {
|
|
|
9
19
|
config.compilerType = 'esbuild';
|
|
10
20
|
if (config.patchForSsr === undefined)
|
|
11
21
|
config.patchForSsr = false;
|
|
22
|
+
else
|
|
23
|
+
console.warn("[HostJS] Using \"patchForSsr\" in Authtics Host Config is deprecated. Use \"patchForServer\" instead.");
|
|
24
|
+
if (config.patchForServer === undefined)
|
|
25
|
+
config.patchForServer = config.patchForSsr || false;
|
|
12
26
|
if (config.ssr == undefined)
|
|
13
27
|
config.ssr = true;
|
|
14
28
|
else
|
|
15
|
-
console.warn("Using \"ssr\" in Authtics Host Config is deprecated. Use \"renderType\" instead.");
|
|
29
|
+
console.warn("[HostJS] Using \"ssr\" in Authtics Host Config is deprecated. Use \"renderType\" instead.");
|
|
16
30
|
if (config.renderType == undefined)
|
|
17
31
|
config.renderType = config.ssr ? 'ssr' : 'csr';
|
|
18
32
|
if (config.port == undefined || config.port == 0)
|
package/dist/devPanel.d.ts
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
+
export declare function mapGeneratedLocation(location: ErrorLocation): Promise<ErrorLocation>;
|
|
2
|
+
interface ErrorLocation {
|
|
3
|
+
file: string;
|
|
4
|
+
line: number;
|
|
5
|
+
column: number;
|
|
6
|
+
length?: number;
|
|
7
|
+
sourceText?: string;
|
|
8
|
+
lines?: string[];
|
|
9
|
+
mapped?: boolean;
|
|
10
|
+
}
|
|
1
11
|
export default function DevPanel(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|