brianmhunt-mutex-promise
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -26,3 +26,3 @@ "use strict"; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -259,3 +259,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
promise2._notifyPromisees(); | ||
this.emit(promise1.state === RESOLVED ? 'resolve' : 'reject', promise1.resolution); | ||
promise1.emit(promise1.state === RESOLVED ? 'resolve' : 'reject', promise1.resolution); | ||
} | ||
@@ -262,0 +262,0 @@ } |
{ | ||
"name": "brianmhunt-mutex-promise", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Promises with uncaught handling and events", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -217,3 +217,3 @@ "use strict" | ||
promise2._notifyPromisees() | ||
this.emit(promise1.state === RESOLVED ? 'resolve' : 'reject', | ||
promise1.emit(promise1.state === RESOLVED ? 'resolve' : 'reject', | ||
promise1.resolution) | ||
@@ -220,0 +220,0 @@ } |
Sorry, the diff of this file is not supported yet
44152