@nohost/router
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
321
13509
- Removedcrc32@^0.2.2
- Removedcrc32@0.2.2(transitive)