backend-manager 3.2.142 → 3.2.144

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.142",
3
+ "version": "3.2.144",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -7,8 +7,11 @@ const PROMPT = `
7
7
  Company: {name}: {description}
8
8
  Current Date: {date}
9
9
  Instructions: {prompt}
10
- Topic Suggestions: {suggestion}
10
+
11
+ Use the following information to find a topic related to our company description:
12
+ {suggestion}
11
13
  `
14
+ const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36';
12
15
 
13
16
  function Module() {
14
17
 
@@ -191,6 +194,9 @@ Module.prototype.getURLContent = function (url) {
191
194
  timeout: 30000,
192
195
  tries: 3,
193
196
  response: 'text',
197
+ headers: {
198
+ 'User-Agent': USER_AGENT,
199
+ }
194
200
  })
195
201
  .then((r) => {
196
202
  return resolve(extractBodyContent(r));
@@ -237,6 +243,7 @@ Module.prototype.requestGhostii = function (content) {
237
243
  keywords: [''],
238
244
  description: content,
239
245
  insertLinks: true,
246
+ headerImageUrl: 'unsplash',
240
247
  },
241
248
  })
242
249
  .then((r) => resolve(r))