@tryghost/mg-linkfixer 0.3.1 → 0.4.1
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/index.js +3 -1
- package/lib/LinkFixer.js +4 -4
- package/package.json +9 -6
package/index.js
CHANGED
package/lib/LinkFixer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import cheerio from 'cheerio';
|
|
4
4
|
|
|
5
5
|
// @TODO: expand this list
|
|
6
6
|
const htmlFields = ['html'];
|
|
@@ -133,4 +133,4 @@ class LinkFixer {
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
export default LinkFixer;
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/mg-linkfixer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-linkfixer",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
8
|
+
"type": "module",
|
|
8
9
|
"scripts": {
|
|
9
10
|
"dev": "echo \"Implement me!\"",
|
|
10
|
-
"test": "
|
|
11
|
+
"test": "node --experimental-vm-modules $(yarn bin jest)",
|
|
11
12
|
"lint": "eslint . --ext .js --cache",
|
|
12
13
|
"posttest": "yarn lint"
|
|
13
14
|
},
|
|
@@ -19,13 +20,15 @@
|
|
|
19
20
|
"access": "public"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"@tryghost/listr-smart-renderer": "^0.4.0",
|
|
24
|
+
"eslint": "8.25.0",
|
|
25
|
+
"jest": "29.1.2",
|
|
26
|
+
"jest-extended": "3.1.0",
|
|
27
|
+
"listr": "0.14.3"
|
|
25
28
|
},
|
|
26
29
|
"dependencies": {
|
|
27
30
|
"cheerio": "^1.0.0-rc.3",
|
|
28
31
|
"lodash": "4.17.21"
|
|
29
32
|
},
|
|
30
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "8f119b6c370337a90aa51dfbdb8d46ed7f5d154c"
|
|
31
34
|
}
|