@shopify/statsd
Advanced tools
Comparing version 1.2.4 to 2.0.0
@@ -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 @@ |
@@ -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; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9085
125
+ Addedbindings@1.5.0(transitive)
+ Addedcamel-case@4.1.2(transitive)
+ Addedcapital-case@1.0.4(transitive)
+ Addedchange-case@4.1.2(transitive)
+ Addedconstant-case@3.0.4(transitive)
+ Addeddot-case@3.0.4(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)
+ Addedheader-case@2.0.4(transitive)
+ Addedhot-shots@8.5.2(transitive)
+ Addedlower-case@2.0.2(transitive)
+ Addednan@2.20.0(transitive)
+ Addedno-case@3.0.4(transitive)
+ Addedparam-case@3.0.4(transitive)
+ Addedpascal-case@3.1.2(transitive)
+ Addedpath-case@3.0.4(transitive)
+ Addedsentence-case@3.0.4(transitive)
+ Addedsnake-case@3.0.4(transitive)
+ Addedtslib@2.7.0(transitive)
+ Addedunix-dgram@2.0.6(transitive)
+ Addedupper-case@2.0.2(transitive)
+ Addedupper-case-first@2.0.2(transitive)
- Removedcamel-case@3.0.0(transitive)
- Removedchange-case@3.1.0(transitive)
- Removedconstant-case@2.0.0(transitive)
- Removeddot-case@2.1.1(transitive)
- Removedheader-case@1.0.1(transitive)
- Removedhot-shots@5.9.2(transitive)
- Removedis-lower-case@1.1.3(transitive)
- Removedis-upper-case@1.1.2(transitive)
- Removedlower-case@1.1.4(transitive)
- Removedlower-case-first@1.0.2(transitive)
- Removedno-case@2.3.2(transitive)
- Removedparam-case@2.1.1(transitive)
- Removedpascal-case@2.0.1(transitive)
- Removedpath-case@2.1.1(transitive)
- Removedsentence-case@2.1.1(transitive)
- Removedsnake-case@2.1.0(transitive)
- Removedswap-case@1.1.2(transitive)
- Removedtitle-case@2.1.1(transitive)
- Removedupper-case@1.1.3(transitive)
- Removedupper-case-first@1.1.2(transitive)
Updatedchange-case@^4.1.1
Updatedhot-shots@^8.2.0