Socket
Socket
Sign inDemoInstall

tmi.js

Package Overview
Dependencies
47
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

15

lib/client.js

@@ -81,12 +81,14 @@ var bunyan = require("bunyan");

// Parse emotes..
if (typeof message.tags['emotes'] === 'string') {
var emoticons = message.tags['emotes'].split('/');
if (typeof message.tags["emotes"] === "string") {
var emoticons = message.tags["emotes"].split("/");
var emotes = {};
for (var i = 0; i < emoticons.length; i++) {
var parts = emoticons[i].split(':');
emotes[parts[0]] = parts[1].split(',');
var parts = emoticons[i].split(":");
emotes[parts[0]] = parts[1].split(",");
}
message.tags['emotes'] = emotes;
} else { message.tags['emotes'] = null; }
message.tags["emotes-raw"] = message.tags["emotes"];
message.tags["emotes"] = emotes;
}
if (typeof message.tags["emotes"] === "boolean") { message.tags["emotes-raw"] = null; }

@@ -279,2 +281,3 @@ // Transform the IRCv3 tags..

case "ROOMSTATE":
message.tags.channel = self.lastJoined;
self.emit("roomstate", message.params[0], message.tags);

@@ -281,0 +284,0 @@ break;

2

package.json
{
"name": "tmi.js",
"version": "0.0.4",
"version": "0.0.5",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc