gitbook-plugin-login
Advanced tools
| require(['gitbook', 'jQuery'], function(gitbook, $) { | ||
| var pluginConfig = {}; | ||
| function initializePlugin(config) { | ||
| pluginConfig = config.code; | ||
| } | ||
| gitbook.events.bind('start', function(e, config) { | ||
| initializePlugin(config); | ||
| console.log(pluginConfig); | ||
| }); | ||
| }); |
+5
-4
| module.exports = { | ||
| hooks: { | ||
| init() { | ||
| console.log(111); | ||
| } | ||
| website: { | ||
| assets: './assets', | ||
| js: [ | ||
| 'plugin.js' | ||
| ] | ||
| } | ||
| }; |
+1
-1
| { | ||
| "name": "gitbook-plugin-login", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "gitbook登陆插件", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
1029
45.54%4
33.33%16
166.67%0
-100%1
Infinity%