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

lsq

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lsq - npm Package Compare versions

Comparing version 0.0.7 to 1.0.0

20

index.js

@@ -66,4 +66,16 @@ 'use strict'

var watcher = consul.watch(consul.health.service, { service: service, passing: true }, function (err, res) {
if (err) delete serviceCache[service]
else serviceCache[service] = normaliseNodes(res)
var nodes
if (!err) {
try {
nodes = normaliseNodes(res)
} catch (e) {
err = e
}
}
if (err) {
delete serviceCache[service]
} else {
serviceCache[service] = nodes
}
})

@@ -83,2 +95,6 @@

if (!ret.length) {
throw new Error("couldn't find any healthy service instances")
}
ret.random = function () {

@@ -85,0 +101,0 @@ return this[Math.random() * this.length | 0]

2

package.json
{
"name": "lsq",
"version": "0.0.7",
"version": "1.0.0",
"description": "The programmatic interface to the lsq.io runtime environment.",

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

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