backend-manager 3.2.44 → 3.2.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "3.2.44",
3
+ "version": "3.2.46",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -42,7 +42,7 @@
42
42
  "cors": "^2.8.5",
43
43
  "dotenv": "^16.4.1",
44
44
  "firebase-admin": "^11.11.1",
45
- "firebase-functions": "^4.6.0",
45
+ "firebase-functions": "^4.7.0",
46
46
  "fs-jetpack": "^5.1.0",
47
47
  "hcaptcha": "^0.1.1",
48
48
  "inquirer": "^8.2.5",
@@ -59,7 +59,7 @@
59
59
  "npm-api": "^1.0.1",
60
60
  "paypal-server-api": "^1.0.3",
61
61
  "pushid": "^1.0.0",
62
- "resolve-account": "^1.0.13",
62
+ "resolve-account": "^1.0.14",
63
63
  "semver": "^7.6.0",
64
64
  "shortid": "^2.2.16",
65
65
  "sizeitup": "^1.0.7",
@@ -71,7 +71,6 @@ Module.prototype.main = function () {
71
71
 
72
72
  // Build user object
73
73
  let userRecord = Manager.User().properties;
74
-
75
74
  userRecord = merge(userRecord, existingUser, {
76
75
  auth: {
77
76
  uid: user.uid,
@@ -79,6 +78,11 @@ Module.prototype.main = function () {
79
78
  },
80
79
  });
81
80
 
81
+ // Fill in location
82
+ // userRecord.personal.location.country = userRecord.activity.geolocation.country;
83
+ // userRecord.personal.location.region = userRecord.activity.geolocation.region;
84
+ // userRecord.personal.location.city = userRecord.activity.geolocation.city;
85
+
82
86
  const ip = userRecord.activity.geolocation.ip || '';
83
87
  const ipKey = ip.replace(/[\.:]/g, '_');
84
88
 
@@ -125,8 +125,9 @@ function User(Manager, settings, options) {
125
125
  },
126
126
  gender: _.get(settings, 'personal.gender', defaults ? '' : null),
127
127
  location: {
128
- city: _.get(settings, 'personal.location.city', defaults ? '' : null),
129
128
  country: _.get(settings, 'personal.location.country', defaults ? '' : null),
129
+ region: _.get(settings, 'personal.location.region', defaults ? '' : null),
130
+ city: _.get(settings, 'personal.location.city', defaults ? '' : null),
130
131
  },
131
132
  name: {
132
133
  first: _.get(settings, 'personal.name.first', defaults ? '' : null),