@tryghost/mg-blogger 0.1.32 → 0.3.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 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 [lerna](https://lerna.js.org).
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
- return Promise.all(posts.map((post) => {
364
- return processPost(post, options);
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,7 +1,11 @@
1
1
  {
2
2
  "name": "@tryghost/mg-blogger",
3
- "version": "0.1.32",
4
- "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-blogger",
3
+ "version": "0.3.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/TryGhost/migrate.git",
7
+ "directory": "packages/mg-blogger"
8
+ },
5
9
  "author": "Ghost Foundation",
6
10
  "license": "MIT",
7
11
  "main": "index.js",
@@ -9,8 +13,8 @@
9
13
  "scripts": {
10
14
  "dev": "echo \"Implement me!\"",
11
15
  "test": "node --test 'test/**/*.test.js'",
12
- "lint": "eslint . --ext .js --cache",
13
- "posttest": "yarn lint"
16
+ "posttest": "yarn lint",
17
+ "lint": "eslint . --ext .js --cache"
14
18
  },
15
19
  "files": [
16
20
  "index.js",
@@ -30,6 +34,5 @@
30
34
  "node-fetch": "3.3.2",
31
35
  "sanitize-html": "2.17.2",
32
36
  "simple-dom": "1.4.0"
33
- },
34
- "gitHead": "dfaf02f58e6598ec4abb56a568eb1b6a65ee12f4"
37
+ }
35
38
  }