Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

builddocs

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

builddocs - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

2

package.json
{
"name": "builddocs",
"version": "1.0.6",
"version": "1.0.7",
"description": "Build documentation files from commented source code",

@@ -5,0 +5,0 @@ "main": "src/builddocs.js",

@@ -20,5 +20,5 @@ let fs = require("fs")

let instantiateTemplate = template => {
if (format == "html") template = template.replace(/(^|\n)(@\w+\n+)*@\w+(?=$|\n)/g, "<dl>\n$&\n</dl>")
if (format == "html") template = template.replace(/(^|\n)(@[\w\$]+\n+)*@[\w\$]+(?=$|\n)/g, "<dl>\n$&\n</dl>")
let placed = Object.create(null), problems = []
let result = template.replace(/(^|\n)@(\w+)(?=$|\n)/g, function(_, before, name) {
let result = template.replace(/(^|\n)@([\w\$]+)(?=$|\n)/g, function(_, before, name) {
if (placed[name]) problems.push("Item " + name + " is included in doc template twice")

@@ -25,0 +25,0 @@ if (!items[name]) problems.push("Unknown item " + name + " included in doc template")

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc