web-manager 3.1.15 → 3.1.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/account.js +3 -0
  2. package/package.json +1 -1
package/lib/account.js CHANGED
@@ -156,6 +156,9 @@ Account.prototype.resolve = function (account, options) {
156
156
  return new Promise(function(resolve, reject) {
157
157
  var currentUser = firebase.auth().currentUser;
158
158
 
159
+ account = account || {};
160
+ options = options || {};
161
+
159
162
  // If there is no user logged in or we choose not to fetch the account, resolve a default account
160
163
  if (!currentUser || !currentUser.uid || options.fetchNewAccount === false) {
161
164
  return resolve(self._resolveAccount(currentUser, account, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.15",
3
+ "version": "3.1.16",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "index.js",
6
6
  "scripts": {