backend-manager 3.2.163 → 3.2.164
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.164",
|
|
4
4
|
"description": "Quick tools for developing Firebase functions",
|
|
5
5
|
"main": "src/manager/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"glob": "^10.4.1",
|
|
52
52
|
"hcaptcha": "^0.1.1",
|
|
53
53
|
"inquirer": "^8.2.5",
|
|
54
|
+
"itwcw-package-analytics": "^1.0.0",
|
|
54
55
|
"json5": "^2.2.3",
|
|
55
56
|
"jwt-decode": "^3.1.2",
|
|
56
57
|
"lodash": "^4.17.21",
|
|
@@ -76,4 +77,4 @@
|
|
|
76
77
|
"wonderful-log": "^1.0.5",
|
|
77
78
|
"yargs": "^17.7.2"
|
|
78
79
|
}
|
|
79
|
-
}
|
|
80
|
+
}
|
|
@@ -277,6 +277,7 @@ Module.prototype.requestGhostii = function (settings, content) {
|
|
|
277
277
|
insertLinks: true,
|
|
278
278
|
headerImageUrl: 'unsplash',
|
|
279
279
|
url: settings.app.url,
|
|
280
|
+
sectionQuantity: powertools.random(3, 6, {mode: 'gaussian'}),
|
|
280
281
|
feedUrl: `${settings.app.url}/feeds/posts.json`,
|
|
281
282
|
links: settings.links,
|
|
282
283
|
},
|
package/src/manager/index.js
CHANGED
|
@@ -177,14 +177,14 @@ Manager.prototype.init = function (exporter, options) {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
if (!appId) {
|
|
180
|
-
|
|
180
|
+
self.assistant.warn('⚠️ Missing config.app.id');
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
// Setup sentry
|
|
184
184
|
if (self.options.sentry) {
|
|
185
185
|
const sentryRelease = `${appId || self.project.projectId}@${self.package.version}`;
|
|
186
186
|
const sentryDSN = self.config?.sentry?.dsn || '';
|
|
187
|
-
//
|
|
187
|
+
// self.assistant.log('Sentry', sentryRelease, sentryDSN);
|
|
188
188
|
|
|
189
189
|
self.libraries.sentry = require('@sentry/node');
|
|
190
190
|
self.libraries.sentry.init({
|
|
@@ -937,7 +937,7 @@ Manager.prototype.setupCustomServer = function (_library, options) {
|
|
|
937
937
|
|
|
938
938
|
// Install process
|
|
939
939
|
routes.forEach((file) => {
|
|
940
|
-
//
|
|
940
|
+
// self.assistant.log('---file', file);
|
|
941
941
|
// Require the file
|
|
942
942
|
const cors = self.libraries.cors;
|
|
943
943
|
|
|
@@ -184,13 +184,15 @@ OpenAI.prototype.request = function (options) {
|
|
|
184
184
|
// console.log('*** input!!!', input.content.slice(0, 50), input.path);
|
|
185
185
|
// console.log('*** input.content', input.content.slice(0, 50));
|
|
186
186
|
// console.log('*** input.path', input.path);
|
|
187
|
-
// _log('Loading', input);
|
|
188
187
|
|
|
189
188
|
let text = '';
|
|
190
189
|
|
|
191
190
|
// Load text
|
|
192
191
|
if (input.path) {
|
|
193
192
|
const exists = jetpack.exists(input.path);
|
|
193
|
+
|
|
194
|
+
_log('Reading prompt from path:', input.path);
|
|
195
|
+
|
|
194
196
|
if (!exists) {
|
|
195
197
|
return new Error(`Path ${input.path} not found`);
|
|
196
198
|
} else if (exists === 'dir') {
|