Socket
Socket
Sign inDemoInstall

tmi.js

Package Overview
Dependencies
50
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.13 to 0.0.14

6

lib/client.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc