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

hostess

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hostess - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

index.js

@@ -24,2 +24,3 @@ "use strict";

return this.once('error', function() {
self.halt = true;
self.on('error', function() { });

@@ -63,2 +64,3 @@ deps.apply(this, arguments);

var item = this._queue[name];
if (this.halt) return;
if (!item.callback) return;

@@ -65,0 +67,0 @@ if (item.called) return;

2

package.json
{
"name": "hostess",
"version": "0.0.2",
"version": "0.0.3",
"description": "async by depencency",

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

@@ -225,2 +225,24 @@ var hostess = require('./index')

it('should stop after an exception is thrown', function(done) {
var host = hostess();
host('error', function() { });
host('first', function() {
throw new Error();
});
var secondCalled = false;
host('second', ['first'], function() {
secondCalled = true;
});
process.nextTick(function() {
if (secondCalled) {
assert.ok(false, 'execution didnt stop after exception was thrown');
}
done();
});
});
it('should fire a done event', function(done) {

@@ -227,0 +249,0 @@ var host = hostess();

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