Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 91bfa6d

Browse files
committed
Fix style
1 parent bd92b02 commit 91bfa6d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,10 @@ function parseStyle(value, tagName) {
207207

208208
try {
209209
style(value, iterator)
210-
} catch (err) {
211-
err.message = tagName + '[style]' + err.message.slice('undefined'.length)
212-
throw err
210+
} catch (error) {
211+
error.message =
212+
tagName + '[style]' + error.message.slice('undefined'.length)
213+
throw error
213214
}
214215

215216
return result

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
],
2727
"dependencies": {
2828
"comma-separated-tokens": "^1.0.0",
29-
"property-information": "^4.0.0",
29+
"property-information": "^5.0.0",
3030
"space-separated-tokens": "^1.0.0",
3131
"style-to-object": "^0.2.1",
3232
"unist-util-is": "^2.0.0",
@@ -52,7 +52,7 @@
5252
"scripts": {
5353
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
5454
"build-bundle": "browserify index.js -s hastToHyperscript > hast-to-hyperscript.js",
55-
"build-mangle": "browserify index.js -p tinyify -s hastToHyperscript > hast-to-hyperscript.min.js",
55+
"build-mangle": "browserify index.js -s hastToHyperscript -p tinyify > hast-to-hyperscript.min.js",
5656
"build": "npm run build-bundle && npm run build-mangle",
5757
"test-api": "node test",
5858
"test-coverage": "nyc --reporter lcov tape test.js",

0 commit comments

Comments
 (0)