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); |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
17517
414
2