Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

gitbook-plugin-tree

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-tree - npm Package Compare versions

Comparing version
0.3.9
to
0.3.10
+6
-3
book/plugin.js

@@ -39,5 +39,8 @@ require(["gitbook"], function(gitbook) {

var level = $item.attr('data-level');
$item.addClass(item.hasChildList ? itemStates[level] : "no-child");
item.sn = $item.children('span,a');
item.sn.html('<span class="tree-btn"><span class="t1">+</span><span class="t2">-</span></span>' + item.sn.html());
$item.addClass(item.hasChildList ? (itemStates[level] || 'close') : "no-child");
if (!item.treeBtnAdded) {
tem.sn = $item.children('span,a');
item.sn.html('<span class="tree-btn"><span class="t1">+</span><span class="t2">-</span></span>' + item.sn.html());
item.treeBtnAdded = true;
}
//

@@ -44,0 +47,0 @@ if (!item.hasChildList) return;

@@ -5,3 +5,3 @@ {

"main": "index.js",
"version": "0.3.9",
"version": "0.3.10",
"engines": {

@@ -8,0 +8,0 @@ "gitbook": "*"