New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.13 to 1.0.14-alpha

src/utils/innerText.js

2

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

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

@@ -10,2 +10,3 @@ // @flow

import NavContext, { NavItemContext } from './NavContext';
import { getInnerText } from './utils/innerText';

@@ -181,3 +182,3 @@ type Props = {

if (/^H[1-6]/.test(type)) {
const title = node.innerText || '';
const title = getInnerText(node) || '';
const anchor = node.id || title;

@@ -184,0 +185,0 @@ node.id = anchor;

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