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.6
to
0.3.7
+5
-5
book/plugin.js

@@ -41,7 +41,7 @@ require(["gitbook"], function(gitbook) {

item.hasChildList = item.childList.length > 0;
if (isFirst) {
$item.addClass(item.hasChildList ? "close" : "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 ? "close" : "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());
//
if (!item.hasChildList) return;

@@ -48,0 +48,0 @@ item.btn = $item.find('.tree-btn');

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

"main": "index.js",
"version": "0.3.6",
"version": "0.3.7",
"engines": {

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