backend-manager 5.0.152 → 5.0.153

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": "5.0.152",
3
+ "version": "5.0.153",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -361,7 +361,7 @@ OpenAI.prototype.request = function (options) {
361
361
  .catch((e) => e);
362
362
 
363
363
  // Check for moderation flag
364
- if (moderation.flagged) {
364
+ if (moderation?.flagged) {
365
365
  return reject(assistant.errorify(`This request is inappropriate`, {code: 451}));
366
366
  }
367
367
  }