resolve-account
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -20,3 +20,3 @@ (function (root, factory) { | ||
var SOURCE = 'library'; | ||
var VERSION = '1.0.5'; | ||
var VERSION = '1.0.6'; | ||
@@ -51,4 +51,4 @@ function ResolveAccount(options) { | ||
account.auth = account.auth || {}; | ||
account.auth.uid = account.auth.uid || firebaseUser.uid || null; | ||
account.auth.email = account.auth.email || firebaseUser.email || null; | ||
account.auth.uid = account.auth.uid || firebaseUser.uid || null; | ||
account.auth.temporary = account.auth.temporary || false; | ||
@@ -60,2 +60,4 @@ | ||
account.plan.status = account.plan.status || 'cancelled'; | ||
account.plan.expires = account.plan.expires || {}; | ||
@@ -65,4 +67,2 @@ account.plan.expires.timestamp = new Date(account.plan.expires.timestamp || 0).toISOString(); | ||
account.plan.status = account.plan.status || 'cancelled'; | ||
account.plan.trial = account.plan.trial || {}; | ||
@@ -78,10 +78,12 @@ account.plan.trial.activated = account.plan.trial.activated || false; | ||
account.plan.payment = account.plan.payment || {}; | ||
account.plan.payment.startDate = account.plan.payment.startDate || {}; | ||
account.plan.payment.startDate.timestamp = account.plan.payment.startDate.timestamp || '1970-01-01T00:00:00.000Z'; | ||
account.plan.payment.startDate.timestampUNIX = account.plan.payment.startDate.timestampUNIX || 0; | ||
account.plan.payment.frequency = account.plan.payment.frequency || 'unknown'; | ||
account.plan.payment.processor = account.plan.payment.processor || 'unknown'; | ||
account.plan.payment.orderId = account.plan.payment.orderId || 'unknown'; | ||
account.plan.payment.resourceId = account.plan.payment.resourceId || 'unknown'; | ||
account.plan.payment.frequency = account.plan.payment.frequency || 'unknown'; | ||
account.plan.payment.active = account.plan.payment.active || false; | ||
account.plan.payment.startDate = account.plan.payment.startDate || {}; | ||
account.plan.payment.startDate.timestamp = account.plan.payment.startDate.timestamp || '1970-01-01T00:00:00.000Z'; | ||
account.plan.payment.startDate.timestampUNIX = account.plan.payment.startDate.timestampUNIX || 0; | ||
account.plan.payment.updatedBy = account.plan.payment.updatedBy || {}; | ||
@@ -88,0 +90,0 @@ account.plan.payment.updatedBy.event = account.plan.payment.updatedBy.event || {}; |
{ | ||
"name": "resolve-account", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Standardize account JSON structure for projects built under ITW Creative Works", | ||
@@ -34,2 +34,2 @@ "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
22710
280