eventemitter2
Advanced tools
Comparing version 6.3.0 to 6.3.1
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53142
1046