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

hare

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hare - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

10

lib/index.js

@@ -23,5 +23,6 @@ "use strict";

var connect = (function connectWrapper() {
var connectionPromise, connection;
var connectionPromise, connection, isConnected = false;
function ready() {
isConnected = true;
LOGGER.debug("connected");

@@ -40,2 +41,8 @@ connection.removeListener("error", connectionError);

function checkConnected() {
if (!isConnected) {
connectionError(new Error("Connection closed prematurely, please check your credentials"));
}
}
return function connect(url, opts) {

@@ -47,2 +54,3 @@ if (!connectionPromise) {

connection.once('error', connectionError);
connection.once("close", checkConnected);
}

@@ -49,0 +57,0 @@ return connectionPromise;

4

package.json
{
"name": "hare",
"version": "0.0.1",
"version": "0.0.2",
"description": "Wrapper around amqp to make common patterns easier",

@@ -17,3 +17,3 @@ "main": "index.js",

"amqp": "~0.1.3",
"comb": "~0.1.10"
"comb": "~0.2.0"
},

@@ -20,0 +20,0 @@ "devDependencies": {

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