backend-manager 2.0.22 → 2.0.25
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 +3 -3
- package/src/cli/cli.js +1 -1
- package/src/manager/index.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backend-manager",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25",
|
|
4
4
|
"description": "Quick tools for developing Firebase functions",
|
|
5
5
|
"main": "src/manager/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@google-cloud/storage": "^5.19.4",
|
|
32
32
|
"@sendgrid/mail": "^7.6.2",
|
|
33
33
|
"@sentry/node": "^6.19.7",
|
|
34
|
-
"backend-assistant": "^0.0.
|
|
34
|
+
"backend-assistant": "^0.0.64",
|
|
35
35
|
"busboy": "^1.6.0",
|
|
36
36
|
"chalk": "^4.1.2",
|
|
37
37
|
"cors": "^2.8.5",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"ultimate-jekyll-poster": "^0.0.10",
|
|
58
58
|
"universal-analytics": "^0.5.3",
|
|
59
59
|
"uuid": "^8.3.2",
|
|
60
|
-
"wonderful-fetch": "^0.0.
|
|
60
|
+
"wonderful-fetch": "^0.0.4",
|
|
61
61
|
"yargs": "^17.4.1"
|
|
62
62
|
},
|
|
63
63
|
"files": [
|
package/src/cli/cli.js
CHANGED
|
@@ -208,7 +208,7 @@ Main.prototype.getRulesFile = function () {
|
|
|
208
208
|
Main.prototype.setup = async function () {
|
|
209
209
|
let self = this;
|
|
210
210
|
let cwd = fs.cwd();
|
|
211
|
-
log(chalk.green(`\n---- RUNNING SETUP ----`));
|
|
211
|
+
log(chalk.green(`\n---- RUNNING v${this.default.version} SETUP ----`));
|
|
212
212
|
this.package = fs.read(`${this.firebaseProjectPath}/functions/package.json`) || '{}';
|
|
213
213
|
this.firebaseJSON = fs.read(`${this.firebaseProjectPath}/firebase.json`) || '{}';
|
|
214
214
|
this.firebaseRC = fs.read(`${this.firebaseProjectPath}/.firebaserc`) || '{}';
|
package/src/manager/index.js
CHANGED
|
@@ -33,6 +33,8 @@ Manager.prototype.init = function (exporter, options) {
|
|
|
33
33
|
options.useFirebaseLogger = typeof options.useFirebaseLogger === 'undefined' ? true : options.useFirebaseLogger;
|
|
34
34
|
options.serviceAccountPath = typeof options.serviceAccountPath === 'undefined' ? 'service-account.json' : options.serviceAccountPath;
|
|
35
35
|
options.uniqueAppName = options.uniqueAppName || undefined;
|
|
36
|
+
options.assistant = options.assistant || {};
|
|
37
|
+
// options.assistant.optionsLogString = options.assistant.optionsLogString || undefined;
|
|
36
38
|
|
|
37
39
|
// Load libraries
|
|
38
40
|
self.libraries = {
|
|
@@ -63,7 +65,7 @@ Manager.prototype.init = function (exporter, options) {
|
|
|
63
65
|
self.libraries.functions.config()
|
|
64
66
|
);
|
|
65
67
|
|
|
66
|
-
self.assistant = self.Assistant().init();
|
|
68
|
+
self.assistant = self.Assistant().init(undefined, options.assistant);
|
|
67
69
|
|
|
68
70
|
process.env.ENVIRONMENT = !process.env.ENVIRONMENT ? self.assistant.meta.environment : process.env.ENVIRONMENT;
|
|
69
71
|
|
|
@@ -73,7 +75,9 @@ Manager.prototype.init = function (exporter, options) {
|
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
// Setup options features
|
|
78
|
+
console.log('----1', options.uniqueAppName);
|
|
76
79
|
if (self.options.initialize) {
|
|
80
|
+
console.log('----2', options.uniqueAppName);
|
|
77
81
|
// console.log('Initializing:', self.project);
|
|
78
82
|
try {
|
|
79
83
|
// console.log('----self.project.databaseURL', self.project.databaseURL);
|