Socket
Socket
Sign inDemoInstall

@wixc3/engine-core-node

Package Overview
Dependencies
Maintainers
85
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 29.0.0 to 29.0.1

7

dist/ws-node-host.js

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

const fromId = nameSpace(message.from);
if (message.type === 'listen') {
message.handlerId += originId;
}
this.socketToEnvId.set(fromId, { socket, clientID: message.from });

@@ -72,7 +69,3 @@ this.socketToEnvId.set(originId, { socket, clientID: message.origin });

const { socket, clientID } = this.socketToEnvId.get(data.to);
const tenantId = data.to;
data.to = clientID;
if (data.type === 'event') {
data.handlerId = data.handlerId.slice(0, data.handlerId.length - tenantId.length);
}
socket.emit('message', data);

@@ -79,0 +72,0 @@ }

4

package.json
{
"name": "@wixc3/engine-core-node",
"version": "29.0.0",
"version": "29.0.1",
"main": "dist/index.js",

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

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

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

@@ -32,7 +32,3 @@ import type io from 'socket.io';

const { socket, clientID } = this.socketToEnvId.get(data.to)!;
const tenantId = data.to;
data.to = clientID;
if (data.type === 'event') {
data.handlerId = data.handlerId.slice(0, data.handlerId.length - tenantId.length);
}
socket.emit('message', data);

@@ -66,5 +62,2 @@ } else {

const fromId = nameSpace(message.from);
if (message.type === 'listen') {
message.handlerId += originId;
}
this.socketToEnvId.set(fromId, { socket, clientID: message.from });

@@ -71,0 +64,0 @@ this.socketToEnvId.set(originId, { socket, clientID: message.origin });

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