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

@rsuite/document-nav

Package Overview
Dependencies
Maintainers
5
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.7 to 1.0.8

6

lib/Nav.js

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

}
this.scrollListener = function () {
this.scrollListener = (0, _throttle2.default)(function () {
var index = 0;

@@ -166,4 +166,4 @@ var activeAnchor = _this2.state.activeAnchor;

}
};
window.addEventListener('scroll', (0, _throttle2.default)(this.scrollListener, 300));
}, 300);
window.addEventListener('scroll', this.scrollListener);
}

@@ -170,0 +170,0 @@

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

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

},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"keywords": [

@@ -48,0 +51,0 @@ "rsuite",

@@ -120,3 +120,3 @@ // @flow

}
this.scrollListener = () => {
this.scrollListener = throttle(() => {
let index = 0;

@@ -150,4 +150,4 @@ const { activeAnchor } = this.state;

}
};
window.addEventListener('scroll', throttle(this.scrollListener, 300));
}, 300);
window.addEventListener('scroll',this.scrollListener);
}

@@ -154,0 +154,0 @@

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