@thi.ng/hiccup-html-parse 0.3.15 → 0.3.18
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/CHANGELOG.md +1 -1
- package/README.md +7 -3
- package/index.d.ts +1 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,9 +7,13 @@
|
|
|
7
7
|

|
|
8
8
|
[](https://mastodon.thi.ng/@toxi)
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
> [!NOTE]
|
|
11
|
+
> This is one of 189 standalone projects, maintained as part
|
|
12
|
+
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
13
|
+
> and anti-framework.
|
|
14
|
+
>
|
|
15
|
+
> 🚀 Help me to work full-time on these projects by [sponsoring me on
|
|
16
|
+
> GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
|
|
13
17
|
|
|
14
18
|
- [About](#about)
|
|
15
19
|
- [Basic usage](#basic-usage)
|
package/index.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export interface ParseOpts {
|
|
|
74
74
|
debug: boolean;
|
|
75
75
|
}
|
|
76
76
|
export type Element = [string, Record<string, any>, ...ElementBody[]];
|
|
77
|
-
type ElementBody = string | Element;
|
|
77
|
+
export type ElementBody = string | Element;
|
|
78
78
|
export interface ParseResult {
|
|
79
79
|
type: "success" | "partial" | "fail" | "error";
|
|
80
80
|
loc?: {
|
|
@@ -107,5 +107,4 @@ export declare const parseRaw: (src: string, opts?: Partial<ContextOpts>) => {
|
|
|
107
107
|
* @param opts
|
|
108
108
|
*/
|
|
109
109
|
export declare const parseHtml: (src: string, opts?: Partial<ParseOpts>) => ParseResult;
|
|
110
|
-
export {};
|
|
111
110
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-html-parse",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "Well-formed HTML parsing and customizable transformation to nested JS arrays in @thi.ng/hiccup format",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
39
|
-
"@thi.ng/defmulti": "^3.0.
|
|
40
|
-
"@thi.ng/parse": "^2.4.
|
|
41
|
-
"@thi.ng/strings": "^3.7.
|
|
38
|
+
"@thi.ng/api": "^8.9.20",
|
|
39
|
+
"@thi.ng/defmulti": "^3.0.18",
|
|
40
|
+
"@thi.ng/parse": "^2.4.18",
|
|
41
|
+
"@thi.ng/strings": "^3.7.11"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@microsoft/api-extractor": "^7.39.0",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"status": "alpha",
|
|
85
85
|
"year": 2023
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "3fa30b2dc2de762f24fd64b881b68d4da33d4c38\n"
|
|
88
88
|
}
|