resolve-account
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -20,3 +20,3 @@ (function (root, factory) { | ||
var SOURCE = 'library'; | ||
var VERSION = '1.0.0'; | ||
var VERSION = '1.0.1'; | ||
@@ -58,7 +58,9 @@ function ResolveAccount(options) { | ||
account.plan.id = account.plan.id || defaultPlanId; | ||
account.plan.expires = account.plan.expires || {}; | ||
account.plan.expires.timestamp = new Date(account.plan.expires.timestamp || 0).toISOString(); | ||
account.plan.expires.timestampUNIX = Math.round(new Date(account.plan.expires.timestamp || 0).getTime() / 1000); | ||
account.plan.status = account.plan.status || 'cancelled'; | ||
account.plan.trial = account.plan.trial || {}; | ||
@@ -167,3 +169,3 @@ account.plan.trial.activated = account.plan.trial.activated || false; | ||
account.activity.geolocation.language = account.activity.geolocation.language || 'unknown'; | ||
account.activity.geolocation.platform = account.activity.geolocation.platform || 'unknown'; | ||
account.activity.geolocation.platform = account.activity.geolocation.platform || 'unknown'; | ||
@@ -170,0 +172,0 @@ // Api |
{ | ||
"name": "resolve-account", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Standardize account JSON structure for projects built under ITW Creative Works", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
21396
257