Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wixc3/engine-runtime-node

Package Overview
Dependencies
Maintainers
67
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/engine-runtime-node - npm Package Compare versions

Comparing version 44.0.0 to 44.0.1

3

dist/node-env-manager.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc