@jocmp/mercury-parser 3.0.6 → 3.0.8
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/dist/generate-custom-parser.js +189 -62
- package/dist/generate-custom-parser.js.map +1 -1
- package/dist/mercury.js +151 -37
- package/dist/mercury.js.map +1 -1
- package/dist/mercury.web.js +1 -1
- package/dist/mercury.web.js.map +1 -1
- package/package.json +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jocmp/mercury-parser",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "Mercury Parser transforms web pages into clean text. Publishers and programmers use it to make the web make sense, and readers use it to read any web article comfortably.",
|
|
5
5
|
"author": "jocmp <hello@jocmp.com>",
|
|
6
6
|
"homepage": "https://github.com/jocmp/mercury-parser",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"src/shims/"
|
|
26
26
|
],
|
|
27
27
|
"main": "./dist/mercury.js",
|
|
28
|
+
"module": "./dist/mercury.esm.js",
|
|
28
29
|
"bin": {
|
|
29
30
|
"mercury-parser": "./cli.js"
|
|
30
31
|
},
|
|
@@ -46,7 +47,8 @@
|
|
|
46
47
|
"test:web": "vitest run --config vitest.config.js",
|
|
47
48
|
"test:build": "cd ./scripts && jest check-build.test.js",
|
|
48
49
|
"watch:test": "jest --watch",
|
|
49
|
-
"generate-parser": "node ./dist/generate-custom-parser.js"
|
|
50
|
+
"generate-parser": "node ./dist/generate-custom-parser.js",
|
|
51
|
+
"prepare": "husky"
|
|
50
52
|
},
|
|
51
53
|
"engines": {
|
|
52
54
|
"node": ">=22"
|
|
@@ -86,7 +88,7 @@
|
|
|
86
88
|
"jest": "^30.2.0",
|
|
87
89
|
"lint-staged": "^16.2.7",
|
|
88
90
|
"nock": "^14.0.10",
|
|
89
|
-
"ora": "^
|
|
91
|
+
"ora": "^9.3.0",
|
|
90
92
|
"playwright": "^1.57.0",
|
|
91
93
|
"prettier": "^3.8.1",
|
|
92
94
|
"remark-cli": "^12.0.1",
|
|
@@ -94,7 +96,7 @@
|
|
|
94
96
|
"remark-preset-lint-recommended": "^7.0.0",
|
|
95
97
|
"rollup": "^2.79.2",
|
|
96
98
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
97
|
-
"vite-plugin-node-polyfills": "^0.
|
|
99
|
+
"vite-plugin-node-polyfills": "^0.26.0",
|
|
98
100
|
"vitest": "^4.0.17"
|
|
99
101
|
},
|
|
100
102
|
"dependencies": {
|
|
@@ -103,7 +105,6 @@
|
|
|
103
105
|
"cheerio": "^1.1.2",
|
|
104
106
|
"dayjs": "^1.11.19",
|
|
105
107
|
"difflib": "github:postlight/difflib.js",
|
|
106
|
-
"ellipsize": "0.7.0",
|
|
107
108
|
"iconv-lite": "0.7.2",
|
|
108
109
|
"postman-request": "^2.88.1-postman.31",
|
|
109
110
|
"string-direction": "^0.1.2",
|