Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hot-shots

Package Overview
Dependencies
Maintainers
1
Versions
92
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 7.3.0 to 7.4.0

3

CHANGES.md
CHANGELOG
=========
## 7.4.0 (2020-4-3)
* @MichaelSitter add tagPrefix and tagSeparator options
## 7.3.0 (2020-4-1)

@@ -5,0 +8,0 @@ * @marciopd Use Date.now() instead of new Date()

@@ -53,2 +53,4 @@ const util = require('util'),

this.suffix = options.suffix || '';
this.tagPrefix = options.tagPrefix || '#';
this.tagSeparator = options.tagSeparator || ',';
this.mock = options.mock;

@@ -272,3 +274,3 @@ this.globalTags = typeof options.globalTags === 'object' ?

} else {
message += `|#${mergedTags.join(',')}`;
message += `|${this.tagPrefix}${mergedTags.join(this.tagSeparator)}`;
}

@@ -495,2 +497,4 @@ }

port : parent.port,
tagPrefix : parent.tagPrefix,
tagSeparator : parent.tagSeparator,
prefix : (options.prefix || '') + parent.prefix, // Child has its prefix prepended to parent's prefix

@@ -497,0 +501,0 @@ suffix : parent.suffix + (options.suffix || ''), // Child has its suffix appended to parent's suffix

2

package.json
{
"name": "hot-shots",
"description": "Node.js client for StatsD, DogStatsD, and Telegraf",
"version": "7.3.0",
"version": "7.4.0",
"author": "Steve Ivy",

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

@@ -37,2 +37,4 @@ # hot-shots

* `suffix`: What to suffix each stat name with `default: ''`
* `tagPrefix`: Prefix tag list with character `default: '#'`. Note does not work with `telegraf` option.
* `tagSeparator`: Separate tags with character `default: ','`. Note does not work with `telegraf` option.
* `globalize`: Expose this StatsD instance globally. `default: false`

@@ -39,0 +41,0 @@ * `cacheDns`: Caches dns lookup to *host* for *cacheDnsTtl*, only used

@@ -26,2 +26,4 @@ import dgram = require("dgram");

useDefaultRoute?: boolean;
tagPrefix?: string;
tagSeparator?: string;
udsGracefulErrorHandling?: boolean;

@@ -28,0 +30,0 @@ udsGracefulRestartRateLimit?: number;

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