Comparing version 1.0.1 to 1.0.2
@@ -44,4 +44,6 @@ var dgram = require('dgram'), | ||
dns.lookup(options.host, function(err, address, family){ | ||
if(err == null){ | ||
if(err === null){ | ||
self.host = address; | ||
} else { | ||
throw new Error(err); | ||
} | ||
@@ -260,3 +262,3 @@ }); | ||
this.send(message, tags, callback); | ||
} | ||
}; | ||
@@ -299,5 +301,5 @@ /** | ||
this.socket.close(); | ||
} | ||
}; | ||
exports = module.exports = Client; | ||
exports.StatsD = Client; |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for statsd and DogStatsD", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Steve Ivy", | ||
@@ -10,2 +10,8 @@ "contributors": [ | ||
], | ||
"keywords": [ | ||
"statsd", | ||
"dogstatsd", | ||
"datadog", | ||
"metrics" | ||
], | ||
"repository": { | ||
@@ -25,9 +31,12 @@ "type": "git", | ||
"scripts": { | ||
"test": "mocha -R spec" | ||
"test": "mocha -R spec", | ||
"lint": "jshint lib/**.js test/**.js", | ||
"pretest": "npm run lint" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"mocha": "*" | ||
"jshint": "2.x", | ||
"mocha": "2.x" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -8,2 +8,4 @@ # hot-shots | ||
[![Build Status](https://secure.travis-ci.org/brightcove/hot-shots.png?branch=master)](http://travis-ci.org/brightcove/hot-shots) | ||
## Installation | ||
@@ -127,2 +129,11 @@ | ||
## Submitting changes | ||
Thanks for considering making any updates to this project! Here are the steps to take in your fork: | ||
1. Make sure you've added any new tests needed | ||
2. Run "npm install && npm unit" | ||
3. Update the HEAD section in CHANGES.md with a description of what you have done | ||
4. Push your changes and create the PR, and we'll try to get this merged in right away | ||
## Name | ||
@@ -129,0 +140,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
34593
12
271
149
2