@tryghost/mg-substack 0.9.2 → 0.11.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
@@ -129,7 +129,7 @@ It's possible to pass more options, in order to achieve a better migration file
129
129
 
130
130
  ## Develop
131
131
 
132
- This is a mono repository, managed with [lerna](https://lerna.js.org).
132
+ This is a mono repository, managed with [Nx](https://nx.dev/) and yarn workspaces.
133
133
 
134
134
  Follow the instructions for the top-level repo.
135
135
  1. `git clone` this repo & `cd` into it as usual
package/lib/process.js CHANGED
@@ -862,9 +862,13 @@ export default async (input, ctx) => {
862
862
  }
863
863
 
864
864
  if (input.posts && input.posts.length > 0) {
865
- output.posts = input.posts.map((post) => {
866
- return processPost(post, siteUrl, options);
867
- });
865
+ output.posts = [];
866
+ for (let i = 0; i < input.posts.length; i++) {
867
+ const post = input.posts[i];
868
+ if (post) {
869
+ output.posts.push(processPost(post, siteUrl, options));
870
+ }
871
+ }
868
872
  }
869
873
 
870
874
  return output;
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@tryghost/mg-substack",
3
- "version": "0.9.2",
4
- "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-substack",
3
+ "version": "0.11.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/TryGhost/migrate.git",
7
+ "directory": "packages/mg-substack"
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",
@@ -26,14 +30,13 @@
26
30
  "@tryghost/debug": "2.0.3",
27
31
  "@tryghost/errors": "3.0.3",
28
32
  "@tryghost/kg-default-cards": "10.2.10",
29
- "@tryghost/mg-fs-utils": "0.16.7",
30
- "@tryghost/mg-utils": "0.1.2",
33
+ "@tryghost/mg-fs-utils": "0.18.0",
34
+ "@tryghost/mg-utils": "0.3.0",
31
35
  "@tryghost/string": "0.3.1",
32
36
  "he": "1.2.0",
33
37
  "html-entities": "2.6.0",
34
- "lodash": "4.17.23",
38
+ "lodash": "4.18.1",
35
39
  "simple-dom": "1.4.0",
36
40
  "srcset": "5.0.3"
37
- },
38
- "gitHead": "dfaf02f58e6598ec4abb56a568eb1b6a65ee12f4"
41
+ }
39
42
  }