backend-manager 3.2.0 → 3.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -70,4 +70,4 @@
70
70
  "wonderful-log": "^1.0.5",
71
71
  "yargs": "^17.7.2"
72
72
  }
73
- }
73
+ }
package/src/cli/cli.js CHANGED
@@ -496,10 +496,10 @@ Main.prototype.setup = async function () {
496
496
  return !localIndexes_exists || equal
497
497
  }, fix_indexesSync);
498
498
 
499
- await self.test('add roles/datastore.importExportAdmin', async function () {
500
- const result = await cmd_iamImportExport(self).catch(e => e);
501
- return !(result instanceof Error);
502
- }, NOFIX);
499
+ // await self.test('add roles/datastore.importExportAdmin', async function () {
500
+ // const result = await cmd_iamImportExport(self).catch(e => e);
501
+ // return !(result instanceof Error);
502
+ // }, NOFIX);
503
503
 
504
504
  await self.test('set storage lifecycle policy', async function () {
505
505
  const result = await cmd_setStorageLifecycle(self).catch(e => e);
@@ -6,15 +6,19 @@
6
6
  const path = require('path');
7
7
  const powertools = require('node-powertools');
8
8
 
9
- function Middleware(m) {
9
+ function Middleware(m, req, res) {
10
10
  const self = this;
11
11
 
12
12
  self.Manager = m;
13
+ self.req = req;
14
+ self.res = res;
13
15
  }
14
16
 
15
- Middleware.prototype.run = function (library, req, res, options) {
17
+ Middleware.prototype.run = function (library, options) {
16
18
  const self = this;
17
19
  const Manager = self.Manager;
20
+ const req = self.req;
21
+ const res = self.res;
18
22
  const { cors } = Manager.libraries;
19
23
 
20
24
  return cors(req, res, async () => {