bare-events
Advanced tools
+8
-2
@@ -339,3 +339,7 @@ const errors = require('./lib/errors') | ||
| exports.getMaxListeners = function getMaxListeners(emitter) { | ||
| return emitter.getMaxListeners() | ||
| if (typeof emitter.getMaxListeners === 'function') { | ||
| return emitter.getMaxListeners() | ||
| } | ||
| return exports.defaultMaxListeners | ||
| } | ||
@@ -347,5 +351,7 @@ | ||
| for (const emitter of emitters) { | ||
| emitter.setMaxListeners(n) | ||
| if (typeof emitter.setMaxListeners === 'function') { | ||
| emitter.setMaxListeners(n) | ||
| } | ||
| } | ||
| } | ||
| } |
+1
-1
| { | ||
| "name": "bare-events", | ||
| "version": "2.6.0", | ||
| "version": "2.6.1", | ||
| "description": "Event emitters for JavaScript", | ||
@@ -5,0 +5,0 @@ "exports": { |
23269
0.73%359
1.41%