Comparing version 0.0.13 to 0.0.14
@@ -640,3 +640,3 @@ var bunyan = require("bunyan"); | ||
if (protocol === "irc") { | ||
if (typeof window === "undefined" || typeof window === "undefined") { self._openIRCConnection(); } | ||
if (typeof window === "undefined" && module.exports) { self._openIRCConnection(); } | ||
else { self.log.error("Server is not accepting WebSocket connections."); } | ||
@@ -659,3 +659,3 @@ } | ||
// Perhaps we should try using IRC protocol instead.. | ||
if (self.protocol === "websocket" && (typeof window === "undefined" || typeof window === "object")) { | ||
if (self.protocol === "websocket" && (typeof window === "undefined" && module.exports)) { | ||
self.protocol = "irc"; | ||
@@ -1274,3 +1274,3 @@ self.log.error("Server is not accepting WebSocket connections. Reconnecting using IRC protocol.."); | ||
// Expose everything, for browser and Node.js / io.js | ||
if (typeof window === "undefined" || typeof window === "object") { | ||
if (typeof window === "undefined" && module.exports) { | ||
module.exports = client; | ||
@@ -1277,0 +1277,0 @@ } else { |
{ | ||
"name": "tmi.js", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Javascript library for the Twitch Messaging Interface.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
62947