setMaxListeners to 100, version to 0.4.2

This commit is contained in:
Mahdi Dibaiee 2015-07-04 15:48:07 +04:30
parent 7dabd2ca05
commit 0981e2fb78
3 changed files with 5 additions and 1 deletions

View File

@ -69,6 +69,8 @@ var Bot = (function (_EventEmitter) {
// EventEmitter // EventEmitter
this._events = {}; this._events = {};
this._userEvents = []; this._userEvents = [];
this.setMaxListeners(100);
} }
_inherits(Bot, _EventEmitter); _inherits(Bot, _EventEmitter);

View File

@ -38,6 +38,8 @@ export default class Bot extends EventEmitter {
// EventEmitter // EventEmitter
this._events = {}; this._events = {};
this._userEvents = []; this._userEvents = [];
this.setMaxListeners(100);
} }
/** /**

View File

@ -1,6 +1,6 @@
{ {
"name": "telegram-api", "name": "telegram-api",
"version": "0.4.1", "version": "0.4.2",
"description": "Control Telegram bots easily using the new Telegram API", "description": "Control Telegram bots easily using the new Telegram API",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {