Comparing version 1.0.0 to 1.0.1
@@ -21,2 +21,6 @@ class CliApp { | ||
util.printError(err) | ||
const usage = require('./usage') | ||
usage.exception({ exd: err.message, hitParams: { cd: 'listen' } }) | ||
usage.exception({ exd: err.stack, hitParams: { cd: 'listen-stack' } }) | ||
usage.send().catch(err => { /* disregard errors */ }) | ||
} | ||
@@ -23,0 +27,0 @@ } |
@@ -43,3 +43,2 @@ /** | ||
options.stack = arrayify(options.stack) | ||
usage.screen('create', options) | ||
@@ -95,2 +94,3 @@ /* validate stack */ | ||
usage.screen('listen', options) | ||
return server | ||
@@ -97,0 +97,0 @@ } |
const UsageStats = require('usage-stats') | ||
const os = require('os') | ||
const t = require('typical') | ||
const arrayify = require('array-back') | ||
@@ -22,9 +23,8 @@ const usage = new UsageStats('UA-70853320-8', { | ||
for (const mw of options.stack) { | ||
this.event('stack', t.isObject(mw) ? mw.constructor.name : mw, { hitParams: { cd: name } }) | ||
this.event('stack', mw.constructor.name, { hitParams: { cd: name } }) | ||
} | ||
} | ||
return this.send().catch(err => { /* disregard errors */ }) | ||
// return this.debug().then(response => console.error(require('util').inspect(response, { depth: 6, colors: true }))) | ||
} | ||
module.exports = usage |
{ | ||
"name": "lws", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The modular web server for productive full-stack development", | ||
@@ -34,3 +34,3 @@ "repository": "https://github.com/lwsjs/lws.git", | ||
"typical": "^2.6.1", | ||
"usage-stats": "^0.9.3", | ||
"usage-stats": "^0.9.4", | ||
"walk-back": "^3.0.0", | ||
@@ -37,0 +37,0 @@ "ws": "^3.0.0" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134926
1277
Updatedusage-stats@^0.9.4