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.8.0 to 8.0.0

8

CHANGES.md
CHANGELOG
=========
## 8.0.0 (2020-9-23)
* @naseemkullah Change default value for 'host' from 'localhost' to
undefined. This should also 127.0.0.1 or ::1 to be used in the
default case, which does look to speed things up. This should be a
non-breaking change, but bumping to a major version for it given
it's a very base change to the library.
* @naseemkullah Switch from equals to strictEquals in tests
## 7.8.0 (2020-8-28)

@@ -5,0 +13,0 @@ * @bdeitte Fix some flaky tests

2

lib/statsd.js

@@ -49,3 +49,3 @@ const util = require('util'),

this.cacheDnsTtl = options.cacheDnsTtl || CACHE_DNS_TTL_DEFAULT;
this.host = options.host || process.env.DD_AGENT_HOST || 'localhost';
this.host = options.host || process.env.DD_AGENT_HOST;
this.port = options.port || parseInt(process.env.DD_DOGSTATSD_PORT, 10) || 8125;

@@ -52,0 +52,0 @@ this.prefix = options.prefix || '';

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

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

@@ -34,3 +34,5 @@ # hot-shots

Parameters (specified as one object passed into hot-shots):
* `host`: The host to send stats to, if not set, the constructor tries to retrieve it from the `DD_AGENT_HOST` environment variable, `default: localhost`
* `host`: The host to send stats to, if not set, the constructor tries to
retrieve it from the `DD_AGENT_HOST` environment variable, `default: 'undefined'` which as per [UDP/datagram socket docs](https://nodejs.org/api/dgram.html#dgram_socket_send_msg_offset_length_port_address_callback) results in `127.0.0.1` or `::1` being used.
* `port`: The port to send stats to, if not set, the constructor tries to retrieve it from the `DD_DOGSTATSD_PORT` environment variable, `default: 8125`

@@ -37,0 +39,0 @@ * `prefix`: What to prefix each stat name with `default: ''`

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