Socket
Socket
Sign inDemoInstall

jsdoc-to-markdown

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsdoc-to-markdown - npm Package Compare versions

Comparing version 2.0.0-alpha.9 to 2.0.0-alpha.10

4

es5/lib/cli-data.js

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

name: 'no-usage-stats', type: Boolean
}, {
name: 'debug', type: Boolean
}];

@@ -109,3 +111,3 @@

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

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

'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -142,30 +144,42 @@

} else {
usageStats.start();
usageStats.screenView(screenName);
if (options) {
Object.keys(options).forEach(function (option) {
var dontSend = ['files', 'source'];
usageStats.event('option', option, dontSend.includes(option) ? undefined : options[option]);
});
}
if (sync) {
try {
var output = command(options);
usageStats.end().send();
return output;
} catch (err) {
usageStats.exception(err.message, 1);
throw err;
var _ret = function () {
var debug = options.debug;
usageStats.start();
usageStats.screenView(screenName);
if (options) {
Object.keys(options).forEach(function (option) {
var dontSend = ['files', 'source', 'template'];
usageStats.event('option', option, dontSend.includes(option) ? undefined : options[option]);
});
}
} else {
return command(options).then(function (output) {
usageStats.end().send();
return output;
}).catch(function (err) {
usageStats.exception(err.message, true);
usageStats.end().send();
throw err;
});
}
if (sync) {
try {
var output = command(options);
var req = usageStats.end().send({ debug: debug });
if (debug) req.then(console.error);
return {
v: output
};
} catch (err) {
usageStats.exception(err.message, 1);
throw err;
}
} else {
return {
v: command(options).then(function (output) {
var req = usageStats.end().send({ debug: debug });
if (debug) req.then(console.error);
return output;
}).catch(function (err) {
usageStats.exception(err.message, true);
var req = usageStats.end().send({ debug: debug });
if (debug) req.then(console.error);
throw err;
})
};
}
}();
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
}
}
{
"name": "jsdoc-to-markdown",
"author": "Lloyd Brookes",
"version": "2.0.0-alpha.9",
"version": "2.0.0-alpha.10",
"description": "jsdoc-annotated source in, markdown API docs out.",

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

"array-back": "^1.0.3",
"command-line-tool": "~0.6.3",
"command-line-tool": "^0.6.3",
"config-master": "^2.0.3",

@@ -37,3 +37,3 @@ "core-js": "^2.4.1",

"jsdoc-parse": "^2.0.5-0",
"usage-stats": "~0.1.4",
"usage-stats": "^0.1.5",
"walk-back": "^2.0.1"

@@ -44,3 +44,3 @@ },

"coveralls": "^2.11.12",
"test-runner": "~0.1.11"
"test-runner": "^0.1.11"
},

@@ -47,0 +47,0 @@ "standard": {

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

name: 'no-usage-stats', type: Boolean
},
{
name: 'debug', type: Boolean
}

@@ -155,3 +158,3 @@ ]

optionList: jsdoc2mdDefinitions,
hide: 'no-usage-stats'
hide: [ 'no-usage-stats', 'debug' ]
},

@@ -158,0 +161,0 @@ {

@@ -296,2 +296,3 @@ 'use strict'

} else {
const debug = options.debug
usageStats.start()

@@ -301,3 +302,3 @@ usageStats.screenView(screenName)

Object.keys(options).forEach(option => {
const dontSend = [ 'files', 'source' ]
const dontSend = [ 'files', 'source', 'template' ]
usageStats.event('option', option, dontSend.includes(option) ? undefined : options[option])

@@ -309,3 +310,4 @@ })

const output = command(options)
usageStats.end().send()
const req = usageStats.end().send({ debug })
if (debug) req.then(console.error)
return output

@@ -319,3 +321,4 @@ } catch (err) {

.then(output => {
usageStats.end().send()
const req = usageStats.end().send({ debug })
if (debug) req.then(console.error)
return output

@@ -325,3 +328,4 @@ })

usageStats.exception(err.message, true)
usageStats.end().send()
const req = usageStats.end().send({ debug })
if (debug) req.then(console.error)
throw err

@@ -328,0 +332,0 @@ })

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