@squiz/render-runtime-lib 1.2.1-alpha.85 → 1.2.1-alpha.89
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/lib/component-runner/environment-setup.d.ts +17 -0
- package/lib/component-runner/index.d.ts +2 -1
- package/lib/component-runner/worker/WorkerPool.d.ts +1 -1
- package/lib/index.js +20581 -20035
- package/lib/index.js.map +3 -3
- package/lib/test/helpers/fixtures.d.ts +4 -1
- package/lib/utils/getFunctionDefinitionFromManifest.d.ts +2 -0
- package/lib/utils/getPreviewFilePath.d.ts +1 -0
- package/lib/utils/getPreviewFilePath.spec.d.ts +1 -0
- package/lib/utils/resolvePreviewOutput.d.ts +2 -0
- package/lib/utils/resolvePreviewOutput.spec.d.ts +1 -0
- package/lib/webserver/app.d.ts +2 -2
- package/lib/webserver/controllers/test/definition-tests.d.ts +1 -0
- package/lib/webserver/index.d.ts +2 -2
- package/lib/worker/worker-root.js +529 -30
- package/lib/worker/worker-root.js.map +3 -3
- package/package.json +4 -4
|
@@ -8,7 +8,10 @@ export declare class ComponentFixture {
|
|
|
8
8
|
version: string;
|
|
9
9
|
componentName: string;
|
|
10
10
|
}>;
|
|
11
|
-
static new(returnObj: string | object
|
|
11
|
+
static new(returnObj: string | object, { raw, environment }?: {
|
|
12
|
+
raw?: boolean | undefined;
|
|
13
|
+
environment?: string[] | undefined;
|
|
14
|
+
}): Promise<ExecuteComponentTask>;
|
|
12
15
|
static updateComponent(component: ExecuteComponentTask, output: string | object): Promise<ExecuteComponentTask>;
|
|
13
16
|
private static createFixtureDirectory;
|
|
14
17
|
private static createVersionDirectory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getPreviewFilePath(componentName: string, version: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/webserver/app.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Express } from 'express';
|
|
2
|
-
import {
|
|
3
|
-
export declare function setupApp(db?:
|
|
2
|
+
import { ComponentConnectionManager } from '@squiz/component-db-lib';
|
|
3
|
+
export declare function setupApp(db?: ComponentConnectionManager): Express;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function definitionRouteTests(url: string): void;
|
package/lib/webserver/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { type Server } from 'http';
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentConnectionManager } from '@squiz/component-db-lib';
|
|
4
4
|
export interface WebserverConfig {
|
|
5
5
|
port?: number;
|
|
6
6
|
rootUrl: string;
|
|
@@ -15,7 +15,7 @@ export declare class Webserver {
|
|
|
15
15
|
private static config;
|
|
16
16
|
static get(): Server;
|
|
17
17
|
static getConfig(): WebserverConfig;
|
|
18
|
-
static start(config: Omit<WebserverConfig, 'compiledConfig'>, db?:
|
|
18
|
+
static start(config: Omit<WebserverConfig, 'compiledConfig'>, db?: ComponentConnectionManager, compiledConfig?: Record<string, string>): Promise<Server>;
|
|
19
19
|
static stop(): void;
|
|
20
20
|
private static mergeConfig;
|
|
21
21
|
}
|