Comparing version 1.0.0 to 1.1.0
@@ -69,3 +69,3 @@ 'use strict' | ||
try { | ||
nodes = normaliseNodes(res) | ||
nodes = normaliseNodes(service, res) | ||
} catch (e) { | ||
@@ -83,6 +83,6 @@ err = e | ||
return (serviceCache[service] = on(watcher, 'change').then(normaliseNodes)) | ||
return (serviceCache[service] = on(watcher, 'change').then(nodes => normaliseNodes(service, nodes))) | ||
} | ||
function normaliseNodes (nodes) { | ||
function normaliseNodes (service, nodes) { | ||
var ret = nodes.map(function (node) { | ||
@@ -97,3 +97,3 @@ return { | ||
if (!ret.length) { | ||
throw new Error("couldn't find any healthy service instances") | ||
throw new Error("couldn't find any healthy service instances of "+service) | ||
} | ||
@@ -100,0 +100,0 @@ |
{ | ||
"name": "lsq", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "The programmatic interface to the lsq.io runtime environment.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
4095