Socket
Socket
Sign inDemoInstall

hot-shots

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hot-shots - npm Package Compare versions

Comparing version 4.4.0 to 4.5.0

5

CHANGES.md
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

2

package.json
{
"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.

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