Socket
Socket
Sign inDemoInstall

@mapbox/hast-util-to-jsx

Package Overview
Dependencies
Maintainers
14
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/hast-util-to-jsx - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

6

CHANGELOG.md
# hast-util-to-jsx changelog
## 1.0.0
- Require Node >=10 and update dependencies.
## 0.1.0
- Start this log.
- Start this log.

2

index.js

@@ -94,3 +94,3 @@ 'use strict';

const htmlName = hastPropertyNameToHtmlName(hastName);
const info = propertyInformation(htmlName);
const info = propertyInformation.find(propertyInformation.html, htmlName);
const propName = reactAttrConverter(htmlName);

@@ -97,0 +97,0 @@

{
"name": "@mapbox/hast-util-to-jsx",
"version": "0.1.0",
"version": "1.0.0",
"description": "Transform HAST to JSX",

@@ -27,17 +27,19 @@ "main": "index.js",

"kebab-case": "^1.0.0",
"postcss": "^6.0.21",
"postcss-js": "^1.0.1",
"property-information": "^3.2.0",
"postcss": "^7.0.31",
"postcss-js": "^2.0.3",
"property-information": "^5.5.0",
"react-attr-converter": "^0.3.1",
"stringify-entities": "^1.3.1"
"stringify-entities": "^3.0.1",
"stringify-object": "^3.3.0"
},
"devDependencies": {
"hastscript": "^3.1.0",
"rehype-parse": "^4.1.0",
"unified": "^6.1.6",
"unist-builder": "^1.0.2"
"hastscript": "^5.1.2",
"rehype-parse": "^6.0.2",
"unified": "^9.0.0",
"unist-builder": "^2.0.3"
},
"engines": {
"node": ">=4"
}
"node": ">=10"
},
"gitHead": "2a5498b8f45875c04e0e2b6b319f36c3e38a4aed"
}

@@ -35,3 +35,3 @@ # @mapbox/hast-util-to-jsx

A few libraries exist to transform HTML to JSX.
Using this util, you can perform that transformation entirely within the ecosystem of [`unified`](https://github.com/unifiedjs/unified) syntax trees, using `[`rehype](https://github.com/rehypejs/rehype) to parse HTML and this util to stringify the tree into JSX.
Using this util, you can perform that transformation entirely within the ecosystem of [`unified`](https://github.com/unifiedjs/unified) syntax trees, using [`rehype`](https://github.com/rehypejs/rehype) to parse HTML and this util to stringify the tree into JSX.

@@ -41,2 +41,2 @@ ## Related

- [`hast-util-to-html`](https://github.com/syntax-tree/hast-util-to-html) — Transform HAST to HTML.
- [`rehype`](https://github.com/rehypejs/rehype) — Process HTML as HAST.
- [`rehype`](https://github.com/rehypejs/rehype) — Process HTML as 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