backend-manager 2.2.0 → 2.2.1

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": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "homepage": "https://itwcreativeworks.com",
29
29
  "dependencies": {
30
30
  "@firebase/rules-unit-testing": "^2.0.2",
31
- "@google-cloud/storage": "^5.19.4",
31
+ "@google-cloud/storage": "^5.20.3",
32
32
  "@sendgrid/mail": "^7.6.2",
33
33
  "@sentry/node": "^6.19.7",
34
34
  "backend-assistant": "^0.0.64",
@@ -37,7 +37,7 @@
37
37
  "cors": "^2.8.5",
38
38
  "dotenv": "^16.0.1",
39
39
  "firebase-admin": "^9.12.0",
40
- "firebase-functions": "^3.21.1",
40
+ "firebase-functions": "^3.21.2",
41
41
  "fs-jetpack": "^4.3.1",
42
42
  "hcaptcha": "^0.1.1",
43
43
  "inquirer": "^8.2.4",
@@ -39,6 +39,7 @@ Module.prototype.main = function () {
39
39
  prefix += `${item}=LOL&`
40
40
  });
41
41
 
42
+ // https://firebase.google.com/docs/reference/rest/auth#section-sign-in-with-oauth-credential
42
43
  fetch(`https://identitytoolkit.googleapis.com/v1/accounts:signInWithIdp?key=${payload.data.payload.firebaseApiKey}`, {
43
44
  method: 'post',
44
45
  json: true,
@@ -118,7 +118,7 @@ Module.prototype.main = function () {
118
118
  title: payload.data.payload.title,
119
119
  body: `"${payload.data.payload.title}" was just published on our blog. It's a great read and we think you'll enjoy the content!`,
120
120
  // click_action: `${Manager.config.brand.url}/${postUrl}`,
121
- click_action: Manager.config.brand.url,
121
+ click_action: `${Manager.config.brand.url}/blog`,
122
122
  icon: Manager.config.brand.brandmark,
123
123
  }
124
124
  }),
@@ -78,6 +78,7 @@ Module.prototype.main = function() {
78
78
  }
79
79
 
80
80
  if (self.payload.response.status === 200) {
81
+ self.assistant.log(`Finished: ${resolved.command}`, self.payload, JSON.stringify(self.payload), {environment: 'production'})
81
82
  return res.status(self.payload.response.status).json(self.payload.response.data);
82
83
  } else {
83
84
  console.error(`Error executing ${resolved.command} @ ${resolved.path}`, self.payload.response.error)