Comparing version 6.0.0 to 6.0.1
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, |
@@ -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 |
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
62463
1189
247