app-usage-stats
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -48,2 +48,3 @@ 'use strict'; | ||
value: function hit(dimension, metric, options) { | ||
if (this._disabled) return Promise.resolve([]); | ||
this.unsent.add({ dimension: dimension, metric: metric }); | ||
@@ -224,2 +225,3 @@ | ||
if (this._disabled) return Promise.resolve([]); | ||
this._convertToHits(); | ||
@@ -226,0 +228,0 @@ var toSend = clone(this.unsent.stats); |
{ | ||
"name": "app-usage-stats", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A convention for tracking javascript application usage", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/75lb/app-usage-stats.git", |
@@ -67,2 +67,3 @@ 'use strict' | ||
hit (dimension, metric, options) { | ||
if (this._disabled) return Promise.resolve([]) | ||
this.unsent.add({ dimension, metric }) | ||
@@ -183,2 +184,3 @@ | ||
send (options) { | ||
if (this._disabled) return Promise.resolve([]) | ||
this._convertToHits() | ||
@@ -185,0 +187,0 @@ const toSend = clone(this.unsent.stats) |
@@ -1,1 +0,1 @@ | ||
1475181746868 | ||
1475265016481 |
Sorry, the diff of this file is not supported yet
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
52831
1289