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

@wixc3/engine-core

Package Overview
Dependencies
Maintainers
142
Versions
333
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/engine-core - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

3

cjs/com/communication.d.ts

@@ -14,2 +14,3 @@ import { Message } from './message-types';

private resolvedContexts;
isServer: boolean;
private rootEnvId;

@@ -29,3 +30,3 @@ private rootEnvName;

private options;
constructor(host: Target, id: string, topology?: Record<string, string>, resolvedContexts?: Record<string, string>, options?: ICommunicationOptions);
constructor(host: Target, id: string, topology?: Record<string, string>, resolvedContexts?: Record<string, string>, isServer?: boolean, options?: ICommunicationOptions);
/**

@@ -32,0 +33,0 @@ * Registers environments that spawned in the same execution context as the root environment.

@@ -13,5 +13,6 @@ "use strict";

class Communication {
constructor(host, id, topology = {}, resolvedContexts = {}, options) {
constructor(host, id, topology = {}, resolvedContexts = {}, isServer = false, options) {
this.topology = topology;
this.resolvedContexts = resolvedContexts;
this.isServer = isServer;
this.idsCounter = new helpers_1.MultiCounter();

@@ -18,0 +19,0 @@ this.callbackTimeout = 60000 * 2; // 2 minutes

@@ -42,10 +42,10 @@ "use strict";

if (host) {
communication = new communication_1.Communication(host, id || host.name || 'main', topology, resolvedContexts, communicationOptions);
communication = new communication_1.Communication(host, id || host.name || 'main', topology, resolvedContexts, true, communicationOptions);
}
else {
communication = new communication_1.Communication(new base_host_1.BaseHost(), id || 'main', topology, resolvedContexts, communicationOptions);
communication = new communication_1.Communication(new base_host_1.BaseHost(), id || 'main', topology, resolvedContexts, true, communicationOptions);
}
}
else {
communication = new communication_1.Communication(self, id || self.name || 'main', topology, resolvedContexts, communicationOptions);
communication = new communication_1.Communication(self, id || self.name || 'main', topology, resolvedContexts, false, communicationOptions);
}

@@ -52,0 +52,0 @@ const loggerService = new logger_service_1.LoggerService(loggerTransports, { environment: communication.getEnvironmentId() }, { severity: loggerSeverity, maxLogMessages, logToConsole });

{
"name": "@wixc3/engine-core",
"version": "5.0.0",
"version": "5.0.1",
"main": "cjs/index.js",

@@ -5,0 +5,0 @@ "types": "cjs/index.d.ts",

@@ -61,2 +61,3 @@ import {

private resolvedContexts: Record<string, string> = {},
public isServer = false,
options?: ICommunicationOptions

@@ -63,0 +64,0 @@ ) {

@@ -89,2 +89,3 @@ import { BaseHost } from './com/base-host';

resolvedContexts,
true,
communicationOptions

@@ -98,2 +99,3 @@ );

resolvedContexts,
true,
communicationOptions

@@ -108,2 +110,3 @@ );

resolvedContexts,
false,
communicationOptions

@@ -110,0 +113,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