Socket
Socket
Sign inDemoInstall

rehype-minify-whitespace

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-minify-whitespace - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

6

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc