Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tmi.js

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmi.js - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

15

lib/client.js

@@ -514,3 +514,3 @@ var api = require("./api");

case "not_hosting":
this.log.info(basicLog);
this.log.info(basicLog);
this.emits(["notice", "_promiseUnhost"], noticeAndMsgid);

@@ -732,10 +732,8 @@ break;

var reason = _.unescapeIRC(_.get(message.tags["ban-reason"], "")) || null;
if (_.isNull(duration)) {
this.log.info(`[${channel}] ${msg} has been banned. Reason: ${reason || "n/a"}`);
this.emit("ban", channel, msg, reason);
this.log.info(`[${channel}] ${msg} has been banned.`);
this.emit("ban", channel, msg, null, message.tags);
} else {
this.log.info(`[${channel}] ${msg} has been timed out for ${duration} seconds. Reason: ${reason || "n/a"}`);
this.emit("timeout", channel, msg, reason, ~~duration);
this.log.info(`[${channel}] ${msg} has been timed out for ${duration} seconds.`);
this.emit("timeout", channel, msg, null, ~~duration, message.tags);
}

@@ -754,4 +752,3 @@ }

var username = message.tags["login"];
var deletedMessage = message.tags["message"];
var deletedMessage = msg;
var userstate = message.tags;

@@ -758,0 +755,0 @@ userstate["message-type"] = "messagedeleted";

2

package.json
{
"name": "tmi.js",
"version": "1.4.1",
"version": "1.4.2",
"description": "Javascript library for the Twitch Messaging Interface.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc