@tryghost/mg-blogger 0.1.20 → 0.1.21
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/lib/process.js +6 -1
- package/package.json +2 -2
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-blogger",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"sanitize-html": "2.14.0",
|
|
33
33
|
"simple-dom": "1.4.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f0a0ccbcebbcb12911381dd182782a084e3c82fb"
|
|
36
36
|
}
|