Socket
Socket
Sign inDemoInstall

events-bluebird

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

events-bluebird - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## v1.0.2
* [FIXED] - async listeners should always be called with the Emitter object as context (this keyword)
## v1.0.1

@@ -2,0 +6,0 @@

5

index.js

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

function emit(method, type) {
var er, handler, len, args, i, events, promise;
var er, handler, len, args, i, events, promise, self;
var doError = (type === 'error');
self = this;
events = this._events;

@@ -106,3 +107,3 @@ if (events)

promiseCandidate = Promise[method](listeners, function(handler) {
return handler.apply(this, args);
return handler.apply(self, args);
});

@@ -109,0 +110,0 @@ }

{
"name": "events-bluebird",
"version": "1.0.1",
"version": "1.0.2",
"author": {

@@ -24,2 +24,9 @@ "email": "fogine@opmbx.org"

],
"files": [
"index.js",
"COPYRIGHT",
"CHANGELOG.md",
"LICENSE",
"README.md"
],
"peerDependencies": {

@@ -26,0 +33,0 @@ "bluebird": ">=2.0"

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