New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gu

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gu - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

4

gu.js

@@ -74,7 +74,7 @@ var smell = require('smell');

if (this.verbose) {
this.log.info(user + ':' + msg, '- matched:', handler.reg);
this.log.info(user + ':', msg, '- matched:', handler.reg);
}
var match = msg.match(handler.reg);
var preparedSay = this.say.bind(this, user, chan);
var args = [preparedSay].concat(match.slice(1), obj.name || obj.user);
var args = [preparedSay].concat(match.slice(1), user);

@@ -81,0 +81,0 @@ handler.cb.apply(this, args);

@@ -5,3 +5,3 @@ {

"author": "Eirik Albrigtsen <analsandblaster@gmail.com>",
"version": "0.5.0",
"version": "0.5.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -8,3 +8,3 @@ var Gu = require(process.env.GU_COV ? '../gu-cov' : '../')

exports.example = function (t) {
t.expect(4);
t.expect(8);
var scriptsPath = join(process.cwd(), 'example', 'scripts');

@@ -22,3 +22,3 @@ var exBot = new Gu(scriptsPath, ['dice.js', 'weather.js'], {

exBot.write({user: 'clux', message: "roll d8"});
exBot.write({user: 'clux', channel: "#test", message: "roll d8"});
exBot.write({user: 'aa', message: 'weather oslo tuesday'});

@@ -30,3 +30,7 @@

t.ok(ys[0].message | 0, "dice roll a positive integer");
t.equal(ys[0].user, 'clux', 'user preserved');
t.equal(ys[0].channel, '#test', 'channel preserved');
t.ok((ys[0].message | 0) <= 8, "dice roll lte 8");
t.equal(ys[1].user, 'aa', 'user preserved in msg 2');
t.ok(!ys[1].channel, 'no channel in msg 2');
t.equal(ys[1].message.slice(0, 28), 'weather for oslo on tuesday:', 'weather');

@@ -33,0 +37,0 @@ }

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