Socket
Socket
Sign inDemoInstall

mdast-util-to-hast

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-util-to-hast - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

13

lib/one.js

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

function unknown(h, node) {
if ('value' in node) {
if (text(node)) {
return h.augment(node, u('text', node.value));

@@ -31,1 +31,12 @@ }

}
/* Check if the node should be renderered a text node. */
function text(node) {
var data = node.data || {};
if (has(data, 'hName') || has(data, 'hProperties') || has(data, 'hChildren')) {
return false;
}
return 'value' in node;
}

13

package.json
{
"name": "mdast-util-to-hast",
"version": "2.3.0",
"version": "2.4.0",
"description": "Transform MDAST to HAST",

@@ -36,7 +36,7 @@ "license": "MIT",

"devDependencies": {
"browserify": "^13.0.1",
"browserify": "^14.0.0",
"esmangle": "^1.0.1",
"nyc": "^10.0.0",
"remark-cli": "^2.0.0",
"remark-preset-wooorm": "^1.0.0",
"remark-cli": "^3.0.0",
"remark-preset-wooorm": "^2.0.0",
"tape": "^4.0.0",

@@ -46,3 +46,3 @@ "xo": "^0.17.1"

"scripts": {
"build-md": "remark . --quiet --frail",
"build-md": "remark . -qfo",
"build-bundle": "browserify index.js --bare -s mdastUtilToHAST > mdast-util-to-hast.js",

@@ -71,5 +71,4 @@ "build-mangle": "esmangle mdast-util-to-hast.js > mdast-util-to-hast.min.js",

"remarkConfig": {
"output": true,
"presets": "wooorm"
"plugins": ["preset-wooorm"]
}
}
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