chore: build
This commit is contained in:
parent
71fb6da231
commit
8d7a4dadfd
31
dist/index.js
vendored
31
dist/index.js
vendored
|
@ -1115,7 +1115,7 @@ class GitConfigHelper {
|
||||||
repository: httpsMatch[3]
|
repository: httpsMatch[3]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const sshUrlPattern = new RegExp('^git@(.+?):(.+/.+)\\.git$', 'i');
|
const sshUrlPattern = new RegExp('^.+@(.+?):(.+/.+)\\.git$', 'i');
|
||||||
const sshMatch = remoteUrl.match(sshUrlPattern);
|
const sshMatch = remoteUrl.match(sshUrlPattern);
|
||||||
if (sshMatch) {
|
if (sshMatch) {
|
||||||
return {
|
return {
|
||||||
|
@ -4402,7 +4402,7 @@ class HttpClient {
|
||||||
}
|
}
|
||||||
const usingSsl = parsedUrl.protocol === 'https:';
|
const usingSsl = parsedUrl.protocol === 'https:';
|
||||||
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
|
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
|
||||||
token: `${proxyUrl.username}:${proxyUrl.password}`
|
token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
|
||||||
})));
|
})));
|
||||||
this._proxyAgentDispatcher = proxyAgent;
|
this._proxyAgentDispatcher = proxyAgent;
|
||||||
if (usingSsl && this._ignoreSslError) {
|
if (usingSsl && this._ignoreSslError) {
|
||||||
|
@ -4516,11 +4516,11 @@ function getProxyUrl(reqUrl) {
|
||||||
})();
|
})();
|
||||||
if (proxyVar) {
|
if (proxyVar) {
|
||||||
try {
|
try {
|
||||||
return new URL(proxyVar);
|
return new DecodedURL(proxyVar);
|
||||||
}
|
}
|
||||||
catch (_a) {
|
catch (_a) {
|
||||||
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
|
||||||
return new URL(`http://${proxyVar}`);
|
return new DecodedURL(`http://${proxyVar}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -4579,6 +4579,19 @@ function isLoopbackAddress(host) {
|
||||||
hostLower.startsWith('[::1]') ||
|
hostLower.startsWith('[::1]') ||
|
||||||
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
|
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
|
||||||
}
|
}
|
||||||
|
class DecodedURL extends URL {
|
||||||
|
constructor(url, base) {
|
||||||
|
super(url, base);
|
||||||
|
this._decodedUsername = decodeURIComponent(super.username);
|
||||||
|
this._decodedPassword = decodeURIComponent(super.password);
|
||||||
|
}
|
||||||
|
get username() {
|
||||||
|
return this._decodedUsername;
|
||||||
|
}
|
||||||
|
get password() {
|
||||||
|
return this._decodedPassword;
|
||||||
|
}
|
||||||
|
}
|
||||||
//# sourceMappingURL=proxy.js.map
|
//# sourceMappingURL=proxy.js.map
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
@ -35689,7 +35702,8 @@ __nccwpck_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
// EXPORTS
|
// EXPORTS
|
||||||
__nccwpck_require__.d(__webpack_exports__, {
|
__nccwpck_require__.d(__webpack_exports__, {
|
||||||
"default": () => (/* binding */ pLimit)
|
"default": () => (/* binding */ pLimit),
|
||||||
|
limitFunction: () => (/* binding */ limitFunction)
|
||||||
});
|
});
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/yocto-queue/index.js
|
;// CONCATENATED MODULE: ./node_modules/yocto-queue/index.js
|
||||||
|
@ -35865,6 +35879,13 @@ function pLimit(concurrency) {
|
||||||
return generator;
|
return generator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function limitFunction(function_, option) {
|
||||||
|
const {concurrency} = option;
|
||||||
|
const limit = pLimit(concurrency);
|
||||||
|
|
||||||
|
return (...arguments_) => limit(() => function_(...arguments_));
|
||||||
|
}
|
||||||
|
|
||||||
function validateConcurrency(concurrency) {
|
function validateConcurrency(concurrency) {
|
||||||
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
||||||
throw new TypeError('Expected `concurrency` to be a number from 1 and up');
|
throw new TypeError('Expected `concurrency` to be a number from 1 and up');
|
||||||
|
|
Loading…
Reference in a new issue