Socket
Socket
Sign inDemoInstall

jsdoc-to-markdown

Package Overview
Dependencies
82
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.7

12

es5/bin/cli.js

@@ -26,3 +26,3 @@ 'use strict';

} else if (options.clear) {
usageStats.screenView('clear').send().end();
usageStats.screenView('clear').end().send();
var jsdoc2md = require('../../');

@@ -39,3 +39,3 @@ jsdoc2md.clear().catch(tool.halt);

if (options.config) {
usageStats.screenView('config').send().end();
usageStats.screenView('config').end().send();
var omit = require('lodash.omit');

@@ -55,3 +55,3 @@ tool.stop(JSON.stringify(omit(options, 'config'), null, ' '));

if (options.json) {
usageStats.screenView('json').send().end();
usageStats.screenView('json').end().send();
_jsdoc2md.getTemplateData(options).then(function (json) {

@@ -61,3 +61,3 @@ tool.printOutput(JSON.stringify(json, null, ' '));

} else if (options.jsdoc) {
usageStats.screenView('jsdoc').send().end();
usageStats.screenView('jsdoc').end().send();
_jsdoc2md.getJsdocData(options).then(function (json) {

@@ -67,3 +67,3 @@ tool.printOutput(JSON.stringify(json, null, ' '));

} else if (options.stats) {
usageStats.screenView('stats').send().end();
usageStats.screenView('stats').end().send();
_jsdoc2md.getStats(options.files).then(function (json) {

@@ -73,3 +73,3 @@ tool.printOutput(JSON.stringify(json, null, ' '));

} else {
usageStats.screenView('gen').send().end();
usageStats.screenView('gen').end().send();
var fs = require('fs');

@@ -76,0 +76,0 @@ if (options.template) options.template = fs.readFileSync(options.template, 'utf8');

@@ -33,2 +33,4 @@ 'use strict';

description: "Clears the cache."
}, {
name: 'no-usage-stats', type: Boolean
}];

@@ -106,3 +108,4 @@

}, {
optionList: jsdoc2mdDefinitions
optionList: jsdoc2mdDefinitions,
hide: 'no-usage-stats'
}, {

@@ -109,0 +112,0 @@ header: 'jsdoc options',

@@ -17,3 +17,3 @@ 'use strict';

return new Promise(function (resolve, reject) {
var handle = spawn('node', ['bin.js', '--json', inputPath], { stdio: ['ignore', outputFile, 'ignore'] });
var handle = spawn('node', ['bin.js', '--no-usage-stats', '--json', inputPath], { stdio: ['ignore', outputFile, 'ignore'] });
handle.on('close', function () {

@@ -20,0 +20,0 @@ var json = fs.readFileSync('tmp/ignore.json', 'utf8');

{
"name": "jsdoc-to-markdown",
"author": "Lloyd Brookes",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"description": "jsdoc-annotated source in, markdown API docs out.",

@@ -36,3 +36,3 @@ "repository": "https://github.com/jsdoc2md/jsdoc-to-markdown",

"jsdoc-parse": "^2.0.5-0",
"usage-stats": "~0.1.1",
"usage-stats": "~0.1.3",
"walk-back": "^2.0.1"

@@ -39,0 +39,0 @@ },

@@ -31,3 +31,3 @@ 'use strict'

} else if (options.clear) {
usageStats.screenView('clear').send().end()
usageStats.screenView('clear').end().send()
const jsdoc2md = require('../../')

@@ -46,3 +46,3 @@ jsdoc2md.clear().catch(tool.halt)

if (options.config) {
usageStats.screenView('config').send().end()
usageStats.screenView('config').end().send()
const omit = require('lodash.omit')

@@ -65,3 +65,3 @@ tool.stop(JSON.stringify(omit(options, 'config'), null, ' '))

if (options.json) {
usageStats.screenView('json').send().end()
usageStats.screenView('json').end().send()
jsdoc2md.getTemplateData(options)

@@ -75,3 +75,3 @@ .then(function (json) {

} else if (options.jsdoc) {
usageStats.screenView('jsdoc').send().end()
usageStats.screenView('jsdoc').end().send()
jsdoc2md

@@ -86,3 +86,3 @@ .getJsdocData(options)

} else if (options.stats) {
usageStats.screenView('stats').send().end()
usageStats.screenView('stats').end().send()
jsdoc2md

@@ -97,3 +97,3 @@ .getStats(options.files)

} else {
usageStats.screenView('gen').send().end()
usageStats.screenView('gen').end().send()
const fs = require('fs')

@@ -100,0 +100,0 @@ if (options.template) options.template = fs.readFileSync(options.template, 'utf8')

@@ -45,2 +45,5 @@ 'use strict'

description: "Clears the cache."
},
{
name: 'no-usage-stats', type: Boolean
}

@@ -151,3 +154,4 @@ ]

{
optionList: jsdoc2mdDefinitions
optionList: jsdoc2mdDefinitions,
hide: 'no-usage-stats'
},

@@ -154,0 +158,0 @@ {

@@ -20,3 +20,3 @@ 'use strict'

'node',
[ 'bin.js', '--json', inputPath ],
[ 'bin.js', '--no-usage-stats', '--json', inputPath ],
{ stdio: [ 'ignore', outputFile, 'ignore' ] }

@@ -23,0 +23,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