jsdoc-to-markdown
Advanced tools
Comparing version 2.0.0-alpha.14 to 2.0.0-alpha.15
@@ -64,3 +64,3 @@ 'use strict'; | ||
usageStats.enable().start().screenView(screenName, { hitParams: metrics }); | ||
usageStats.enable(); | ||
@@ -70,2 +70,3 @@ if (sync) { | ||
var output = command(options); | ||
usageStats.start().screenView(screenName, { hitParams: metrics }); | ||
finished(); | ||
@@ -81,2 +82,3 @@ return { | ||
v: command(options).then(function (output) { | ||
usageStats.start().screenView(screenName, { hitParams: metrics }); | ||
finished(); | ||
@@ -115,5 +117,5 @@ return output; | ||
usageStats.save(); | ||
if (usageStats.hitsQueued() >= 20) usageStats.send().catch(function (err) { | ||
if (usageStats.hitsQueued() >= 19) usageStats.send().catch(function (err) { | ||
return console.error(err.stack); | ||
}); | ||
} |
{ | ||
"name": "jsdoc-to-markdown", | ||
"author": "Lloyd Brookes", | ||
"version": "2.0.0-alpha.14", | ||
"version": "2.0.0-alpha.15", | ||
"description": "jsdoc-annotated source in, markdown API docs out.", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/jsdoc2md/jsdoc-to-markdown", |
@@ -64,6 +64,3 @@ 'use strict' | ||
usageStats | ||
.enable() | ||
.start() | ||
.screenView(screenName, { hitParams: metrics }) | ||
usageStats.enable() | ||
@@ -73,2 +70,5 @@ if (sync) { | ||
const output = command(options) | ||
usageStats | ||
.start() | ||
.screenView(screenName, { hitParams: metrics }) | ||
finished() | ||
@@ -82,2 +82,5 @@ return output | ||
.then(output => { | ||
usageStats | ||
.start() | ||
.screenView(screenName, { hitParams: metrics }) | ||
finished() | ||
@@ -113,3 +116,3 @@ return output | ||
usageStats.save() | ||
if (usageStats.hitsQueued() >= 20) usageStats.send().catch(err => console.error(err.stack)) | ||
if (usageStats.hitsQueued() >= 19) usageStats.send().catch(err => console.error(err.stack)) | ||
} |
65927
1357