UNPKG

@servicenow/sdk

Version:
17 lines (14 loc) 546 B
#!/usr/bin/env node --inspect-brk try { // Allow HTTP_PROXY environment variable to be defined to proxy/intercept // network requests // // https://github.com/gajus/global-agent/issues/52 const Undici = require('undici') const ProxyAgent = Undici.ProxyAgent const setGlobalDispatcher = Undici.setGlobalDispatcher setGlobalDispatcher(new ProxyAgent(process.env.HTTP_PROXY)) } catch (error) { console.debug(`HTTP_PROXY environment variable will not be used: ${error.message}`) } require('@servicenow/sdk-cli')