@wixc3/engine-core
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -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
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
255257
4308