Skip to content

Commit 2da292c

Browse files
committed
fix(parse5-utils): fix MJS exports and docs
1 parent 26a276b commit 2da292c

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.changeset/silly-avocados-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@web/parse5-utils': patch
3+
---
4+
5+
fix MJS exports and fix docs about exported utils

packages/parse5-utils/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,20 @@ const htmlWithInjectedScript = appendToDocument(
9191
- isElementNode
9292
- setNodeSourceCodeLocation
9393
- getNodeSourceCodeLocation
94-
- updateNodeSourceCodeLocation
9594
- isHtmlFragment
9695
- hasAttribute
9796
- getAttribute
9897
- getAttributes
9998
- setAttribute
10099
- setAttributes
100+
- removeAttribute
101101
- setTextContent
102102
- getTextContent
103-
- removeAttribute
104103
- remove
105104
- findNode
106105
- findNodes
107106
- findElement
108107
- findElements
108+
- prepend
109109
- prependToDocument
110110
- appendToDocument

packages/parse5-utils/index.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,21 @@ const {
3434
isElementNode,
3535
setNodeSourceCodeLocation,
3636
getNodeSourceCodeLocation,
37-
updateNodeSourceCodeLocation,
3837
isHtmlFragment,
3938
hasAttribute,
4039
getAttribute,
4140
getAttributes,
4241
setAttribute,
4342
setAttributes,
4443
removeAttribute,
44+
setTextContent,
45+
getTextContent,
4546
remove,
4647
findNode,
4748
findNodes,
4849
findElement,
4950
findElements,
51+
prepend,
5052
prependToDocument,
5153
appendToDocument,
5254
} = cjsEntrypoint;
@@ -85,19 +87,21 @@ export {
8587
isElementNode,
8688
setNodeSourceCodeLocation,
8789
getNodeSourceCodeLocation,
88-
updateNodeSourceCodeLocation,
8990
isHtmlFragment,
9091
hasAttribute,
9192
getAttribute,
9293
getAttributes,
9394
setAttribute,
9495
setAttributes,
9596
removeAttribute,
97+
setTextContent,
98+
getTextContent,
9699
remove,
97100
findNode,
98101
findNodes,
99102
findElement,
100103
findElements,
104+
prepend,
101105
prependToDocument,
102106
appendToDocument,
103107
};

0 commit comments

Comments
 (0)