From 8c146a030b314a34a8ac0c09f630ed81461c82a4 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 30 Sep 2021 09:09:23 +0000 Subject: [PATCH] chore(release): set `package.json` to 1.0.2 [skip ci] ## [1.0.2](https://github.com/Safe-Security/praxios/compare/v1.0.1...v1.0.2) (2021-09-30) ### Bug Fixes * handle empty string for PROXY_HOST and PROXY_PORT ([#4](https://github.com/Safe-Security/praxios/issues/4)) ([cce2462](https://github.com/Safe-Security/praxios/commit/cce2462cc9fa0478734411410948ea6c6d1a6477)) --- CHANGELOG.md | 7 +++++++ dist/index.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d372da3..1d9b0db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.2](https://github.com/Safe-Security/praxios/compare/v1.0.1...v1.0.2) (2021-09-30) + + +### Bug Fixes + +* handle empty string for PROXY_HOST and PROXY_PORT ([#4](https://github.com/Safe-Security/praxios/issues/4)) ([cce2462](https://github.com/Safe-Security/praxios/commit/cce2462cc9fa0478734411410948ea6c6d1a6477)) + ## [1.0.1](https://github.com/Safe-Security/praxios/compare/v1.0.0...v1.0.1) (2021-09-30) diff --git a/dist/index.js b/dist/index.js index 2b511b9..b836b18 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7,7 +7,7 @@ var tunnel = require("tunnel"); exports.tunnel = tunnel; var _a = process.env, PROXY_HOST = _a.PROXY_HOST, PROXY_PORT = _a.PROXY_PORT, PROXY_USERNAME = _a.PROXY_USERNAME, PROXY_PASSWORD = _a.PROXY_PASSWORD; var isProxyDefined = function () { - return PROXY_HOST !== undefined && PROXY_PORT !== undefined; + return !!PROXY_HOST && !!PROXY_PORT; }; var getProxyAuth = function () { if (PROXY_USERNAME && PROXY_PASSWORD) {