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

@nohost/router

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nohost/router - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

13

lib/util.js

@@ -86,16 +86,17 @@ const http = require('http');

}
const usableServers = [];
let list = await Promise.all(servers.map(async (server) => {
const usableServers = await Promise.all(servers.map(async (server) => {
const workerNum = await getWorkerNum(server);
if (workerNum) {
server.workerNum = workerNum;
usableServers.push(server);
return `${server.host}:${server.port}/${workerNum}`;
return server;
}
}));
list = list.filter(noop);
servers = usableServers.filter(noop);
const list = servers.map((server) => {
return `${server.host}:${server.port}/${server.workerNum}`;
});
return list.length && {
servers: usableServers,
servers,
base64: Buffer.from(list.join()).toString('base64'),
};
};
{
"name": "@nohost/router",
"version": "0.6.2",
"version": "0.6.3",
"description": "Nohost cluster router",

@@ -36,5 +36,4 @@ "main": "lib/",

"@nohost/connect": "^1.2.1",
"crc32": "^0.2.2",
"hparser": "^0.3.0"
}
}
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