Skip to content

Commit

Permalink
Update style-to-object
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 30, 2023
1 parent 1d6741f commit 89b9292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ function parseStyle(state, ancestors, value) {
const result = {}

try {
// @ts-expect-error: `style-to-object` types are broken.
styleToObject(value, replacer)
} catch (error) {
if (!state.ignoreInvalidStyle) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"hast-util-whitespace": "^3.0.0",
"property-information": "^6.0.0",
"space-separated-tokens": "^2.0.0",
"style-to-object": "^0.4.0",
"style-to-object": "^1.0.0",
"unist-util-position": "^5.0.0",
"vfile-message": "^4.0.0"
},
Expand Down

0 comments on commit 89b9292

Please sign in to comment.