@tryghost/mg-blogger 0.1.31 → 0.2.0
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/README.md +1 -1
- package/lib/process.js +7 -3
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ This will fetch posts only from 2 sites, and add a 'Blog Posts' tag to each post
|
|
|
77
77
|
|
|
78
78
|
## Develop
|
|
79
79
|
|
|
80
|
-
This is a mono repository, managed with [
|
|
80
|
+
This is a mono repository, managed with [Nx](https://nx.dev/) and yarn workspaces.
|
|
81
81
|
|
|
82
82
|
Follow the instructions for the top-level repo.
|
|
83
83
|
1. `git clone` this repo & `cd` into it as usual
|
package/lib/process.js
CHANGED
|
@@ -360,9 +360,13 @@ const processPosts = async (posts, options) => {
|
|
|
360
360
|
// Filter out falsy items in the post list
|
|
361
361
|
posts = posts.filter(i => i);
|
|
362
362
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
363
|
+
const results = [];
|
|
364
|
+
|
|
365
|
+
for (let i = 0; i < posts.length; i++) {
|
|
366
|
+
results.push(await processPost(posts[i], options));
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
return results;
|
|
366
370
|
};
|
|
367
371
|
|
|
368
372
|
const all = async (input, {options}) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/mg-blogger",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-blogger",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "echo \"Implement me!\"",
|
|
11
11
|
"test": "node --test 'test/**/*.test.js'",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"posttest": "yarn lint",
|
|
13
|
+
"lint": "eslint . --ext .js --cache"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"index.js",
|
|
@@ -23,13 +23,12 @@
|
|
|
23
23
|
"eslint": "8.57.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tryghost/errors": "3.0.
|
|
27
|
-
"@tryghost/kg-default-cards": "10.2.
|
|
26
|
+
"@tryghost/errors": "3.0.3",
|
|
27
|
+
"@tryghost/kg-default-cards": "10.2.10",
|
|
28
28
|
"autop": "1.0.1",
|
|
29
29
|
"cheerio": "1.2.0",
|
|
30
30
|
"node-fetch": "3.3.2",
|
|
31
|
-
"sanitize-html": "2.17.
|
|
31
|
+
"sanitize-html": "2.17.2",
|
|
32
32
|
"simple-dom": "1.4.0"
|
|
33
|
-
}
|
|
34
|
-
"gitHead": "e1680568191322d738c188f03298910aa3622735"
|
|
33
|
+
}
|
|
35
34
|
}
|