eventemitter2
Advanced tools
Comparing version
@@ -1039,3 +1039,3 @@ /*! | ||
defaultMaxListeners: { | ||
get: function () { | ||
get: function(){ | ||
return prototype._maxListeners; | ||
@@ -1066,27 +1066,2 @@ }, | ||
var prototype= EventEmitter.prototype; | ||
Object.defineProperties(EventEmitter, { | ||
defaultMaxListeners: { | ||
get: function(){ | ||
return prototype._maxListeners; | ||
}, | ||
set: function (n) { | ||
if (typeof n !== 'number' || n < 0 || Number.isNaN(n)) { | ||
throw TypeError('n must be a non-negative number') | ||
} | ||
prototype._maxListeners = n; | ||
}, | ||
enumerable: true | ||
} | ||
}); | ||
Object.defineProperties(prototype, { | ||
_maxListeners: { | ||
value: defaultMaxListeners, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
if (typeof define === 'function' && define.amd) { | ||
@@ -1093,0 +1068,0 @@ // AMD. Register as an anonymous module. |
{ | ||
"name": "eventemitter2", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"description": "A Node.js event emitter implementation with namespaces, wildcards, TTL and browser support.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
53142
-1.11%1046
-2.06%