@wixc3/engine-runtime-node
Advanced tools
Comparing version 45.2.0 to 45.2.1
@@ -1,2 +0,2 @@ | ||
import { AnyEnvironment, MultiCounter } from '@wixc3/engine-core'; | ||
import { AnyEnvironment, BaseHost, IRunOptions, MultiCounter } from '@wixc3/engine-core'; | ||
import { IDisposable, SetMultiMap } from '@wixc3/patterns'; | ||
@@ -33,6 +33,7 @@ import { ILaunchHttpServerOptions } from './launch-http-server'; | ||
}>; | ||
closeAll(): Promise<void>; | ||
private runFeatureEnvironments; | ||
private loadEnvironmentConfigurations; | ||
private createEnvironmentFileUrl; | ||
private initializeWorkerEnvironment; | ||
initializeWorkerEnvironment(envName: string, runtimeOptions: IRunOptions, host: BaseHost | MessagePort, verbose: boolean): Promise<() => Promise<void>>; | ||
collectMetricsFromAllOpenEnvironments(): Promise<{ | ||
@@ -39,0 +40,0 @@ marks: PerformanceEntry[]; |
@@ -66,3 +66,3 @@ "use strict"; | ||
disposeMetricsListener(); | ||
await Promise.all([...this.openEnvironments.values()].map((env) => env.dispose())); | ||
await this.closeAll(); | ||
await host.dispose(); | ||
@@ -82,2 +82,5 @@ await close(); | ||
} | ||
async closeAll() { | ||
await Promise.all([...this.openEnvironments.values()].map((env) => env.dispose())); | ||
} | ||
async runFeatureEnvironments(verbose, runtimeOptions, host) { | ||
@@ -84,0 +87,0 @@ const featureName = runtimeOptions.get('feature'); |
{ | ||
"name": "@wixc3/engine-runtime-node", | ||
"version": "45.2.0", | ||
"version": "45.2.1", | ||
"main": "dist/index.js", | ||
@@ -15,3 +15,3 @@ "exports": { | ||
"@wixc3/common": "^17.1.1", | ||
"@wixc3/engine-core": "^45.2.0", | ||
"@wixc3/engine-core": "^45.2.1", | ||
"@wixc3/isomorphic-worker": "^1.2.5", | ||
@@ -18,0 +18,0 @@ "@wixc3/patterns": "^17.1.1", |
import { | ||
AnyEnvironment, | ||
BaseHost, | ||
ConfigModule, | ||
@@ -94,3 +95,3 @@ IRunOptions, | ||
disposeMetricsListener(); | ||
await Promise.all([...this.openEnvironments.values()].map((env) => env.dispose())); | ||
await this.closeAll(); | ||
await host.dispose(); | ||
@@ -112,2 +113,6 @@ await close(); | ||
async closeAll() { | ||
await Promise.all([...this.openEnvironments.values()].map((env) => env.dispose())); | ||
} | ||
private async runFeatureEnvironments( | ||
@@ -168,6 +173,6 @@ verbose: boolean, | ||
private async initializeWorkerEnvironment( | ||
async initializeWorkerEnvironment( | ||
envName: string, | ||
runtimeOptions: IRunOptions, | ||
host: WsServerHost, | ||
host: BaseHost | MessagePort, | ||
verbose: boolean, | ||
@@ -194,2 +199,3 @@ ) { | ||
} | ||
async collectMetricsFromAllOpenEnvironments() { | ||
@@ -220,3 +226,3 @@ const metrics = { | ||
function connectWorkerToHost(envName: string, worker: ReturnType<typeof runWorker>, host: WsServerHost) { | ||
function connectWorkerToHost(envName: string, worker: ReturnType<typeof runWorker>, host: BaseHost | MessagePort) { | ||
type AnyMessage = { data?: any }; | ||
@@ -223,0 +229,0 @@ return new Promise<RunningNodeEnvironment>((res, rej) => { |
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
274446
4496
2
Updated@wixc3/engine-core@^45.2.1