rehype-minify-whitespace
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -48,3 +48,3 @@ /** | ||
var head | ||
var prev | ||
var previous | ||
var next | ||
@@ -56,3 +56,3 @@ var value | ||
if (text(node)) { | ||
prev = parent.children[index - 1] | ||
previous = parent.children[index - 1] | ||
next = parent.children[index + 1] | ||
@@ -64,3 +64,3 @@ | ||
if (empty(value.charAt(0)) && viable(prev)) { | ||
if (empty(value.charAt(0)) && viable(previous)) { | ||
start++ | ||
@@ -67,0 +67,0 @@ } |
{ | ||
"name": "rehype-minify-whitespace", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "rehype plugin to collapse whitespace", | ||
@@ -9,7 +9,18 @@ "license": "MIT", | ||
"rehype", | ||
"rehype-plugin", | ||
"plugin", | ||
"html", | ||
"minify", | ||
"mangle", | ||
"collapse", | ||
"whitespace" | ||
"whitespace", | ||
"white", | ||
"space" | ||
], | ||
"repository": "https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-minify-whitespace", | ||
"bugs": "https://github.com/rehypejs/rehype-minify/issues", | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/unified" | ||
}, | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
@@ -31,5 +42,5 @@ "contributors": [ | ||
"unist-util-is": "^4.0.0", | ||
"unist-util-modify-children": "^1.0.0" | ||
"unist-util-modify-children": "^2.0.0" | ||
}, | ||
"xo": false | ||
} |
@@ -48,4 +48,4 @@ <!--This file is generated by `build-packages.js`--> | ||
This project has a [Code of Conduct][coc]. | ||
By interacting with this repository, organisation, or community you agree to | ||
This project has a [code of conduct][coc]. | ||
By interacting with this repository, organization, or community you agree to | ||
abide by its terms. | ||
@@ -79,3 +79,3 @@ | ||
[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg | ||
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg | ||
@@ -82,0 +82,0 @@ [chat]: https://spectrum.chat/unified/rehype |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6704
+ Addedunist-util-modify-children@2.0.0(transitive)
- Removedunist-util-modify-children@1.1.6(transitive)