New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-zookeeper-client

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-zookeeper-client - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

CHANGELOG.md

10

lib/WatcherManager.js

@@ -20,3 +20,4 @@ /**

function registerWatcher(self, type, path, watcher) {
var watchers = self[type + 'Watchers'];
var watchers = self[type + 'Watchers'],
watcherExists = false;

@@ -30,4 +31,9 @@ Path.validate(path);

watchers[path] = watchers[path] || new events.EventEmitter();
watcherExists = watchers[path].listeners('notification').some(function (l) {
// This is rather hacky since node.js wraps the listeners using an
// internal function.
return l === watcher || l.listener === watcher;
});
if (watchers[path].listeners('notification').indexOf(watcher) === -1) {
if (!watcherExists) {
watchers[path].once('notification', watcher);

@@ -34,0 +40,0 @@ }

2

package.json
{
"name": "node-zookeeper-client",
"version": "0.2.0",
"version": "0.2.1",
"description": "A pure Javascript ZooKeeper client for Node.js.",

@@ -5,0 +5,0 @@ "author": "Alex Guan <alex.guan@gmail.com>",

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