backend-manager 3.2.133 → 3.2.134

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.133",
3
+ "version": "3.2.134",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -99,7 +99,7 @@ Manager.prototype.init = function (exporter, options) {
99
99
  // Load config
100
100
  self.config = merge(
101
101
  // Load basic config
102
- requireJSON5(self.project.backendManagerConfigPath, true),
102
+ merge({}, requireJSON5('../../templates/backend-manager-config.json', true), requireJSON5(self.project.backendManagerConfigPath, true)),
103
103
  // Load ENV config as a fallback
104
104
  requireJSON5(path.resolve(self.cwd, '.runtimeconfig.json'), options.projectType === 'firebase'),
105
105
  // Finally, load the functions config
@@ -204,7 +204,6 @@ Manager.prototype.init = function (exporter, options) {
204
204
  databaseURL: self.project.databaseURL || `https://${self.project.projectId}.firebaseio.com`,
205
205
  }, options.uniqueAppName);
206
206
 
207
- // const loadedProjectId = get(self.libraries.initializedAdmin, 'options_.credential.projectId', null);
208
207
  const loadedProjectId = serviceAccount.project_id;
209
208
  if (!loadedProjectId || !loadedProjectId.includes(appId)) {
210
209
  self.assistant.error(`Loaded app may have wrong service account: ${loadedProjectId} =/= ${appId}`);