@awesomeness-js/server 1.1.10 → 1.1.11
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/build/build.js +4 -1
- package/build/postBuild.js +4 -1
- package/index.js +6 -4
- package/package.json +1 -1
- package/src/componentAndPageMemory.js +269 -0
- package/src/componentDependencies.js +9 -19
- package/src/extractUiComponentRefs.js +55 -0
- package/src/fetchPage.js +79 -4
- package/src/resolveRealCasePath.js +0 -4
- package/tests/componentAndPageMemory.test.js +171 -0
- package/tests/fetchPage.test.js +257 -0
- package/tests/fixtures/site-and-components/components/card/index.js +88 -0
- package/tests/fixtures/site-and-components/components/cardMain/index.js +86 -0
- package/tests/fixtures/site-and-components/components/cardMount/index.js +86 -0
- package/tests/fixtures/site-and-components/components/pageInit/index.js +86 -0
- package/tests/fixtures/site-and-components/components/pageScript/index.js +86 -0
- package/tests/fixtures/site-and-components/components/pageWidget/index.js +86 -0
- package/tests/fixtures/site-and-components/sites/site-a/pages/home/init.js +78 -0
- package/tests/fixtures/site-and-components/sites/site-a/pages/home/js/index.js +60 -0
- package/tests/setup.js +1 -0
- package/tsconfig.json +18 -0
- package/types/errors.d.ts +0 -0
- package/types/index.d.ts +109 -0
- package/types/src/applicationMap.d.ts +1 -0
- package/types/src/awesomenessNormalizeRequest.d.ts +27 -0
- package/types/src/brotliJsonResponse.d.ts +10 -0
- package/types/src/checkAccess.d.ts +5 -0
- package/types/src/componentAndPageMemory.d.ts +75 -0
- package/types/src/componentDependencies.d.ts +6 -0
- package/types/src/config.d.ts +7 -0
- package/types/src/extractUiComponentRefs.d.ts +5 -0
- package/types/src/fetchPage.d.ts +4 -0
- package/types/src/getConfig.d.ts +2 -0
- package/types/src/getMD.d.ts +1 -0
- package/types/src/init.d.ts +2 -0
- package/types/src/koa/attachAwesomenessRequest.d.ts +1 -0
- package/types/src/koa/cors.d.ts +1 -0
- package/types/src/koa/errorHandler.d.ts +1 -0
- package/types/src/koa/finalFormat.d.ts +1 -0
- package/types/src/koa/jsonBodyParser.d.ts +1 -0
- package/types/src/koa/routeRequest.d.ts +1 -0
- package/types/src/koa/serverUp.d.ts +1 -0
- package/types/src/koa/staticFiles.d.ts +1 -0
- package/types/src/koa/timeout.d.ts +1 -0
- package/types/src/pageInfo.d.ts +8 -0
- package/types/src/reRoute.d.ts +7 -0
- package/types/src/resolveRealCasePath.d.ts +1 -0
- package/types/src/specialPaths.d.ts +3 -0
- package/types/src/start.d.ts +1 -0
- package/types/src/validateRequest.d.ts +2 -0
- package/types/src/ws/handlers.d.ts +4 -0
- package/types/src/ws/index.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function cors(ctx: any, next: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function errorHandler(ctx: any, next: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function finalFormat(awesomenessRequest: any, ctx: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function jsonBodyParser(ctx: any, next: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function routeRequest(ctx: any, next: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function serverUp(): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function staticFiles(ctx: any, next: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function timeout(ms: any): (ctx: any, next: any) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function resolveRealCasePath(inputPath: any, returnAbsolute?: boolean): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function start(): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function attachWs(server: any, path?: string): any;
|