mdast-squeeze-paragraphs
Advanced tools
Comparing version 3.0.5 to 4.0.0
@@ -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 |
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
6514
130
+ Addedunist-util-is@4.1.0(transitive)
+ Addedunist-util-remove@2.1.0(transitive)
- Removedunist-util-is@3.0.0(transitive)
- Removedunist-util-remove@1.0.3(transitive)
Updatedunist-util-remove@^2.0.0