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

tocbot

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tocbot - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

dist/tocbot.css

4

package.json
{
"name": "tocbot",
"version": "2.3.1",
"version": "2.3.2",
"description": "Generate a table of contents based on the heading structure of a html document.",

@@ -83,3 +83,3 @@ "main": "src/js/index.js",

"dependencies": {
"smooth-scroll": "cferdinandi/smooth-scroll"
"smooth-scroll": "github:cferdinandi/smooth-scroll"
},

@@ -86,0 +86,0 @@ "npmName": "tocbot",

@@ -134,3 +134,4 @@ <h1 class="display--none">

offset: 0,
speed: 300 // animation duration.
speed: 300, // animation duration.
callback: function(anchor, toggle) { } // callback after link is scrolled to.
},

@@ -194,2 +195,9 @@ // Headings offset between the headings and the top of the document.

### v2.3.2
#### Fixed
- [patch] Fix for smooth-scroll callback to work properly. [#36](https://github.com/tscanlin/tocbot/issues/36)
- [patch] Fix for cdnjs to update properly. [#35](https://github.com/tscanlin/tocbot/issues/35)
### v2.3.1

@@ -196,0 +204,0 @@

@@ -46,3 +46,4 @@ /**

offset: 0,
speed: 300 // animation duration.
speed: 300, // animation duration.
callback: function(anchor, toggle) { } // callback after link is scrolled to.
},

@@ -49,0 +50,0 @@ // Headings offset between the headings and the top of the document.

@@ -174,3 +174,8 @@ /**

this.smoothScroll = smoothScroll.init(extend(options.smoothScrollOptions, {
callback: buildHtml.enableTocAnimation
callback: function(anchor, toggle) {
buildHtml.enableTocAnimation();
if (typeof options.smoothScrollOptions.callback === 'function') {
options.smoothScrollOptions.callback(anchor, toggle);
}
}
}));

@@ -177,0 +182,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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