backend-manager 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli/cli.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
package/src/cli/cli.js CHANGED
@@ -466,10 +466,13 @@ Main.prototype.setup = async function () {
466
466
  }
467
467
 
468
468
 
469
- const prepareStatsURL = `https://us-central1-${_.get(this.firebaseRC, 'projects.default')}.cloudfunctions.net/bm_getStats?authenticationToken=${_.get(this.runtimeConfigJSON, 'backend_manager.key')}`;
470
- // const prepareStatsURL = `https://us-central1-${_.get(this.firebaseRC, 'projects.default')}.cloudfunctions.net/bm_getStats?authenticationToken=undefined`;
469
+ const prepareStatsURL = `https://us-central1-${_.get(this.firebaseRC, 'projects.default')}.cloudfunctions.net/bm_api?authenticationToken=${_.get(this.runtimeConfigJSON, 'backend_manager.key')}`;
470
+ // const prepareStatsURL = `https://us-central1-${_.get(this.firebaseRC, 'projects.default')}.cloudfunctions.net/bm_api?authenticationToken=undefined`;
471
471
  const statsFetchResult = await fetch(prepareStatsURL, {
472
472
  method: 'post',
473
+ body: JSON.stringify({
474
+ command: 'admin:get-stats',
475
+ }),
473
476
  timeout: 3000,
474
477
  })
475
478
  .then(async (res) => {