@tryghost/mg-chorus 0.1.30 → 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/processor.js +8 -1
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ This will get all posts, apply the tag 'News'
|
|
|
71
71
|
|
|
72
72
|
## Develop
|
|
73
73
|
|
|
74
|
-
This is a mono repository, managed with [
|
|
74
|
+
This is a mono repository, managed with [Nx](https://nx.dev/) and yarn workspaces.
|
|
75
75
|
|
|
76
76
|
Follow the instructions for the top-level repo.
|
|
77
77
|
1. `git clone` this repo & `cd` into it as usual
|
package/lib/processor.js
CHANGED
|
@@ -120,7 +120,14 @@ const processPost = (data, options) => {
|
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
const processPosts = (posts, options) => {
|
|
123
|
-
|
|
123
|
+
const results = [];
|
|
124
|
+
for (let i = 0; i < posts.length; i++) {
|
|
125
|
+
const post = posts[i];
|
|
126
|
+
if (post) {
|
|
127
|
+
results.push(processPost(post, options));
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return results;
|
|
124
131
|
};
|
|
125
132
|
|
|
126
133
|
const all = ({result, options}) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/mg-chorus",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-chorus",
|
|
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",
|
|
@@ -26,6 +26,5 @@
|
|
|
26
26
|
"@tryghost/debug": "2.0.3",
|
|
27
27
|
"@tryghost/errors": "3.0.3",
|
|
28
28
|
"@tryghost/string": "0.3.1"
|
|
29
|
-
}
|
|
30
|
-
"gitHead": "dfaf02f58e6598ec4abb56a568eb1b6a65ee12f4"
|
|
29
|
+
}
|
|
31
30
|
}
|