@tryghost/mg-blogger 0.1.20 → 0.1.22

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.
Files changed (2) hide show
  1. package/lib/process.js +6 -1
  2. package/package.json +3 -3
package/lib/process.js CHANGED
@@ -356,7 +356,12 @@ const processPost = async (postData, options) => {
356
356
  };
357
357
 
358
358
  const processPosts = async (posts, options) => {
359
- return Promise.all(posts.map(post => processPost(post, options)));
359
+ // Filter out falsy items in the post list
360
+ posts = posts.filter(i => i);
361
+
362
+ return Promise.all(posts.map((post) => {
363
+ return processPost(post, options);
364
+ }));
360
365
  };
361
366
 
362
367
  const all = async (input, {options}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-blogger",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-blogger",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -25,12 +25,12 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@tryghost/errors": "1.3.6",
28
- "@tryghost/kg-default-cards": "10.0.10",
28
+ "@tryghost/kg-default-cards": "10.1.0",
29
29
  "autop": "1.0.1",
30
30
  "cheerio": "1.0.0-rc.12",
31
31
  "node-fetch": "^3.3.1",
32
32
  "sanitize-html": "2.14.0",
33
33
  "simple-dom": "1.4.0"
34
34
  },
35
- "gitHead": "1d141c6accc1610a935622120720c36d6d3c2182"
35
+ "gitHead": "edbda067679c3a2ef8ae36df2eebccd60710368f"
36
36
  }