@tryghost/url-utils 5.1.1 → 5.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/LICENSE +1 -1
- package/README.md +1 -1
- package/lib/utils/html-transform.js +9 -1
- package/package.json +12 -13
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -3,7 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.earlyExitMatchStr = exports.transformAttributes = void 0;
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
5
5
|
const cheerio = require('cheerio');
|
|
6
|
-
exports.transformAttributes = [
|
|
6
|
+
exports.transformAttributes = [
|
|
7
|
+
'href',
|
|
8
|
+
'src',
|
|
9
|
+
'srcset',
|
|
10
|
+
'style',
|
|
11
|
+
'data-kg-background-image',
|
|
12
|
+
'data-kg-custom-thumbnail',
|
|
13
|
+
'data-kg-thumbnail'
|
|
14
|
+
];
|
|
7
15
|
exports.earlyExitMatchStr = exports.transformAttributes
|
|
8
16
|
.map(attr => `${attr}=`)
|
|
9
17
|
.join('|');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/url-utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/TryGhost/SDK.git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"dev": "echo \"Implement me!\"",
|
|
15
15
|
"pretest": "yarn build",
|
|
16
|
-
"test": "NODE_ENV=testing c8 --src lib --
|
|
16
|
+
"test": "NODE_ENV=testing c8 --src lib --lines 95 --reporter text --reporter cobertura --reporter html mocha './test/**/*.test.js'",
|
|
17
17
|
"build": "tsc -p tsconfig.json",
|
|
18
18
|
"lint": "eslint src test --ext .js,.ts --cache",
|
|
19
19
|
"prepare": "NODE_ENV=production yarn build",
|
|
@@ -26,11 +26,10 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@tryghost/config-url-helpers": "^1.0.
|
|
30
|
-
"@types/
|
|
31
|
-
"@types/
|
|
32
|
-
"
|
|
33
|
-
"c8": "10.1.3",
|
|
29
|
+
"@tryghost/config-url-helpers": "^1.0.21",
|
|
30
|
+
"@types/lodash": "4.17.24",
|
|
31
|
+
"@types/node": "24.10.13",
|
|
32
|
+
"c8": "11.0.0",
|
|
34
33
|
"mocha": "11.7.5",
|
|
35
34
|
"rewire": "9.0.1",
|
|
36
35
|
"should": "13.2.3",
|
|
@@ -38,13 +37,13 @@
|
|
|
38
37
|
"typescript": "5.9.3"
|
|
39
38
|
},
|
|
40
39
|
"dependencies": {
|
|
41
|
-
"cheerio": "
|
|
42
|
-
"lodash": "
|
|
43
|
-
"moment": "
|
|
44
|
-
"moment-timezone": "
|
|
40
|
+
"cheerio": "1.2.0",
|
|
41
|
+
"lodash": "4.17.23",
|
|
42
|
+
"moment": "2.30.1",
|
|
43
|
+
"moment-timezone": "0.6.0",
|
|
45
44
|
"remark": "11.0.2",
|
|
46
45
|
"remark-footnotes": "1.0.0",
|
|
47
|
-
"unist-util-visit": "
|
|
46
|
+
"unist-util-visit": "2.0.3"
|
|
48
47
|
},
|
|
49
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "5cec91a277a9f8c1a574921761cf64d3d27e8ea8"
|
|
50
49
|
}
|