mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
async stack traces: NODE_ENV=dev -> NODE_DEBUG=hafas-client
This commit is contained in:
parent
4fd7108ec6
commit
03e5cd350d
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
const crypto = require('crypto')
|
const crypto = require('crypto')
|
||||||
let captureStackTrace = () => {}
|
let captureStackTrace = () => {}
|
||||||
if (process.env.NODE_ENV === 'dev') {
|
if (process.env.NODE_DEBUG === 'hafas-client') {
|
||||||
captureStackTrace = require('capture-stack-trace')
|
captureStackTrace = require('capture-stack-trace')
|
||||||
}
|
}
|
||||||
const {stringify} = require('query-string')
|
const {stringify} = require('query-string')
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
"vbb-stations-autocomplete": "^3.1.0"
|
"vbb-stations-autocomplete": "^3.1.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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"
|
"prepublishOnly": "npm test | tap-spec"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue