Socket
Socket
Sign inDemoInstall

posthtml-render

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthtml-render - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

22

CHANGELOG.md

@@ -1,5 +0,25 @@

# Change Log
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.1.5](https://github.com/posthtml/posthtml-render/compare/v1.1.4...v1.1.5) (2019-05-06)
### Bug Fixes
* cut out content, close [#25](https://github.com/posthtml/posthtml-render/issues/25) ([03acfa8](https://github.com/posthtml/posthtml-render/commit/03acfa8))
### Build System
* add lint pretest ([bece65d](https://github.com/posthtml/posthtml-render/commit/bece65d))
* update depDev ([f6a6b85](https://github.com/posthtml/posthtml-render/commit/f6a6b85))
### Tests
* fail with options closingSingleTag slash, [#25](https://github.com/posthtml/posthtml-render/issues/25) ([8be0ded](https://github.com/posthtml/posthtml-render/commit/8be0ded))
<a name="1.1.4"></a>

@@ -6,0 +26,0 @@ ## [1.1.4](https://github.com/posthtml/posthtml-render/compare/v1.1.3...v1.1.4) (2018-05-11)

@@ -106,2 +106,4 @@ var SINGLE_TAGS = [

}
result += node.content ? html(node.content) : ''
} else {

@@ -108,0 +110,0 @@ result += '<' + tag + (node.attrs ? attrs(node.attrs) : '') + '>' + (node.content ? html(node.content) : '') + '</' + tag + '>'

19

package.json
{
"name": "posthtml-render",
"version": "1.1.4",
"version": "1.1.5",
"description": "Renders PostHTML Tree to HTML/XML",

@@ -8,2 +8,5 @@ "author": "Ivan Voischev <voischev.ivan@ya.ru>",

"main": "lib/index.js",
"engines": {
"node": ">=6"
},
"files": [

@@ -14,11 +17,13 @@ "lib"

"chai": "^4.0.0",
"jsdoc-to-markdown": "^3.0.0",
"mocha": "^3.0.0",
"nyc": "^10.0.0",
"standard": "^10.0.0",
"standard-version": "^4.0.0"
"coveralls": "^3.0.3",
"jsdoc-to-markdown": "^4.0.1",
"mocha": "^6.1.4",
"nyc": "^14.1.0",
"standard": "^12.0.1",
"standard-version": "^6.0.1"
},
"scripts": {
"lint": "standard --env mocha",
"test": "nyc node_modules/mocha/bin/_mocha",
"test": "npm run lint && nyc mocha",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"docs": "jsdoc2md lib/*.js > RENDER.md",

@@ -25,0 +30,0 @@ "release": "standard-version"

@@ -152,3 +152,3 @@ [![npm][npm]][npm-url]

```js
const html = render(tree, { closingSingleTag: 'tag' })
const html = render(tree, { closingSingleTag: 'slash' })
```

@@ -175,3 +175,3 @@

[node]: https://img.shields.io/node/v/posthtml-render.svg
[node-url]: https://nodejs.org
[node-url]:

@@ -178,0 +178,0 @@ [deps]: https://david-dm.org/posthtml/posthtml-render.svg

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