async stack traces: NODE_ENV=dev -> NODE_DEBUG=hafas-client

This commit is contained in:
Jannis R 2018-04-05 14:17:30 +02:00
parent 4fd7108ec6
commit 03e5cd350d
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
const crypto = require('crypto')
let captureStackTrace = () => {}
if (process.env.NODE_ENV === 'dev') {
if (process.env.NODE_DEBUG === 'hafas-client') {
captureStackTrace = require('capture-stack-trace')
}
const {stringify} = require('query-string')

View file

@ -57,7 +57,7 @@
"vbb-stations-autocomplete": "^3.1.0"
},
"scripts": {
"test": "env NODE_ENV=dev node test/index.js",
"test": "env NODE_ENV=dev NODE_DEBUG=hafas-client node test/index.js",
"prepublishOnly": "npm test | tap-spec"
}
}