Socket
Socket
Sign inDemoInstall

@wixc3/engine-core-node

Package Overview
Dependencies
Maintainers
68
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 33.2.0 to 34.0.0

dist/constants.d.ts

3

dist/index.d.ts
export * from './ws-node-host';
export * from './ipc-host';
export * from './local-env-inititializer';
export * from './types';
export * from './get-application-metadata';
export * from './constants';
//# sourceMappingURL=index.d.ts.map

@@ -20,2 +20,5 @@ "use strict";

__exportStar(require("./local-env-inititializer"), exports);
__exportStar(require("./types"), exports);
__exportStar(require("./get-application-metadata"), exports);
__exportStar(require("./constants"), exports);
//# sourceMappingURL=index.js.map

5

dist/local-env-inititializer.d.ts

@@ -1,5 +0,4 @@

import type { InitializerOptions } from '@wixc3/engine-core';
export declare const LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID = "__engine-local-env__";
import { InitializerOptions } from '@wixc3/engine-core';
/**
* when running the engine application, an active environment should be provided to this runtime, with the id {@link LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID}
* when running the engine application, an active environment should be provided to this runtime, with the id {@link ENGINE_ROOT_ENVIRONMENT_ID}
* when running engine application using [\@wixc3/engineer](../../engineer), it is done in the node environments manager

@@ -6,0 +5,0 @@ */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.localNodeEnvironmentInitializer = exports.LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID = void 0;
exports.LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID = '__engine-local-env__';
exports.localNodeEnvironmentInitializer = void 0;
const constants_1 = require("./constants");
/**
* when running the engine application, an active environment should be provided to this runtime, with the id {@link LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID}
* when running the engine application, an active environment should be provided to this runtime, with the id {@link ENGINE_ROOT_ENVIRONMENT_ID}
* when running engine application using [\@wixc3/engineer](../../engineer), it is done in the node environments manager
*/
const localNodeEnvironmentInitializer = ({ communication: com, env }) => {
const baseEnvHost = com.getEnvironmentHost(exports.LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID);
if (!baseEnvHost) {
throw new Error(`Registration for ${exports.LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID} didn't happen. Cannot connect to remote environment`);
const rootEnvHost = com.getEnvironmentHost(constants_1.ENGINE_ROOT_ENVIRONMENT_ID);
if (!rootEnvHost) {
throw new Error(`Registration for ${constants_1.ENGINE_ROOT_ENVIRONMENT_ID} didn't happen. Cannot connect to remote environment`);
}
if (!com.getEnvironmentHost(env.env)) {
com.registerEnv(env.env, baseEnvHost);
com.registerEnv(env.env, rootEnvHost);
}

@@ -17,0 +17,0 @@ return {

{
"name": "@wixc3/engine-core-node",
"version": "33.2.0",
"version": "34.0.0",
"main": "dist/index.js",

@@ -11,3 +11,3 @@ "types": "dist/index.d.ts",

"dependencies": {
"@wixc3/engine-core": "^33.2.0",
"@wixc3/engine-core": "^34.0.0",
"create-listening-server": "^2.1.0",

@@ -14,0 +14,0 @@ "express": "^4.18.2",

export * from './ws-node-host';
export * from './ipc-host';
export * from './local-env-inititializer';
export * from './types';
export * from './get-application-metadata';
export * from './constants';

@@ -1,18 +0,18 @@

import type { InitializerOptions } from '@wixc3/engine-core';
import { InitializerOptions } from '@wixc3/engine-core';
export const LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID = '__engine-local-env__';
import { ENGINE_ROOT_ENVIRONMENT_ID } from './constants';
/**
* when running the engine application, an active environment should be provided to this runtime, with the id {@link LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID}
* when running the engine application, an active environment should be provided to this runtime, with the id {@link ENGINE_ROOT_ENVIRONMENT_ID}
* when running engine application using [\@wixc3/engineer](../../engineer), it is done in the node environments manager
*/
export const localNodeEnvironmentInitializer = ({ communication: com, env }: InitializerOptions) => {
const baseEnvHost = com.getEnvironmentHost(LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID)!;
if (!baseEnvHost) {
const rootEnvHost = com.getEnvironmentHost(ENGINE_ROOT_ENVIRONMENT_ID)!;
if (!rootEnvHost) {
throw new Error(
`Registration for ${LOCAL_ENVIRONMENT_INITIALIZER_ENV_ID} didn't happen. Cannot connect to remote environment`
`Registration for ${ENGINE_ROOT_ENVIRONMENT_ID} didn't happen. Cannot connect to remote environment`
);
}
if (!com.getEnvironmentHost(env.env)) {
com.registerEnv(env.env, baseEnvHost);
com.registerEnv(env.env, rootEnvHost);
}

@@ -19,0 +19,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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