backend-manager 3.2.154 → 3.2.155

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.154",
3
+ "version": "3.2.155",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -61,7 +61,7 @@
61
61
  "moment": "^2.30.1",
62
62
  "nanoid": "^3.3.7",
63
63
  "node-fetch": "^2.7.0",
64
- "node-powertools": "^1.4.1",
64
+ "node-powertools": "^1.4.2",
65
65
  "npm-api": "^1.0.1",
66
66
  "paypal-server-api": "^2.0.6",
67
67
  "pushid": "^1.0.0",
@@ -83,8 +83,8 @@ Module.prototype.main = function () {
83
83
  // Fix other values
84
84
  payload.data.payload.author = payload.data.payload.author || 'alex';
85
85
  payload.data.payload.affiliate = payload.data.payload.affiliate || '';
86
- payload.data.payload.tags = payload.data.payload.tags || '';
87
- payload.data.payload.categories = payload.data.payload.categories || '';
86
+ payload.data.payload.tags = payload.data.payload.tags || [];
87
+ payload.data.payload.categories = payload.data.payload.categories || [];
88
88
 
89
89
  // Fix even more values
90
90
  payload.data.payload.layout = payload.data.payload.layout || 'app/blog/post';
@@ -63,6 +63,7 @@ Module.prototype.main = function (assistant, context) {
63
63
  settings.links = randomize(settings.links || []);
64
64
  settings.prompt = settings.prompt || '';
65
65
  settings.chance = settings.chance || 1.0;
66
+ settings.author = settings.author || 'alex';
66
67
  settings.app = await self.getAppData(appId).catch((e) => e);
67
68
 
68
69
  // Check for errors
@@ -317,7 +318,9 @@ Module.prototype.uploadPost = function (settings, article) {
317
318
  headerImageURL: article.headerImageUrl,
318
319
  body: article.body,
319
320
  id: self.postId++,
320
- author: 'alex',
321
+ author: settings.author,
322
+ categories: article.categories,
323
+ tags: article.keywords,
321
324
  path: 'ghostii',
322
325
  githubUser: settings.app.github.user,
323
326
  githubRepo: settings.app.github.repo,
@@ -849,7 +849,7 @@ Manager.prototype.setupFunctions = function (exporter, options) {
849
849
  // Setup cron jobs
850
850
  exporter.bm_cronDaily =
851
851
  self.libraries.functions
852
- .runWith({ memory: '256MB', timeoutSeconds: 60 * 5 })
852
+ .runWith({ memory: '256MB', timeoutSeconds: 60 * 5})
853
853
  .pubsub.schedule('every 24 hours')
854
854
  .onRun(async (context) => self._process((new (require(`${core}/cron/daily.js`))()).init(self, { context: context, })));
855
855
  };
@@ -40,9 +40,12 @@
40
40
  '$app',
41
41
  // Add more sources here
42
42
  ],
43
- links: [],
43
+ links: [
44
+ // ...
45
+ ],
44
46
  prompt: '',
45
47
  chance: 1.0,
48
+ author: 'alex',
46
49
  }
47
50
  ],
48
51
  }