@squiz/render-runtime-lib 1.2.1-alpha.80 → 1.2.1-alpha.83
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.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE "component_set" (
|
|
3
|
+
"web_path" VARCHAR(128) NOT NULL,
|
|
4
|
+
"display_name" VARCHAR(128) NOT NULL,
|
|
5
|
+
"description" VARCHAR,
|
|
6
|
+
"env_vars" JSONB,
|
|
7
|
+
"headers" JSONB,
|
|
8
|
+
|
|
9
|
+
CONSTRAINT "component_set_pkey" PRIMARY KEY ("web_path")
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
-- CreateTable
|
|
13
|
+
CREATE TABLE "component_set_component_version" (
|
|
14
|
+
"component_set_web_path" VARCHAR(128) NOT NULL,
|
|
15
|
+
"component_name" VARCHAR(128) NOT NULL,
|
|
16
|
+
"component_version" VARCHAR(128) NOT NULL,
|
|
17
|
+
|
|
18
|
+
CONSTRAINT "component_set_component_version_pkey" PRIMARY KEY ("component_set_web_path", "component_name", "component_version")
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
-- AddForeignKey
|
|
22
|
+
ALTER TABLE "component_set_component_version" ADD CONSTRAINT "component_set_web_path_fkey" FOREIGN KEY ("component_set_web_path") REFERENCES "component_set"("web_path") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
23
|
+
ALTER TABLE "component_set_component_version" ADD CONSTRAINT "component_version_componet_name_version_fkey" FOREIGN KEY ("component_name", "component_version") REFERENCES "component_version"("component_name", "version") ON DELETE CASCADE ON UPDATE CASCADE;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/webserver/index.d.ts
CHANGED
|
@@ -5,13 +5,17 @@ export interface WebserverConfig {
|
|
|
5
5
|
port?: number;
|
|
6
6
|
rootUrl: string;
|
|
7
7
|
shouldRunMigrations: boolean;
|
|
8
|
+
compiledConfig?: {
|
|
9
|
+
buildVersion?: string;
|
|
10
|
+
buildBranch?: string;
|
|
11
|
+
};
|
|
8
12
|
}
|
|
9
13
|
export declare class Webserver {
|
|
10
14
|
private static singleton;
|
|
11
15
|
private static config;
|
|
12
16
|
static get(): Server;
|
|
13
17
|
static getConfig(): WebserverConfig;
|
|
14
|
-
static start(config: WebserverConfig, db?: ConnectionManager): Promise<Server>;
|
|
18
|
+
static start(config: Omit<WebserverConfig, 'compiledConfig'>, db?: ConnectionManager, compiledConfig?: Record<string, string>): Promise<Server>;
|
|
15
19
|
static stop(): void;
|
|
16
20
|
private static mergeConfig;
|
|
17
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/render-runtime-lib",
|
|
3
|
-
"version": "1.2.1-alpha.
|
|
3
|
+
"version": "1.2.1-alpha.83",
|
|
4
4
|
"description": "Package of rendering utilities for components",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"lib": "lib"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@squiz/component-db-lib": "^1.2.1-alpha.
|
|
13
|
-
"@squiz/component-lib": "^1.2.1-alpha.
|
|
12
|
+
"@squiz/component-db-lib": "^1.2.1-alpha.83",
|
|
13
|
+
"@squiz/component-lib": "^1.2.1-alpha.83",
|
|
14
14
|
"bunyan": "1.8.15",
|
|
15
15
|
"compression": "1.7.4",
|
|
16
16
|
"dotenv": "16.0.1",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"lint": "eslint ./src --ext .ts",
|
|
53
53
|
"compile": "node ./build.js && tsc"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "402082c4cafabf7545e988c6fb08c87d67e7c48c"
|
|
56
56
|
}
|