Skip to content

Commit 975a9ee

Browse files
renovate[bot]koyashiro
andauthoredAug 19, 2024··
chore(deps): lock file maintenance (#97)
* chore(deps): lock file maintenance * feat: update build artifacts --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: koyashiro <[email protected]>
1 parent 8b7206f commit 975a9ee

File tree

2 files changed

+95
-82
lines changed

2 files changed

+95
-82
lines changed
 

‎dist/index.js

+15-2
Original file line numberDiff line numberDiff line change
@@ -1763,11 +1763,11 @@ function getProxyUrl(reqUrl) {
17631763
})();
17641764
if (proxyVar) {
17651765
try {
1766-
return new URL(proxyVar);
1766+
return new DecodedURL(proxyVar);
17671767
}
17681768
catch (_a) {
17691769
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
1770-
return new URL(`http://${proxyVar}`);
1770+
return new DecodedURL(`http://${proxyVar}`);
17711771
}
17721772
}
17731773
else {
@@ -1826,6 +1826,19 @@ function isLoopbackAddress(host) {
18261826
hostLower.startsWith('[::1]') ||
18271827
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
18281828
}
1829+
class DecodedURL extends URL {
1830+
constructor(url, base) {
1831+
super(url, base);
1832+
this._decodedUsername = decodeURIComponent(super.username);
1833+
this._decodedPassword = decodeURIComponent(super.password);
1834+
}
1835+
get username() {
1836+
return this._decodedUsername;
1837+
}
1838+
get password() {
1839+
return this._decodedPassword;
1840+
}
1841+
}
18291842
//# sourceMappingURL=proxy.js.map
18301843

18311844
/***/ }),

‎package-lock.json

+80-80
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.