backend-manager 2.0.30 → 2.0.33

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": "2.0.30",
3
+ "version": "2.0.33",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -54,7 +54,7 @@
54
54
  "semver": "^7.3.7",
55
55
  "shortid": "^2.2.16",
56
56
  "uid-generator": "^2.0.0",
57
- "ultimate-jekyll-poster": "^0.0.10",
57
+ "ultimate-jekyll-poster": "^0.0.11",
58
58
  "universal-analytics": "^0.5.3",
59
59
  "uuid": "^8.3.2",
60
60
  "wonderful-fetch": "^0.0.4",
@@ -65,4 +65,4 @@
65
65
  "src/",
66
66
  "templates/"
67
67
  ]
68
- }
68
+ }
package/src/cli/cli.js CHANGED
@@ -582,6 +582,17 @@ Main.prototype.setup = async function () {
582
582
  console.log(chalk.yellow(`You should continue to run ${chalk.bold('npx bm setup')} until you pass all tests and fix all errors.`));
583
583
  }
584
584
 
585
+ // Notify parent that finished with test results
586
+ if (process.send) {
587
+ process.send({
588
+ sender: 'electron-manager',
589
+ command: 'setup:complete',
590
+ payload: {
591
+ passed: self.testCount === self.testTotal,
592
+ }
593
+ });
594
+ }
595
+
585
596
  return;
586
597
 
587
598
  };
@@ -89,12 +89,19 @@ Module.prototype.import = function (command, payload, user, response) {
89
89
  lib.assistant = self.assistant;
90
90
  lib.payload = _.cloneDeep({
91
91
  data: {
92
+ // command: '?',
92
93
  payload: payload ? payload : self.payload.data.payload,
93
94
  },
94
95
  user: user ? user : self.payload.user,
95
96
  response: response ? response : self.payload.response,
96
97
  });
97
98
 
99
+ if (self.payload.data.backendManagerKey) {
100
+ lib.payload.data.backendManagerKey = self.payload.data.backendManagerKey;
101
+ } else if (self.payload.data.authenticationToken) {
102
+ lib.payload.data.authenticationToken = self.payload.data.authenticationToken;
103
+ }
104
+
98
105
  // lib.payload = {};
99
106
  //
100
107
  // // Set payload and user if it's provided
@@ -0,0 +1 @@
1
+ {}