mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
lib/request: fix DEBUG env var switch 🐛
This commit is contained in:
parent
ae66568c03
commit
ebe7c59524
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const DEV = process.env.NODE_ENV === 'dev'
|
const DEV = process.env.NODE_ENV === 'dev'
|
||||||
const DEBUG = /\bhafas-client\b/.test(process.env.DEBUG || '')
|
const DEBUG = /(^|,)hafas-client(,|$)/.test(process.env.DEBUG || '')
|
||||||
|
|
||||||
const ProxyAgent = require('https-proxy-agent')
|
const ProxyAgent = require('https-proxy-agent')
|
||||||
const {isIP} = require('net')
|
const {isIP} = require('net')
|
||||||
|
|
Loading…
Add table
Reference in a new issue