backend-manager 3.2.87 → 3.2.89
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.
|
|
3
|
+
"version": "3.2.89",
|
|
4
4
|
"description": "Quick tools for developing Firebase functions",
|
|
5
5
|
"main": "src/manager/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"npm-api": "^1.0.1",
|
|
61
61
|
"paypal-server-api": "^2.0.0",
|
|
62
62
|
"pushid": "^1.0.0",
|
|
63
|
-
"resolve-account": "^1.0.
|
|
63
|
+
"resolve-account": "^1.0.22",
|
|
64
64
|
"semver": "^7.6.0",
|
|
65
65
|
"shortid": "^2.2.16",
|
|
66
66
|
"sizeitup": "^1.0.7",
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
"wonderful-log": "^1.0.5",
|
|
72
72
|
"yargs": "^17.7.2"
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
const path = require('path');
|
|
7
7
|
const powertools = require('node-powertools');
|
|
8
|
+
const { merge } = require('lodash');
|
|
8
9
|
|
|
9
10
|
function Middleware(m, req, res) {
|
|
10
11
|
const self = this;
|
|
@@ -35,6 +36,7 @@ Middleware.prototype.run = function (libPath, options) {
|
|
|
35
36
|
options.setupUsage = typeof options.setupUsage === 'boolean' ? options.setupUsage : true;
|
|
36
37
|
options.setupSettings = typeof options.setupSettings === 'undefined' ? true : options.setupSettings;
|
|
37
38
|
options.cleanSettings = typeof options.cleanSettings === 'undefined' ? true : options.cleanSettings;
|
|
39
|
+
options.includeNonSchemaSettings = typeof options.includeNonSchemaSettings === 'undefined' ? false : options.includeNonSchemaSettings;
|
|
38
40
|
options.schema = typeof options.schema === 'undefined' ? undefined : options.schema;
|
|
39
41
|
|
|
40
42
|
// Log
|
|
@@ -88,6 +90,11 @@ Middleware.prototype.run = function (libPath, options) {
|
|
|
88
90
|
return assistant.respond(new Error(`Unable to resolve schema ${options.schema}: ${e.message}`), {code: 500, sentry: true});
|
|
89
91
|
}
|
|
90
92
|
|
|
93
|
+
// Merge settings with data
|
|
94
|
+
if (options.includeNonSchemaSettings) {
|
|
95
|
+
assistant.settings = merge(data, assistant.settings)
|
|
96
|
+
}
|
|
97
|
+
|
|
91
98
|
// Clean settings by looping through and trimming all strings
|
|
92
99
|
if (options.cleanSettings) {
|
|
93
100
|
clean(assistant.settings);
|