Socket
Socket
Sign inDemoInstall

@mocha/docdash

Package Overview
Dependencies
28
Maintainers
6
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.3 to 3.0.0

2

package.json
{
"name": "@mocha/docdash",
"version": "2.1.3",
"version": "3.0.0",
"description": "A JSDoc template for Mocha, forked from docdash",

@@ -5,0 +5,0 @@ "main": "publish.js",

@@ -246,3 +246,9 @@ /*global env: true */

}
if (filename !== 'index.html') {
html = `---
permalink: "api/{{page.fileSlug}}.html"
---
` + html;
}
fs.writeFileSync(outpath, html, 'utf8');

@@ -319,3 +325,3 @@ }

var itemsNav = '';
var docdash = env && env.conf && (env.conf.mochaDocdash || env.conf.docdash || {});
var docdash = env && env.conf && (env.conf['mocha-docdash'] || env.conf.docdash || {});
var level = typeof docdash.navLevel === 'number' && docdash.navLevel >= 0 ?

@@ -754,5 +760,11 @@ docdash.navLevel :

var html = view.render('tutorial.tmpl', tutorialData);
// yes, you can use {@link} in tutorials too!
html = helper.resolveLinks(html); // turn {@link foo} into <a href="foodoc.html">foo</a>
if (filename !== 'index.html') {
html = `---
permalink: "api/{{page.fileSlug}}.html"
---
` + html;
}
fs.writeFileSync(tutorialPath, html, 'utf8');

@@ -759,0 +771,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc