web-manager 3.2.36 → 3.2.38

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -37,14 +37,14 @@ var store;
37
37
  /**
38
38
  * MODULE
39
39
  */
40
- function ieVersion() {
40
+ function getIEVersion() {
41
41
  // https://makandracards.com/makandra/53475-minimal-javascript-function-to-detect-version-of-internet-explorer-or-edge
42
42
  var match = /\b(MSIE |Trident.*?rv:|Edge\/)(\d+)/.exec(navigator.userAgent);
43
43
  if (match) {return parseInt(match[2])};
44
44
  }
45
45
 
46
- function _isSupportedBrowser() {
47
- var ieVersion = ieVersion();
46
+ function isSupportedBrowser() {
47
+ var ieVersion = getIEVersion();
48
48
 
49
49
  // IE 10 and below
50
50
  if (ieVersion && ieVersion <= 11) {
@@ -77,7 +77,7 @@ function Manager() {
77
77
  // initSecondaryReady: false,
78
78
  queryString: {},
79
79
  // libErrors: [],
80
- isSupportedBrowser: _isSupportedBrowser(),
80
+ isSupportedBrowser: isSupportedBrowser(),
81
81
  startTime: new Date(),
82
82
  // auth: {
83
83
  // status: undefined,
package/lib/account.js CHANGED
@@ -236,6 +236,7 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
236
236
  var timestampOld = '1970-01-01T00:00:00.000Z';
237
237
  var timestampUNIXOld = 0;
238
238
 
239
+ // TODO: ADD THESE THINGS: USAGE RESOVLER ETC
239
240
  console.log('++++++account', JSON.stringify(account, null, 2));
240
241
  console.log('++++++options', JSON.stringify(options, null, 2));
241
242
 
@@ -398,6 +399,7 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
398
399
  account.personal.location = account.personal.location || {};
399
400
  account.personal.location.city = account.personal.location.city || '';
400
401
  account.personal.location.country = account.personal.location.country || '';
402
+ account.personal.location.region = account.personal.location.region || '';
401
403
 
402
404
  account.personal.name = account.personal.name || {};
403
405
  account.personal.name.first = account.personal.name.first || '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.36",
3
+ "version": "3.2.38",
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": {