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 2.0.0 to 2.1.0

12

index.d.ts
/**
* @typedef {import('hast').Element} HastElement
* @typedef {import('hast').Parent} Parent
* @typedef {import('hast').Root} Root
* @typedef {Root|Parent['children'][number]} Node
*/

@@ -7,6 +9,8 @@ /**

*
* @param {HastElement} node
* @param {Node} node
* @returns {number|null}
*/
export function headingRank(node: HastElement): number | null
export type HastElement = import('hast').Element
export function headingRank(node: Node): number | null
export type Parent = import('hast').Parent
export type Root = import('hast').Root
export type Node = Root | Parent['children'][number]
/**
* @typedef {import('hast').Element} HastElement
* @typedef {import('hast').Parent} Parent
* @typedef {import('hast').Root} Root
* @typedef {Root|Parent['children'][number]} Node
*/

@@ -8,3 +10,3 @@

*
* @param {HastElement} node
* @param {Node} node
* @returns {number|null}

@@ -11,0 +13,0 @@ */

{
"name": "hast-util-heading-rank",
"version": "2.0.0",
"version": "2.1.0",
"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