Socket
Book a DemoInstallSign in
Socket

@libretechnologyinc/nes

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libretechnologyinc/nes - npm Package Compare versions

Comparing version

to
11.2.9-LIBRE

36

lib/listener.js

@@ -385,3 +385,3 @@ 'use strict';

let actualPath = path;
let softPath = path;

@@ -397,7 +397,7 @@ if (match.route.onSubscribe) {

actualPath = result.override;
softPath = result.override;
}
}
await match.route.subscribers.add(socket, path, actualPath, match);
await match.route.subscribers.add(socket, path, softPath, match);
socket._subscriptions[path] = match.route.subscribers;

@@ -529,3 +529,3 @@ };

internals.Subscribers.prototype.add = async function (socket, path, actualPath, match) {
internals.Subscribers.prototype.add = async function (socket, path, softPath, match) {

@@ -535,9 +535,9 @@ const item = this._items[socket.id];

item.paths[path] = {
path: actualPath,
actualPath,
path,
softPath,
params: match.params
};
item.paths[actualPath] = {
item.paths[softPath] = {
path,
actualPath,
softPath,
params: match.params

@@ -551,9 +551,9 @@ };

[path]: {
path: actualPath,
actualPath,
path: softPath,
softPath,
params: match.params
},
[actualPath]: {
[softPath]: {
path,
actualPath,
softPath,
params: match.params

@@ -601,6 +601,8 @@ }

else {
if (item.paths[path].path !== path) {
delete(item.paths[path].path);
}
delete(item.paths[path]);
const {
path: p,
softPath: sp
} = item.paths[path];
delete item.paths[p];
delete item.paths[sp];
}

@@ -650,3 +652,3 @@

await each(item.socket, item.paths[path].actualPath);
await each(item.socket, item.paths[path].path);
}

@@ -653,0 +655,0 @@ };

{
"name": "@libretechnologyinc/nes",
"description": "Fork of WebSocket adapter plugin for hapi routes",
"version": "11.2.8-LIBRE",
"version": "11.2.9-LIBRE",
"repository": "git://github.com/libretechnologyinc/nes",

@@ -6,0 +6,0 @@ "main": "lib/index.js",