Comparing version 0.0.11 to 0.0.12
@@ -283,5 +283,7 @@ /* | ||
var time = properties['$time'] || new Date(); | ||
if (Object.prototype.toString.call(time) === '[object Date]') { | ||
properties['$time'] = time.toISOString(); | ||
if (properties.hasOwnProperty('$time')) { | ||
var time = properties['$time']; | ||
if (Object.prototype.toString.call(time) === '[object Date]') { | ||
properties['$time'] = time.toISOString(); | ||
} | ||
} | ||
@@ -288,0 +290,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["mixpanel", "analytics", "api", "stats"], | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"homepage": "https://github.com/carlsverre/mixpanel-node", | ||
@@ -8,0 +8,0 @@ "author": "Carl Sverre", |
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
34369
722