Socket
Socket
Sign inDemoInstall

@shopify/statsd

Package Overview
Dependencies
Maintainers
19
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/statsd - npm Package Compare versions

Comparing version 1.2.4 to 2.0.0

10

CHANGELOG.md

@@ -10,2 +10,12 @@ # Changelog

## [2.0.0] - 2019-12-24
### Changed
- Update `hot-spot` dependencies [[#1650](https://github.com/Shopify/quilt/pull/1650)]
### Added
- added `timing` metric support from `hot-spot`
## [1.2.0] - 2019-12-24

@@ -12,0 +22,0 @@

1

dist/src/client.d.ts

@@ -16,2 +16,3 @@ import { ClientOptions } from 'hot-shots';

distribution(stat: string | string[], value: number, tags?: Tags): Promise<void>;
timing(stat: string | string[], value: number, tags?: Tags): Promise<void>;
gauge(stat: string | string[], value: number, tags?: Tags): Promise<void>;

@@ -18,0 +19,0 @@ increment(stat: string | string[], tags?: Tags): Promise<void>;

@@ -28,2 +28,8 @@ "use strict";

};
StatsDClient.prototype.timing = function (stat, value, tags) {
var _this = this;
return new Promise(function (resolve) {
_this.statsd.timing(stat, value, _this.normalizeTags(tags), _this.createCallback(resolve));
});
};
StatsDClient.prototype.gauge = function (stat, value, tags) {

@@ -30,0 +36,0 @@ var _this = this;

6

package.json
{
"name": "@shopify/statsd",
"version": "1.2.4",
"version": "2.0.0",
"license": "MIT",

@@ -27,4 +27,4 @@ "description": "An opinionated StatsD client for Shopify Node.js servers and other StatsD utilities",

"dependencies": {
"change-case": "^3.0.1",
"hot-shots": "^5.9.1"
"change-case": "^4.1.1",
"hot-shots": "^8.2.0"
},

@@ -31,0 +31,0 @@ "files": [

Sorry, the diff of this file is not supported yet

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