Skip to content

Commit 31db0d5

Browse files
authored
Merge pull request #399 from arduino/dependabot/npm_and_yarn/actions/http-client-2.2.2
Bump @actions/http-client from 2.2.1 to 2.2.2
2 parents d09f4e2 + aa686b3 commit 31db0d5

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

dist/index.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3473,11 +3473,11 @@ function getProxyUrl(reqUrl) {
34733473
})();
34743474
if (proxyVar) {
34753475
try {
3476-
return new URL(proxyVar);
3476+
return new DecodedURL(proxyVar);
34773477
}
34783478
catch (_a) {
34793479
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
3480-
return new URL(`http://${proxyVar}`);
3480+
return new DecodedURL(`http://${proxyVar}`);
34813481
}
34823482
}
34833483
else {
@@ -3536,6 +3536,19 @@ function isLoopbackAddress(host) {
35363536
hostLower.startsWith('[::1]') ||
35373537
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
35383538
}
3539+
class DecodedURL extends URL {
3540+
constructor(url, base) {
3541+
super(url, base);
3542+
this._decodedUsername = decodeURIComponent(super.username);
3543+
this._decodedPassword = decodeURIComponent(super.password);
3544+
}
3545+
get username() {
3546+
return this._decodedUsername;
3547+
}
3548+
get password() {
3549+
return this._decodedPassword;
3550+
}
3551+
}
35393552
//# sourceMappingURL=proxy.js.map
35403553

35413554
/***/ }),

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"license": "MIT",
2424
"dependencies": {
2525
"@actions/core": "^1.10.1",
26-
"@actions/http-client": "^2.2.1",
26+
"@actions/http-client": "^2.2.2",
2727
"@actions/tool-cache": "^2.0.1",
2828
"semver": "^7.6.3"
2929
},

0 commit comments

Comments
 (0)