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 4.1.0 to 4.1.1

3

CHANGES.md

@@ -8,2 +8,5 @@ CHANGELOG

## 4.1.1 (2015-5-22)
* @ash2k date_happened should be seconds, not milliseconds
## 4.1.0 (2015-5-8)

@@ -10,0 +13,0 @@ * @ash2k Support multiline text in DataDog events

8

lib/statsd.js

@@ -199,4 +199,8 @@ "use strict";

if (options) {
if (options.date_happened && options.date_happened instanceof Date) {
message += '|d:' + options.date_happened.getTime();
if (options.date_happened instanceof Date) {
// Datadog expects seconds.
message += '|d:' + Math.round(options.date_happened.getTime() / 1000);
} else if (options.date_happened instanceof Number) {
// Make sure it is an integer, not a float.
message += '|d:' + Math.round(options.date_happened);
}

@@ -203,0 +207,0 @@ if (options.hostname) {

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

@@ -6,0 +6,0 @@ "contributors": [

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