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

node-statsd

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-statsd - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

4

lib/statsd.js

@@ -178,3 +178,5 @@ var dgram = require('dgram'),

} else {
callback(null, 0);
if(typeof callback === 'function'){
callback(null, 0);
}
}

@@ -181,0 +183,0 @@ };

{ "name" : "node-statsd"
, "description" : "node client for Etsy'd StatsD server"
, "version" : "0.0.6"
, "version" : "0.0.7"
, "author" : "Steve Ivy"

@@ -5,0 +5,0 @@ , "contributors": [ "Russ Bradberry <rbradberry@gmail.com>" ]

@@ -41,4 +41,13 @@ var dgram = require('dgram'),

socket = dgram.createSocket("udp4"),
buf = new Buffer(testFinished);
buf = new Buffer(testFinished),
callbackThrows = false;
// Regression test for "undefined is not a function" with missing callback on mock instance.
try {
statsd[method]('test', 1);
} catch(e) {
callbackThrows = true;
}
assert.ok(!callbackThrows);
statsd[method]('test', 1, null, function(error, bytes){

@@ -45,0 +54,0 @@ assert.ok(!error);

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