backend-manager 3.2.34 → 3.2.36

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.34",
3
+ "version": "3.2.36",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -2,6 +2,7 @@ const { get, merge } = require('lodash');
2
2
  const powertools = require('node-powertools');
3
3
  const fetch = require('wonderful-fetch');
4
4
 
5
+ const MAX_SIGNUPS = 3;
5
6
  const MAX_AGE = 30;
6
7
 
7
8
  function Module() {
@@ -121,6 +122,12 @@ Module.prototype.main = function () {
121
122
  return resolve(self);
122
123
  }
123
124
 
125
+ // Increment signups
126
+ usage.increment('signups');
127
+
128
+ // Update signups
129
+ await usage.update();
130
+
124
131
  // Increment user count
125
132
  await self.incrementUserCount().catch(e => e);
126
133