@filen/utils 0.0.2 → 0.0.3
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/checklistParser.js +2 -2
- package/package.json +2 -2
package/dist/checklistParser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parse } from "node-html-parser";
|
|
1
|
+
import { parse } from "node-html-better-parser";
|
|
2
2
|
import { v4 as uuidv4 } from "uuid";
|
|
3
3
|
export class ChecklistParser {
|
|
4
4
|
parse(html) {
|
|
@@ -15,7 +15,7 @@ export class ChecklistParser {
|
|
|
15
15
|
for (const liItem of li) {
|
|
16
16
|
checklist.push({
|
|
17
17
|
checked,
|
|
18
|
-
content: liItem.
|
|
18
|
+
content: liItem.rawText ? liItem.rawText.trim() : "",
|
|
19
19
|
id: uuidv4()
|
|
20
20
|
});
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@filen/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A collection of utils for Filen",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
|
-
"node-html-parser": "^
|
|
37
|
+
"node-html-better-parser": "^1.5.8",
|
|
38
38
|
"tailwind-merge": "^3.3.1",
|
|
39
39
|
"uuid": "^13.0.0"
|
|
40
40
|
}
|