Comparing version 2.3.1 to 2.3.2
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
136148
36
2066
355
0