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.2.0 to 7.3.0

7

CHANGES.md
CHANGELOG
=========
## 7.1.0 (2020-3-19)
## 7.3.0 (2020-4-1)
* @marciopd Use Date.now() instead of new Date()
* @chotiwat Add UDS graceful error handling options to typescript
* @bdeitte Update packages, most notably getting node-unix-dgram 2.0.4
## 7.2.0 (2020-3-19)
* @marciopd Add cacheDnsTtl

@@ -6,0 +11,0 @@ * @dependabot Bump acorn from 6.3.0 to 6.4.1

2

lib/transport.js

@@ -52,3 +52,3 @@ const assert = require('assert');

const sendUsingDnsCache = (callback, buf) => {
const now = new Date();
const now = Date.now();
if (dnsResolutionData.resolvedAddress === undefined || (now - dnsResolutionData.timestamp > args.cacheDnsTtl)) {

@@ -55,0 +55,0 @@ dns.lookup(args.host, (error, address) => {

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

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

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

useDefaultRoute?: boolean;
udsGracefulErrorHandling?: boolean;
udsGracefulRestartRateLimit?: number;
}

@@ -28,0 +30,0 @@

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