web-manager 3.1.44 → 3.1.46

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -264,7 +264,7 @@ function Manager() {
264
264
  // if (This.properties.page.status.didSignUp) {
265
265
  var didSignUp = 'auth.didSignUp';
266
266
  var done;
267
- var hoursSinceCreation = Math.abs(new Date() - new Date(+user.metadata.a)) / 36e5;
267
+ var hoursSinceCreation = Math.abs(new Date() - new Date(+user.metadata.createdAt)) / 36e5;
268
268
 
269
269
  function _done() {
270
270
  if (!done) {
package/lib/account.js CHANGED
@@ -336,14 +336,14 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
336
336
  account.activity.geolocation.country = account.activity.geolocation.country || 'unknown';
337
337
  account.activity.geolocation.region = account.activity.geolocation.region || 'unknown';
338
338
  account.activity.geolocation.city = account.activity.geolocation.city || 'unknown';
339
- account.activity.geolocation.latitude = account.activity.geolocation.latitude || 'unknown';
340
- account.activity.geolocation.longitude = account.activity.geolocation.longitude || 'unknown';
339
+ account.activity.geolocation.latitude = account.activity.geolocation.latitude || 0;
340
+ account.activity.geolocation.longitude = account.activity.geolocation.longitude || 0;
341
341
 
342
342
  account.activity.client = account.activity.client || {};
343
343
  account.activity.client.userAgent = account.activity.client.userAgent || 'unknown';
344
344
  account.activity.client.language = account.activity.client.language || 'unknown';
345
345
  account.activity.client.platform = account.activity.client.platform || 'unknown';
346
- account.activity.client.mobile = account.activity.client.mobile || 'unknown';
346
+ account.activity.client.mobile = account.activity.client.mobile || null;
347
347
 
348
348
  // Api
349
349
  account.api = account.api || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.44",
3
+ "version": "3.1.46",
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": {