Socket
Socket
Sign inDemoInstall

hast-util-heading-rank

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hast-util-heading-rank - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

index.js

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

function headingRank(node) {
var name = (node.type === 'element' ? node.tagName : '').toLowerCase()
var name = (
(node && node.type === 'element' && node.tagName) ||
''
).toLowerCase()
var code =

@@ -14,0 +17,0 @@ name.length === 2 && name.charCodeAt(0) === lowercaseH

2

package.json
{
"name": "hast-util-heading-rank",
"version": "1.0.0",
"version": "1.0.1",
"description": "hast utility to get the rank (or depth, level) of headings",

@@ -5,0 +5,0 @@ "license": "MIT",

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