Skip to content
This repository was archived by the owner on Nov 2, 2020. It is now read-only.

Commit f7a5950

Browse files
authored
Merge pull request #28 from ClusterWS/next
Next
2 parents f2f778a + 490208e commit f7a5950

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

dist/browser/clusterws.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ var ClusterWS = function() {
2727
if ("[object Function]" !== {}.toString.call(e)) return t("Listener must be a function");
2828
this.events[n] = e;
2929
}, n.prototype.emit = function(t) {
30-
for (var n = [], e = 1; e < arguments.length; e++) n[e - 1] = arguments[e];
31-
this.events[t] && (o = this.events[t]).call.apply(o, [ null ].concat(n));
32-
var o;
30+
for (var n, e = [], o = 1; o < arguments.length; o++) e[o - 1] = arguments[o];
31+
this.events[t] && (n = this.events[t]).call.apply(n, [ null ].concat(e));
3332
}, n.prototype.removeAllEvents = function() {
3433
this.events = {};
3534
}, n;

dist/browser/clusterws.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ var Channel = function() {
2828
if ("[object Function]" !== {}.toString.call(e)) return logError("Listener must be a function");
2929
this.events[t] = e;
3030
}, t.prototype.emit = function(t) {
31-
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
32-
this.events[t] && (o = this.events[t]).call.apply(o, [ null ].concat(e));
33-
var o;
31+
for (var e, n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
32+
this.events[t] && (e = this.events[t]).call.apply(e, [ null ].concat(n));
3433
}, t.prototype.removeAllEvents = function() {
3534
this.events = {};
3635
}, t;
@@ -162,4 +161,4 @@ var ClusterWS = function() {
162161
}, t;
163162
}();
164163

165-
module.exports = ClusterWS;
164+
module.exports = ClusterWS, module.exports.default = ClusterWS;

dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clusterws-client-js",
3-
"version": "1.5.0",
3+
"version": "1.5.3",
44
"description": "JavaScript Client for ClusterWS - lightweight, fast and powerful framework for building horizontally & vertically scalable WebSocket applications in Node.js.",
55
"main": "index.js",
66
"author": "Dmitrii Goriunov",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clusterws-client-js",
3-
"version": "1.5.0",
3+
"version": "1.5.3",
44
"description": "JavaScript Client for ClusterWS - lightweight, fast and powerful framework for building horizontally & vertically scalable WebSocket applications in Node.js.",
55
"main": "index.js",
66
"author": "Dmitrii Goriunov",
@@ -16,6 +16,6 @@
1616
"url": "https://github.com/ClusterWS/ClusterWS-Client-JS"
1717
},
1818
"devDependencies": {
19-
"ts-builder": "^0.5.11"
19+
"ts-builder": "^0.5.21"
2020
}
2121
}

0 commit comments

Comments
 (0)