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.1 to 0.6.2

4

lib/index.js

@@ -56,3 +56,3 @@ const url = require('url');

_getStatus(space, group, env) {
const { base64 } = this._result;
const { base64, servers } = this._result;
if (!this._base64 || this._base64 !== base64) {

@@ -66,3 +66,3 @@ this._statusCache = {};

if (!status) {
const options = parseUrl(`${this._servers[0].statusUrl}${query}`);
const options = parseUrl(`${servers[0].statusUrl}${query}`);
options.headers = { 'x-nohost-servers': base64 };

@@ -69,0 +69,0 @@ status = getJSON(options);

@@ -6,3 +6,2 @@ const http = require('http');

const TIMEOUT = 2000;
let curServers;
const noop = (_) => _;

@@ -98,10 +97,6 @@

list = list.filter(noop);
if (!list.length) {
return curServers;
}
curServers = {
return list.length && {
servers: usableServers,
base64: Buffer.from(list.join()).toString('base64'),
};
return curServers;
};
{
"name": "@nohost/router",
"version": "0.6.1",
"version": "0.6.2",
"description": "Nohost cluster router",

@@ -5,0 +5,0 @@ "main": "lib/",

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