backend-manager 3.2.43 → 3.2.45

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.43",
3
+ "version": "3.2.45",
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",
@@ -374,29 +374,9 @@ Module.prototype.addToSendGridList = function (user) {
374
374
  command: `v3/marketing/contacts`,
375
375
  method: `put`,
376
376
  supplemental: {
377
+ app: Manager.config.app.id,
377
378
  user: user,
378
- },
379
- body: {
380
- contacts: [
381
- {
382
- email: user?.auth?.email,
383
- address_line_1: undefined,
384
- address_line_2: undefined,
385
- // alternate_emails: [],
386
- city: user?.activity?.geolocation?.city,
387
- country: user?.activity?.geolocation?.country,
388
- first_name: undefined,
389
- last_name: undefined,
390
- postal_code: undefined,
391
- state_province_region: user?.activity?.geolocation?.region,
392
-
393
- custom_fields: {
394
- app: Manager.config.app.id,
395
- user: user?.auth?.uid,
396
- },
397
- },
398
- ],
399
- },
379
+ }
400
380
  },
401
381
  })
402
382
  .then((r) => {
@@ -127,6 +127,7 @@ function User(Manager, settings, options) {
127
127
  location: {
128
128
  city: _.get(settings, 'personal.location.city', defaults ? '' : null),
129
129
  country: _.get(settings, 'personal.location.country', defaults ? '' : null),
130
+ region: _.get(settings, 'personal.location.region', defaults ? '' : null),
130
131
  },
131
132
  name: {
132
133
  first: _.get(settings, 'personal.name.first', defaults ? '' : null),