Comparing version 4.4.0 to 4.5.0
CHANGELOG | ||
========= | ||
## HEAD (Unreleased) | ||
## 4.5.0 (2017-5-4) | ||
* @jsocol Support default value with tags in increment | ||
-------------------- | ||
## 4.4.0 (2017-3-23) | ||
@@ -9,0 +8,0 @@ * @RijulB Global sample rate |
@@ -116,2 +116,9 @@ "use strict"; | ||
Client.prototype.increment = function (stat, value, sampleRate, tags, callback) { | ||
// allow use of tags without explicit value or sampleRate | ||
if (arguments.length < 3) { | ||
if (typeof value !== 'number') { | ||
tags = value; | ||
value = undefined; | ||
} | ||
} | ||
// we explicitly check for undefined and null (and don't do a "! value" check) | ||
@@ -118,0 +125,0 @@ // so that 0 values are allowed and sent through as-is |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for StatsD, DogStatsD, and Telegraf", | ||
"version": "4.4.0", | ||
"version": "4.5.0", | ||
"author": "Steve Ivy", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -202,5 +202,4 @@ # hot-shots | ||
3. Run "npm test" | ||
4. Update the HEAD section in CHANGES.md with a description of what you have done | ||
5. Update README.md with any needed documentation | ||
6. Push your changes and create the PR | ||
4. Update README.md with any needed documentation | ||
5. Push your changes and create the PR | ||
@@ -207,0 +206,0 @@ When you've done all this we're happy to try to get this merged in right away. |
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
35207
586
218