Socket
Socket
Sign inDemoInstall

@wixc3/engine-core-node

Package Overview
Dependencies
Maintainers
143
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 7.8.3 to 7.8.4

9

cjs/ws-node-host.js

@@ -37,6 +37,9 @@ "use strict";

if (message.origin !== message.from) {
console.warn(`Warning: ${JSON.stringify(message)} has different origin and sender.
This means that the message was forwarded not properly`);
const tenantId = `${socket.id}/${message.origin}`;
this.socketToEnvId.set(tenantId, { socket, clientID: message.origin });
message.origin = tenantId;
}
message.origin = socket.id;
else {
message.origin = socket.id;
}
message.from = socket.id;

@@ -43,0 +46,0 @@ this.emitMessageHandlers(message);

{
"name": "@wixc3/engine-core-node",
"version": "7.8.3",
"version": "7.8.4",
"main": "cjs/index.js",

@@ -15,3 +15,3 @@ "types": "cjs/index.d.ts",

"dependencies": {
"@wixc3/engine-core": "^7.8.3",
"@wixc3/engine-core": "^7.8.4",
"create-listening-server": "^1.0.0",

@@ -18,0 +18,0 @@ "express": "^4.17.1",

@@ -67,6 +67,8 @@ import { BaseHost } from '@wixc3/engine-core';

if (message.origin !== message.from) {
console.warn(`Warning: ${JSON.stringify(message)} has different origin and sender.
This means that the message was forwarded not properly`);
const tenantId = `${socket.id}/${message.origin}`;
this.socketToEnvId.set(tenantId, { socket, clientID: message.origin });
message.origin = tenantId;
} else {
message.origin = socket.id;
}
message.origin = socket.id;
message.from = socket.id;

@@ -73,0 +75,0 @@ this.emitMessageHandlers(message);

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