backend-manager 3.0.18 → 3.0.19

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.0.18",
3
+ "version": "3.0.19",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -57,7 +57,7 @@
57
57
  "npm-api": "^1.0.1",
58
58
  "paypal-server-api": "^1.0.3",
59
59
  "pushid": "^1.0.0",
60
- "resolve-account": "^1.0.4",
60
+ "resolve-account": "^1.0.5",
61
61
  "semver": "^7.5.4",
62
62
  "shortid": "^2.2.16",
63
63
  "sizeitup": "^1.0.7",
@@ -31,6 +31,12 @@ Module.prototype.main = function () {
31
31
 
32
32
  assistant.log(`Request: ${user.uid}`, user, context, { environment: 'production' });
33
33
 
34
+ // if (context.additionalUserInfo.recaptchaScore < 0.5) {
35
+ // assistant.error(`Recaptcha score (${context.additionalUserInfo.recaptchaScore}) too low for ${user.uid}`, { environment: 'production' });
36
+
37
+ // throw new functions.auth.HttpsError('resource-exhausted');
38
+ // }
39
+
34
40
  const ipAddress = context.ipAddress;
35
41
  const currentTime = Date.now();
36
42
  const oneHour = 60 * 60 * 1000; // One hour in milliseconds