Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rsuite/document-nav

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rsuite/document-nav - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

7

lib/Nav.js

@@ -198,3 +198,4 @@ 'use strict';

var _title = node.innerText || '';
node.id = _title;
var _anchor = node.id || _title;
node.id = _anchor;

@@ -209,6 +210,6 @@ var _level = parseInt(type.replace('H', ''), 10);

title: _title,
anchor: _title,
anchor: _anchor,
level: _level
});
anchors.push(_title);
anchors.push(_anchor);
}

@@ -215,0 +216,0 @@ } else {

{
"name": "@rsuite/document-nav",
"version": "1.0.12",
"version": "1.0.13",
"description": "Document navigation is automatically generated based on the HTML title (h1-h6) tag",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -181,3 +181,4 @@ // @flow

const title = node.innerText || '';
node.id = title;
const anchor = node.id || title;
node.id = anchor;

@@ -189,6 +190,6 @@ let level = parseInt(type.replace('H', ''), 10);

title,
anchor: title,
anchor,
level
});
anchors.push(title);
anchors.push(anchor);
}

@@ -195,0 +196,0 @@ } else {

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