backend-manager 5.0.21 → 5.0.22

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.
@@ -6,3 +6,11 @@
6
6
  [debug] [2025-10-20T05:12:15.299Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
7
7
  [debug] [2025-10-20T05:12:15.299Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
8
8
  [debug] [2025-10-20T05:12:15.299Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
9
+ [debug] [2025-10-20T07:15:36.351Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
10
+ [debug] [2025-10-20T07:15:36.355Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
11
+ [debug] [2025-10-20T07:15:36.354Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
12
+ [debug] [2025-10-20T07:15:36.354Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
13
+ [debug] [2025-10-20T07:15:36.354Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
14
+ [debug] [2025-10-20T07:15:36.357Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
15
+ [debug] [2025-10-20T07:15:36.358Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
16
+ [debug] [2025-10-20T07:15:36.358Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "5.0.21",
3
+ "version": "5.0.22",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -91,7 +91,7 @@ Usage.prototype.init = function (assistant, options) {
91
91
  // TODO: Make it request using .where() query so it doesnt use a read if it doesnt have to
92
92
  foundUsage = await Manager.libraries.admin.firestore().doc(`usage/${self.key}`)
93
93
  .get()
94
- .then((r) => _.get(r.data(), 'usage'))
94
+ .then((r) => r.data())
95
95
  .catch((e) => {
96
96
  assistant.errorify(`Usage.init(): Error fetching usage data: ${e}`, {code: 500, sentry: true});
97
97
  });
@@ -316,9 +316,7 @@ Usage.prototype.update = function () {
316
316
  if (self.useUnauthenticatedStorage) {
317
317
  if (self.options.unauthenticatedMode === 'firestore') {
318
318
  admin.firestore().doc(`usage/${self.key}`)
319
- .set({
320
- usage: self.user.usage,
321
- }, {merge: true})
319
+ .set(self.user.usage, { merge: true })
322
320
  .then(() => {
323
321
  self.log(`Usage.update(): Updated user.usage in firestore`, self.user.usage);
324
322
 
@@ -338,7 +336,7 @@ Usage.prototype.update = function () {
338
336
  admin.firestore().doc(`users/${self.user.auth.uid}`)
339
337
  .set({
340
338
  usage: self.user.usage,
341
- }, {merge: true})
339
+ }, { merge: true })
342
340
  .then(() => {
343
341
  self.log(`Usage.update(): Updated user.usage in firestore`, self.user.usage);
344
342