@wixc3/engine-runtime-node
Advanced tools
Comparing version 49.4.1 to 49.4.2
@@ -27,3 +27,3 @@ import { MultiCounter, parseInjectRuntimeConfigConfig, } from '@wixc3/engine-core'; | ||
openEnvironments = new SetMultiMap(); | ||
constructor(importMeta, featureEnvironmentsMapping, configMapping, loadModules = requireModules) { | ||
constructor(importMeta, featureEnvironmentsMapping, configMapping, loadModules = importModules) { | ||
this.importMeta = importMeta; | ||
@@ -156,3 +156,3 @@ this.featureEnvironmentsMapping = featureEnvironmentsMapping; | ||
} | ||
async function requireModules(modulePaths) { | ||
async function importModules(modulePaths) { | ||
const loadedModules = []; | ||
@@ -159,0 +159,0 @@ for (const modulePath of modulePaths) { |
{ | ||
"name": "@wixc3/engine-runtime-node", | ||
"version": "49.4.1", | ||
"version": "49.4.2", | ||
"type": "module", | ||
@@ -17,3 +17,3 @@ "main": "dist/index.js", | ||
"@wixc3/common": "^18.0.0", | ||
"@wixc3/engine-core": "^49.4.1", | ||
"@wixc3/engine-core": "^49.4.2", | ||
"@wixc3/isomorphic-worker": "^2.0.0", | ||
@@ -20,0 +20,0 @@ "@wixc3/patterns": "^18.0.0", |
@@ -51,3 +51,3 @@ import { | ||
private configMapping: ConfigurationEnvironmentMapping, | ||
private loadModules: (modulePaths: string[]) => Promise<unknown> = requireModules, | ||
private loadModules: (modulePaths: string[]) => Promise<unknown> = importModules, | ||
) {} | ||
@@ -211,3 +211,3 @@ public async autoLaunch(runtimeOptions = parseRuntimeOptions(), serverOptions: ILaunchHttpServerOptions = {}) { | ||
async function requireModules(modulePaths: string[]) { | ||
async function importModules(modulePaths: string[]) { | ||
const loadedModules: unknown[] = []; | ||
@@ -214,0 +214,0 @@ for (const modulePath of modulePaths) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
176607
Updated@wixc3/engine-core@^49.4.2