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

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 7, 2018
1 parent bd92b02 commit 91bfa6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ function parseStyle(value, tagName) {

try {
style(value, iterator)
} catch (err) {
err.message = tagName + '[style]' + err.message.slice('undefined'.length)
throw err
} catch (error) {
error.message =
tagName + '[style]' + error.message.slice('undefined'.length)
throw error
}

return result
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"dependencies": {
"comma-separated-tokens": "^1.0.0",
"property-information": "^4.0.0",
"property-information": "^5.0.0",
"space-separated-tokens": "^1.0.0",
"style-to-object": "^0.2.1",
"unist-util-is": "^2.0.0",
Expand All @@ -52,7 +52,7 @@
"scripts": {
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
"build-bundle": "browserify index.js -s hastToHyperscript > hast-to-hyperscript.js",
"build-mangle": "browserify index.js -p tinyify -s hastToHyperscript > hast-to-hyperscript.min.js",
"build-mangle": "browserify index.js -s hastToHyperscript -p tinyify > hast-to-hyperscript.min.js",
"build": "npm run build-bundle && npm run build-mangle",
"test-api": "node test",
"test-coverage": "nyc --reporter lcov tape test.js",
Expand Down

0 comments on commit 91bfa6d

Please sign in to comment.