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

asyncemit

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asyncemit - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

index.js

@@ -20,3 +20,3 @@ 'use strict';

listeners = this._events[event] || [];
listeners = (this._events || {})[event] || [];
if (listeners && !Array.isArray(listeners)) {

@@ -27,3 +27,3 @@ listeners = [ listeners ];

/**
* Simple
* Simple async helper utility.
*

@@ -30,0 +30,0 @@ * @param {Array} stack The various of event listeners are async emitted.

{
"name": "asyncemit",
"version": "1.0.0",
"version": "1.0.1",
"description": "Asynchronously emit event an event based on the arguments length.",

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

@@ -22,2 +22,6 @@ describe('asyncemit', function () {

it('returns it self instead of a boolean', function () {
assume(ee.asyncemit('foo', function () {})).equals(ee);
});
it('works with `sync` emitters', function (next) {

@@ -24,0 +28,0 @@ next = assume.plan(2, next);

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