Socket
Socket
Sign inDemoInstall

tinybot

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinybot - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

12

index.js

@@ -20,4 +20,4 @@ 'use strict';

})
this.listeners = []
this.defaultChannel = defaultChannel;
this.listeners = [];
}

@@ -115,5 +115,5 @@

var self = this;
channelId = channelId || defaultChannel;
channelId = channelId || self.defaultChannel;
if( channelId[0] == '#' ) { channelId = self.channelIdForName(channelId); }
if( channelId && channelId[0] == '#' ) { channelId = self.channelIdForName(channelId); }
// TODO: surface this error

@@ -253,1 +253,5 @@ if( !channelId ) { return console.error("Invalid channelId"); }

module.exports = Bot;
if( !process.env.NODE_ENV || process.env.NODE_ENV == 'test' ) {
module.exports.slub = require('./test/slub');
}
{
"name": "tinybot",
"version": "1.0.0",
"version": "1.0.1",
"description": "A tiny wrapper around the Slack RTM API that provides methods to listen for and send slack messages.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,4 +12,2 @@ var expect = require('expect');

describe('live calls', function() {
this.timeout(process.env.TIMEOUT || 5000);
it('connects to slack as expected', function(cb) {

@@ -16,0 +14,0 @@ var bot = new Tinybot(slackToken);

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