Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdast-squeeze-paragraphs

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-squeeze-paragraphs - npm Package Compare versions

Comparing version 3.0.5 to 4.0.0

4

index.js

@@ -9,4 +9,4 @@ 'use strict'

function squeeze(ast) {
return remove(ast, {cascade: false}, isEmptyParagraph)
function squeeze(tree) {
return remove(tree, {cascade: false}, isEmptyParagraph)
}

@@ -13,0 +13,0 @@

{
"name": "mdast-squeeze-paragraphs",
"version": "3.0.5",
"description": "Remove empty paragraphs from mdast tree",
"version": "4.0.0",
"description": "mdast utility to remove empty paragraphs from a tree",
"license": "MIT",
"keywords": [
"unist",
"mdast",
"mdast-util",
"util",
"utility",
"squeeze",

@@ -13,6 +17,5 @@ "remove",

"whitespace",
"ast",
"tree",
"transform",
"transformation",
"util",
"clean"

@@ -22,2 +25,6 @@ ],

"bugs": "https://github.com/syntax-tree/mdast-squeeze-paragraphs/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Eugene Sharygin <eush77@gmail.com>",

@@ -32,12 +39,12 @@ "contributors": [

"dependencies": {
"unist-util-remove": "^1.0.0"
"unist-util-remove": "^2.0.0"
},
"devDependencies": {
"nyc": "^14.0.0",
"nyc": "^15.0.0",
"prettier": "^1.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^5.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"unist-builder": "^1.0.0",
"xo": "^0.24.0"
"unist-builder": "^2.0.0",
"xo": "^0.26.0"
},

@@ -44,0 +51,0 @@ "scripts": {

@@ -24,3 +24,3 @@ # mdast-squeeze-paragraphs

## Usage
## Use

@@ -58,2 +58,7 @@ ```js

## Security
Use of `mdast-squeeze-paragraphs` does not involve [**hast**][hast] or user
content so there are no openings for [cross-site scripting (XSS)][xss] attacks.
## Related

@@ -70,4 +75,4 @@

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.

@@ -103,3 +108,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

@@ -125,1 +130,5 @@ [chat]: https://spectrum.chat/unified/syntax-tree

[squeeze-paragraphs]: https://github.com/remarkjs/remark-squeeze-paragraphs
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
[hast]: https://github.com/syntax-tree/hast
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