Socket
Socket
Sign inDemoInstall

markdown-documentation-generator

Package Overview
Dependencies
73
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.1.0

lib/swag.js

7

lib/templating.js

@@ -9,3 +9,3 @@ /* jshint node: true */

var handlebars = require('handlebars');
var helpers = require('swag');
var helpers = require('./swag.js');
var fs = require('fs-extra');

@@ -63,3 +63,3 @@ var path = require('path');

return html;
}catch(err) {
} catch(err) {
console.error(_sg.logPre + _sg.error(new Error("Error compiling template")));

@@ -74,3 +74,3 @@ console.error(err);

function findPathPartials(template, templatePath) {
const regex = /{{>\s?['"]?((\.|\/)[a-zA-Z\/\.-_]*)/g;
const regex = /{{>\s*['"]?((\.|\/)[a-zA-Z\/\.\-_]*)['"]? *}}/g;

@@ -90,4 +90,5 @@ let matches;

const currentPartial = checkPartial(partialPath, partial);
// Check for nested partials
findPathPartials(currentPartial, partialPath);
handlebars.registerPartial(partial, currentPartial);
}
{
"name": "markdown-documentation-generator",
"version": "3.0.1",
"version": "3.1.0",
"description": "Searches files for markdown and generates a static style/documentation guide. A fork of markdown-styleguide-generator.",

@@ -34,15 +34,14 @@ "main": "index.js",

"dependencies": {
"chalk": "^1.1.3",
"cheerio": "^0.20.0",
"fs-extra": "^3.0.1",
"handlebars": "^4.0.11",
"highlight.js": "^9.5.0",
"lodash": "^4.13.1",
"marked": "^0.5.0",
"swag": "^0.7.0",
"chalk": "^2.4.2",
"cheerio": "^0.22.0",
"fs-extra": "^8.0.1",
"handlebars": "^4.1.2",
"highlight.js": "^9.15.8",
"lodash": "^4.17.11",
"marked": "^0.6.2",
"walk": "^2.3.9",
"yargs": "^12.0.1"
"yargs": "^13.2.4"
},
"devDependencies": {
"nodemon": "^1.11.0"
"nodemon": "^1.19.1"
},

@@ -49,0 +48,0 @@ "bin": {

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