resolve-account
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -20,3 +20,3 @@ (function (root, factory) { | ||
var SOURCE = 'library'; | ||
var VERSION = '1.0.10'; | ||
var VERSION = '1.0.11'; | ||
@@ -48,2 +48,4 @@ function ResolveAccount(options) { | ||
var isDevelopment; | ||
var timestampOld = '1970-01-01T00:00:00.000Z'; | ||
var timestampUNIXOld = 0; | ||
@@ -83,4 +85,4 @@ // Resolve auth | ||
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.startDate.timestamp = account.plan.payment.startDate.timestamp || timestampOld; | ||
account.plan.payment.startDate.timestampUNIX = account.plan.payment.startDate.timestampUNIX || timestampUNIXOld; | ||
@@ -92,4 +94,4 @@ account.plan.payment.updatedBy = account.plan.payment.updatedBy || {}; | ||
account.plan.payment.updatedBy.date = account.plan.payment.updatedBy.date || {}; | ||
account.plan.payment.updatedBy.date.timestamp = account.plan.payment.updatedBy.date.timestamp || '1970-01-01T00:00:00.000Z'; | ||
account.plan.payment.updatedBy.date.timestampUNIX = account.plan.payment.updatedBy.date.timestampUNIX || 0; | ||
account.plan.payment.updatedBy.date.timestamp = account.plan.payment.updatedBy.date.timestamp || timestampOld; | ||
account.plan.payment.updatedBy.date.timestampUNIX = account.plan.payment.updatedBy.date.timestampUNIX || timestampUNIXOld; | ||
@@ -138,2 +140,5 @@ // Set some variables | ||
account.oauth2 = account.oauth2 || {}; | ||
account.oauth2.updated = account.oauth2.updated || {}; | ||
account.oauth2.updated.timestamp = account.oauth2.updated.timestamp || timestampOld; | ||
account.oauth2.updated.timestampUNIX = account.oauth2.updated.timestampUNIX || timestampUNIXOld; | ||
// account.oauth2.discord = account.oauth2.discord || {}; | ||
@@ -161,8 +166,8 @@ // account.oauth2.discord.user = account.oauth2.discord.user || {}; | ||
account.activity.lastActivity = account.activity.lastActivity || {}; | ||
account.activity.lastActivity.timestamp = account.activity.lastActivity.timestamp || '1970-01-01T00:00:00.000Z'; | ||
account.activity.lastActivity.timestampUNIX = account.activity.lastActivity.timestampUNIX || 0; | ||
account.activity.lastActivity.timestamp = account.activity.lastActivity.timestamp || timestampOld; | ||
account.activity.lastActivity.timestampUNIX = account.activity.lastActivity.timestampUNIX || timestampUNIXOld; | ||
account.activity.created = account.activity.created || {}; | ||
account.activity.created.timestamp = account.activity.created.timestamp || '1970-01-01T00:00:00.000Z'; | ||
account.activity.created.timestampUNIX = account.activity.created.timestampUNIX || 0; | ||
account.activity.created.timestamp = account.activity.created.timestamp || timestampOld; | ||
account.activity.created.timestampUNIX = account.activity.created.timestampUNIX || timestampUNIXOld; | ||
@@ -198,4 +203,4 @@ account.activity.geolocation = account.activity.geolocation || {}; | ||
account.usage.requests.last.id = account.usage.requests.last.id || ''; | ||
account.usage.requests.last.timestamp = account.usage.requests.last.timestamp || '1970-01-01T00:00:00.000Z'; | ||
account.usage.requests.last.timestampUNIX = account.usage.requests.last.timestampUNIX || 0; | ||
account.usage.requests.last.timestamp = account.usage.requests.last.timestamp || timestampOld; | ||
account.usage.requests.last.timestampUNIX = account.usage.requests.last.timestampUNIX || timestampUNIXOld; | ||
@@ -206,4 +211,4 @@ // Personal | ||
account.personal.birthday = account.personal.birthday || {}; | ||
account.personal.birthday.timestamp = account.personal.birthday.timestamp || '1970-01-01T00:00:00.000Z'; | ||
account.personal.birthday.timestampUNIX = account.personal.birthday.timestampUNIX || 0; | ||
account.personal.birthday.timestamp = account.personal.birthday.timestamp || timestampOld; | ||
account.personal.birthday.timestampUNIX = account.personal.birthday.timestampUNIX || timestampUNIXOld; | ||
@@ -210,0 +215,0 @@ account.personal.gender = account.personal.gender || ''; |
{ | ||
"name": "resolve-account", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"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
23724
297