@wixc3/engine-runtime-node
Advanced tools
Comparing version 44.0.0 to 44.0.1
import { AnyEnvironment, MultiCounter } from '@wixc3/engine-core'; | ||
import { IDisposable, SafeDisposable, SetMultiMap } from '@wixc3/patterns'; | ||
import { ILaunchHttpServerOptions } from './launch-http-server'; | ||
import { IStaticFeatureDefinition, PerformanceMetrics } from './types'; | ||
@@ -29,3 +30,3 @@ export type ConfigFilePath = string; | ||
}, featureEnvironmentsMapping: FeatureEnvironmentMapping, configMapping: ConfigurationEnvironmentMapping, loadModule?: (modulePath: string) => Promise<unknown>); | ||
autoLaunch(runtimeOptions?: Map<string, string | boolean | undefined>): Promise<{ | ||
autoLaunch(runtimeOptions?: Map<string, string | boolean | undefined>, serverOptions?: ILaunchHttpServerOptions): Promise<{ | ||
port: number; | ||
@@ -32,0 +33,0 @@ }>; |
@@ -27,3 +27,3 @@ "use strict"; | ||
} | ||
async autoLaunch(runtimeOptions = parseRuntimeOptions()) { | ||
async autoLaunch(runtimeOptions = parseRuntimeOptions(), serverOptions = {}) { | ||
process.env.ENGINE_FLOW_V2_DIST_URL = this.importMeta.url; | ||
@@ -34,3 +34,3 @@ const disposeListener = (0, metrics_utils_1.bindMetricsListener)(() => this.collectMetricsFromAllOpenEnvironments()); | ||
const staticDirPath = (0, node_url_1.fileURLToPath)(new URL('../web', this.importMeta.url)); | ||
const { port, socketServer, app, close } = await (0, launch_http_server_1.launchEngineHttpServer)({ staticDirPath }); | ||
const { port, socketServer, app, close } = await (0, launch_http_server_1.launchEngineHttpServer)({ staticDirPath, ...serverOptions }); | ||
app.get('/configs/*', (req, res) => { | ||
@@ -37,0 +37,0 @@ const reqEnv = req.query.env; |
{ | ||
"name": "@wixc3/engine-runtime-node", | ||
"version": "44.0.0", | ||
"version": "44.0.1", | ||
"main": "dist/index.js", | ||
@@ -15,3 +15,3 @@ "exports": { | ||
"@wixc3/common": "^16.1.3", | ||
"@wixc3/engine-core": "^44.0.0", | ||
"@wixc3/engine-core": "^44.0.1", | ||
"@wixc3/patterns": "^16.1.3", | ||
@@ -18,0 +18,0 @@ "create-listening-server": "^2.1.0", |
@@ -13,3 +13,3 @@ import { | ||
import { resolveEnvironments } from './environments'; | ||
import { launchEngineHttpServer } from './launch-http-server'; | ||
import { ILaunchHttpServerOptions, launchEngineHttpServer } from './launch-http-server'; | ||
import { IStaticFeatureDefinition, PerformanceMetrics } from './types'; | ||
@@ -52,3 +52,3 @@ import { runWorker } from './worker-thread-initializer2'; | ||
} | ||
public async autoLaunch(runtimeOptions = parseRuntimeOptions()) { | ||
public async autoLaunch(runtimeOptions = parseRuntimeOptions(), serverOptions: ILaunchHttpServerOptions = {}) { | ||
process.env.ENGINE_FLOW_V2_DIST_URL = this.importMeta.url; | ||
@@ -60,3 +60,3 @@ const disposeListener = bindMetricsListener(() => this.collectMetricsFromAllOpenEnvironments()); | ||
const staticDirPath = fileURLToPath(new URL('../web', this.importMeta.url)); | ||
const { port, socketServer, app, close } = await launchEngineHttpServer({ staticDirPath }); | ||
const { port, socketServer, app, close } = await launchEngineHttpServer({ staticDirPath, ...serverOptions }); | ||
@@ -63,0 +63,0 @@ app.get<[string]>('/configs/*', (req, res) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
267693
4378
Updated@wixc3/engine-core@^44.0.1