Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

resolve-account

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve-account - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

18

dist/index.js

@@ -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",

}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc