backend-manager 3.2.55 → 3.2.57

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.55",
3
+ "version": "3.2.57",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -188,7 +188,7 @@ Usage.prototype.increment = function (path, value, options) {
188
188
  const Manager = self.Manager;
189
189
  const assistant = self.assistant;
190
190
 
191
- value = value || 1;
191
+ value = typeof value === 'undefined' ? 1 : value;
192
192
 
193
193
  options = options || {};
194
194
  options.id = options.id || null;
@@ -226,7 +226,7 @@ OpenAI.prototype.request = function (options) {
226
226
  .catch((e) => e);
227
227
 
228
228
  if (moderation.flagged) {
229
- return reject(assistant.errorify(`This request is inappropriate`, {code: 400}));
229
+ return reject(assistant.errorify(`This request is inappropriate`, {code: 451}));
230
230
  }
231
231
  }
232
232