@@ -1403,7 +1403,7 @@ const util_1 = __nccwpck_require__(3837);
1403
1403
const url_1 = __nccwpck_require__(7310);
1404
1404
const perf_hooks_1 = __nccwpck_require__(4074);
1405
1405
const status_reporter_1 = __nccwpck_require__(80);
1406
- const http_client_1 = __nccwpck_require__(3569 );
1406
+ const http_client_1 = __nccwpck_require__(7794 );
1407
1407
const http_manager_1 = __nccwpck_require__(1760);
1408
1408
const upload_gzip_1 = __nccwpck_require__(8921);
1409
1409
const requestUtils_1 = __nccwpck_require__(4580);
@@ -1902,8 +1902,8 @@ exports.digestForStream = exports.sleep = exports.getProperRetention = exports.r
1902
1902
const crypto_1 = __importDefault(__nccwpck_require__(6113));
1903
1903
const fs_1 = __nccwpck_require__(7147);
1904
1904
const core_1 = __nccwpck_require__(7733);
1905
- const http_client_1 = __nccwpck_require__(3569 );
1906
- const auth_1 = __nccwpck_require__(6931 );
1905
+ const http_client_1 = __nccwpck_require__(7794 );
1906
+ const auth_1 = __nccwpck_require__(4610 );
1907
1907
const config_variables_1 = __nccwpck_require__(4233);
1908
1908
const crc64_1 = __importDefault(__nccwpck_require__(3477));
1909
1909
/**
@@ -2421,8 +2421,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
2421
2421
};
2422
2422
Object.defineProperty(exports, "__esModule", ({ value: true }));
2423
2423
const core = __importStar(__nccwpck_require__(7733));
2424
- const http_client_1 = __nccwpck_require__(3569 );
2425
- const auth_1 = __nccwpck_require__(6931 );
2424
+ const http_client_1 = __nccwpck_require__(7794 );
2425
+ const auth_1 = __nccwpck_require__(4610 );
2426
2426
const crypto = __importStar(__nccwpck_require__(6113));
2427
2427
const fs = __importStar(__nccwpck_require__(7147));
2428
2428
const url_1 = __nccwpck_require__(7310);
@@ -2891,7 +2891,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
2891
2891
};
2892
2892
Object.defineProperty(exports, "__esModule", ({ value: true }));
2893
2893
const core = __importStar(__nccwpck_require__(7733));
2894
- const http_client_1 = __nccwpck_require__(3569 );
2894
+ const http_client_1 = __nccwpck_require__(7794 );
2895
2895
const storage_blob_1 = __nccwpck_require__(3929);
2896
2896
const buffer = __importStar(__nccwpck_require__(4300));
2897
2897
const fs = __importStar(__nccwpck_require__(7147));
@@ -3148,7 +3148,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
3148
3148
};
3149
3149
Object.defineProperty(exports, "__esModule", ({ value: true }));
3150
3150
const core = __importStar(__nccwpck_require__(7733));
3151
- const http_client_1 = __nccwpck_require__(3569 );
3151
+ const http_client_1 = __nccwpck_require__(7794 );
3152
3152
const constants_1 = __nccwpck_require__(2114);
3153
3153
function isSuccessStatusCode(statusCode) {
3154
3154
if (!statusCode) {
@@ -4112,8 +4112,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
4112
4112
};
4113
4113
Object.defineProperty(exports, "__esModule", ({ value: true }));
4114
4114
exports.OidcClient = void 0;
4115
- const http_client_1 = __nccwpck_require__(3569 );
4116
- const auth_1 = __nccwpck_require__(6931 );
4115
+ const http_client_1 = __nccwpck_require__(7794 );
4116
+ const auth_1 = __nccwpck_require__(4610 );
4117
4117
const core_1 = __nccwpck_require__(7733);
4118
4118
class OidcClient {
4119
4119
static createHttpClient(allowRetry = true, maxRetry = 10) {
@@ -6366,7 +6366,7 @@ exports.SearchState = SearchState;
6366
6366
6367
6367
/***/ }),
6368
6368
6369
- /***/ 6931 :
6369
+ /***/ 4610 :
6370
6370
/***/ (function(__unused_webpack_module, exports) {
6371
6371
6372
6372
@@ -6453,7 +6453,7 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand
6453
6453
6454
6454
/***/ }),
6455
6455
6456
- /***/ 3569 :
6456
+ /***/ 7794 :
6457
6457
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
6458
6458
6459
6459
@@ -6490,7 +6490,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
6490
6490
exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
6491
6491
const http = __importStar(__nccwpck_require__(3685));
6492
6492
const https = __importStar(__nccwpck_require__(5687));
6493
- const pm = __importStar(__nccwpck_require__(2242 ));
6493
+ const pm = __importStar(__nccwpck_require__(1116 ));
6494
6494
const tunnel = __importStar(__nccwpck_require__(4249));
6495
6495
var HttpCodes;
6496
6496
(function (HttpCodes) {
@@ -7064,7 +7064,7 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa
7064
7064
7065
7065
/***/ }),
7066
7066
7067
- /***/ 2242 :
7067
+ /***/ 1116 :
7068
7068
/***/ ((__unused_webpack_module, exports) => {
7069
7069
7070
7070
@@ -7095,6 +7095,10 @@ function checkBypass(reqUrl) {
7095
7095
if (!reqUrl.hostname) {
7096
7096
return false;
7097
7097
}
7098
+ const reqHost = reqUrl.hostname;
7099
+ if (isLoopbackAddress(reqHost)) {
7100
+ return true;
7101
+ }
7098
7102
const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
7099
7103
if (!noProxy) {
7100
7104
return false;
@@ -7120,13 +7124,24 @@ function checkBypass(reqUrl) {
7120
7124
.split(',')
7121
7125
.map(x => x.trim().toUpperCase())
7122
7126
.filter(x => x)) {
7123
- if (upperReqHosts.some(x => x === upperNoProxyItem)) {
7127
+ if (upperNoProxyItem === '*' ||
7128
+ upperReqHosts.some(x => x === upperNoProxyItem ||
7129
+ x.endsWith(`.${upperNoProxyItem}`) ||
7130
+ (upperNoProxyItem.startsWith('.') &&
7131
+ x.endsWith(`${upperNoProxyItem}`)))) {
7124
7132
return true;
7125
7133
}
7126
7134
}
7127
7135
return false;
7128
7136
}
7129
7137
exports.checkBypass = checkBypass;
7138
+ function isLoopbackAddress(host) {
7139
+ const hostLower = host.toLowerCase();
7140
+ return (hostLower === 'localhost' ||
7141
+ hostLower.startsWith('127.') ||
7142
+ hostLower.startsWith('[::1]') ||
7143
+ hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
7144
+ }
7130
7145
//# sourceMappingURL=proxy.js.map
7131
7146
7132
7147
/***/ }),
@@ -7927,7 +7942,7 @@ const fs = __importStar(__nccwpck_require__(7147));
7927
7942
const mm = __importStar(__nccwpck_require__(2842));
7928
7943
const os = __importStar(__nccwpck_require__(2037));
7929
7944
const path = __importStar(__nccwpck_require__(1017));
7930
- const httpm = __importStar(__nccwpck_require__(3569 ));
7945
+ const httpm = __importStar(__nccwpck_require__(7794 ));
7931
7946
const semver = __importStar(__nccwpck_require__(3496));
7932
7947
const stream = __importStar(__nccwpck_require__(2781));
7933
7948
const util = __importStar(__nccwpck_require__(3837));
0 commit comments