@shopify/statsd
Advanced tools
Comparing version 3.0.0 to 3.0.1-address-mocks-minified-beta.0
@@ -5,3 +5,5 @@ import { ClientOptions } from 'hot-shots'; | ||
} | ||
declare type Tags = Record<string, string | number | boolean | null | undefined> | string[]; | ||
declare type Tags = { | ||
[key: string]: string | number | boolean | null | undefined; | ||
} | string[]; | ||
export interface Options extends ClientOptions { | ||
@@ -8,0 +10,0 @@ logger?: Logger; |
@@ -19,3 +19,3 @@ import { StatsD } from 'hot-shots'; | ||
distribution(stat, value, tags) { | ||
return new Promise(resolve => { | ||
return new Promise((resolve) => { | ||
this.statsd.distribution(stat, value, this.normalizeTags(tags), this.createCallback(resolve)); | ||
@@ -25,3 +25,3 @@ }); | ||
timing(stat, value, tags) { | ||
return new Promise(resolve => { | ||
return new Promise((resolve) => { | ||
this.statsd.timing(stat, value, this.normalizeTags(tags), this.createCallback(resolve)); | ||
@@ -31,3 +31,3 @@ }); | ||
gauge(stat, value, tags) { | ||
return new Promise(resolve => { | ||
return new Promise((resolve) => { | ||
this.statsd.gauge(stat, value, this.normalizeTags(tags), this.createCallback(resolve)); | ||
@@ -37,3 +37,3 @@ }); | ||
increment(stat, tags) { | ||
return new Promise(resolve => { | ||
return new Promise((resolve) => { | ||
this.statsd.increment(stat, 1, this.normalizeTags(tags), this.createCallback(resolve)); | ||
@@ -43,3 +43,3 @@ }); | ||
close() { | ||
return new Promise(resolve => { | ||
return new Promise((resolve) => { | ||
this.statsd.close(this.createCallback(resolve)); | ||
@@ -46,0 +46,0 @@ }); |
{ | ||
"name": "@shopify/statsd", | ||
"version": "3.0.0", | ||
"version": "3.0.1-address-mocks-minified-beta.0", | ||
"license": "MIT", | ||
@@ -48,3 +48,3 @@ "description": "An opinionated StatsD client for Shopify Node.js servers and other StatsD utilities", | ||
}, | ||
"gitHead": "40de4af181104f298cbab42d2d3d68e228a9a31a" | ||
"gitHead": "1a19759d10db9ca65d346141b10e7b0654e023e6" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22502
411
0
1