web-manager 3.1.14 → 3.1.15

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 +0 -23
  2. package/package.json +2 -2
package/lib/account.js CHANGED
@@ -170,29 +170,6 @@ Account.prototype.resolve = function (account, options) {
170
170
  });
171
171
  }
172
172
 
173
- Account.prototype.resolve = function (account, options) {
174
- var self = this;
175
- return new Promise(function(resolve, reject) {
176
- var currentUser = firebase.auth().currentUser;
177
- if (!account || !account.auth) {
178
- if (!currentUser) {
179
- return reject(new Error('Malformed <account> input and no currently authenticated user'))
180
- }
181
- firebase.firestore().doc('users/' + currentUser.uid)
182
- .get()
183
- .then(function (doc) {
184
- return resolve(self._resolveAccount(currentUser, doc.data(), options));
185
- })
186
- .catch(reject)
187
- } else {
188
- if (!currentUser) {
189
- return reject(new Error('No currently authenticated user'))
190
- }
191
- return resolve(self._resolveAccount(currentUser, account, options));
192
- }
193
- });
194
- }
195
-
196
173
  function _setAuthItem(selector, value) {
197
174
  dom.select(selector).each(function(e, i) {
198
175
  if (e.tagName === 'INPUT') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.14",
3
+ "version": "3.1.15",
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": {
@@ -28,4 +28,4 @@
28
28
  "firebase": "^8.10.1",
29
29
  "lazysizes": "^5.3.2"
30
30
  }
31
- }
31
+ }