🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@seneca/doc

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seneca/doc - npm Package Compare versions

Comparing version
4.3.0
to
5.0.0
+11
-10
bin/seneca-doc-exec.js
#!/usr/bin/env node
/* Copyright (c) 2019 voxgig and other contributors, MIT License */
/* Copyright (c) 2019-2023 voxgig and other contributors, MIT License */
'use strict'

@@ -8,3 +8,3 @@

var Minimist = require('minimist')
const Minimist = require('minimist')

@@ -23,14 +23,15 @@ const Inspect = require('../lib/inspect.js')

async function inspect_local_plugin() {
var extra_plugins = Array.isArray(argv.p)
? argv.p
: 'string' === typeof p
? [argv.p]
let parg = argv.p
const extra_plugins = Array.isArray(parg)
? parg
: 'string' === typeof parg
? [parg]
: null
// NOTE: use -t for further top level names
var top = ['role', 'sys']
const top = ['role', 'sys']
.concat((argv.t || '').split(','))
.filter(x => '' != x)
var options = {
const options = {
plugins: extra_plugins,

@@ -40,3 +41,3 @@ top: top

var plugin = await Inspect(LocalFolder, LocalPackage, options)
const plugin = await Inspect(LocalFolder, LocalPackage, options)

@@ -47,3 +48,3 @@ // props to ignore

var inj = Object.keys(Render).reduce((acc, prop) => {
const inj = Object.keys(Render).reduce((acc, prop) => {
if (!prop.match(re)) {

@@ -50,0 +51,0 @@ acc[prop.replace(/_+/, '-')] = Render[prop](plugin, options)

+2
-1

@@ -1,2 +0,2 @@

/* Copyright (c) 2019 Voxgig Ltd. and other contributors, MIT License */
/* Copyright (c) 2019-2023 Voxgig Ltd. and other contributors, MIT License */
'use strict'

@@ -6,2 +6,3 @@

// TODO: replace Joi with Gubu
const Joi = require('@hapi/joi')

@@ -8,0 +9,0 @@

{
"name": "@seneca/doc",
"version": "4.3.0",
"version": "5.0.0",
"description": "Documentation helper for Seneca plugins.",

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

@@ -1,6 +0,15 @@

# seneca-doc
![Seneca Doc](http://senecajs.org/files/assets/seneca-logo.png)
[![Npm][BadgeNpm]][Npm]
[![Travis][BadgeTravis]][Travis]
[![Coveralls][BadgeCoveralls]][Coveralls]
> _Seneca Doc_ is a plugin for [Seneca](http://senecajs.org)
Provides generated documentation for Seneca plugins and injects this
documentation into the plugin README.md markdown file.
[![npm version](https://img.shields.io/npm/v/@seneca/doc.svg)](https://npmjs.com/package/@seneca/doc)
[![build](https://github.com/senecajs/seneca-doc/actions/workflows/build.yml/badge.svg)](https://github.com/senecajs/seneca-doc/actions/workflows/build.yml)
[![Coverage Status](https://coveralls.io/repos/senecajs/seneca-doc/badge.svg?branch=main)](https://coveralls.io/github/senecajs/seneca-doc?branch=main)
[![Known Vulnerabilities](https://snyk.io/test/github/senecajs/seneca-doc/badge.svg)](https://snyk.io/test/github/senecajs/seneca-doc)
[![DeepScan grade](https://deepscan.io/api/teams/5016/projects/21342/branches/611017/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=5016&pid=21342&bid=611017)
[![Maintainability](https://api.codeclimate.com/v1/badges/68675302d30a1e3e9447/maintainability)](https://codeclimate.com/github/voxgig/seneca-doc/maintainability)

@@ -7,0 +16,0 @@