aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/@actions/http-client/lib/proxy.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@actions/http-client/lib/proxy.js')
-rw-r--r--node_modules/@actions/http-client/lib/proxy.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/node_modules/@actions/http-client/lib/proxy.js b/node_modules/@actions/http-client/lib/proxy.js
index aef23f3..4bf1208 100644
--- a/node_modules/@actions/http-client/lib/proxy.js
+++ b/node_modules/@actions/http-client/lib/proxy.js
@@ -1,8 +1,4 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.getProxyUrl = getProxyUrl;
-exports.checkBypass = checkBypass;
-function getProxyUrl(reqUrl) {
+export function getProxyUrl(reqUrl) {
const usingSsl = reqUrl.protocol === 'https:';
if (checkBypass(reqUrl)) {
return undefined;
@@ -28,7 +24,7 @@ function getProxyUrl(reqUrl) {
return undefined;
}
}
-function checkBypass(reqUrl) {
+export function checkBypass(reqUrl) {
if (!reqUrl.hostname) {
return false;
}