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

connection-manager

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

connection-manager - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

19

lib/manager.js

@@ -238,17 +238,17 @@ /**

} else if (typeof o !== 'object') {
return cb('first parameter object not defined.');
return cb('connection manager requires a connection object');
}
if (typeof o.id !== 'string') {
return cb('missing `id` string property');
return cb('connection object must contain a `id` string property');
} else if (typeof o.credentials !== 'object') {
return cb('missing `credentials` object property');
return cb('connection object must contain a `credentials` object property');
} else if (typeof o.listeners !== 'object') {
return cb('missing `listeners` object property');
return cb('connection object must contain a `listeners` object property ['+typeof o.listeners+']');
} else if (typeof o.addListener !== 'function') {
return cb('missing `addListener` function property');
return cb('connection object must contain a `addListener` function property');
} else if (typeof o.removeListener !== 'function') {
return cb('missing `removeListener` function property');
return cb('connection object must contain a `removeListener` function property');
} else if (typeof o.disconnect !== 'function') {
return cb('missing `disconnect` function property');
return cb('connection object must contain a `disconnect` function property');
}

@@ -417,4 +417,2 @@

/**

@@ -487,3 +485,2 @@ * Function: move

/**

@@ -506,3 +503,2 @@ * Function: exists

/**

@@ -529,3 +525,2 @@ * Function: referenceCount

/**

@@ -532,0 +527,0 @@ * Function: getKeys

{
"name": "connection-manager",
"version": "1.0.4",
"version": "1.0.5",
"description": "Store, checkout & keepalive active connections from multiple locations in your code-base.",

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

# node-connection-manager
[![Greenkeeper badge](https://badges.greenkeeper.io/silverbucket/node-connection-manager.svg)](https://greenkeeper.io/)
[![Build Status](http://img.shields.io/travis/silverbucket/node-connection-manager.svg?style=flat)](http://travis-ci.org/silverbucket/node-connection-manager)

@@ -4,0 +6,0 @@ [![Code Climate](http://img.shields.io/codeclimate/github/silverbucket/node-connection-manager.svg?style=flat)](https://codeclimate.com/github/silverbucket/node-connection-manager)

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