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 6.0.0 to 6.0.1

4

CHANGES.md
CHANGELOG
=========
## 6.0.1 (2018-12-17)
* @msmnc Fix regression when tag value is a number
* @bdeitte Make non-options in constructor more deprecated
## 6.0.0 (2018-12-15)

@@ -5,0 +9,0 @@ @bdeitte Major upgrade to the codebase to be more modern,

2

lib/helpers.js

@@ -9,3 +9,3 @@ const fs = require('fs');

// Replace reserved chars with underscores.
return value.replace(blacklist, '_');
return String(value).replace(blacklist, '_');
}

@@ -12,0 +12,0 @@

@@ -9,3 +9,4 @@ const dgram = require('dgram'),

/**
* The Client for StatsD
* The Client for StatsD. The main entry-point for hot-shots. Note adding new parameters
* to the constructor is deprecated- please use the constructor as one options object.
* @constructor

@@ -18,2 +19,3 @@ */

// Adding options below is DEPRECATED. Use the options object instead.
if (arguments.length > 1 || typeof(host) === 'string') {

@@ -20,0 +22,0 @@ options = {

{
"name": "hot-shots",
"description": "Node.js client for StatsD, DogStatsD, and Telegraf",
"version": "6.0.0",
"version": "6.0.1",
"author": "Steve Ivy",

@@ -6,0 +6,0 @@ "types": "./types.d.ts",

@@ -30,3 +30,3 @@ # hot-shots

Parameters (specified as an options hash):
Parameters (specified as one object passed into hot-shots):
* `host`: The host to send stats to `default: localhost`

@@ -88,3 +88,4 @@ * `port`: The port to send stats to `default: 8125`

var StatsD = require('hot-shots'),
client = new StatsD();
client = new StatsD({ port: 8020, globalTags: { env:
process.env.NODE_ENV });

@@ -91,0 +92,0 @@ // Catch socket errors so they don't go unhandled, as explained

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