1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

update dependencies

This commit is contained in:
shimataro 2023-03-25 05:19:44 +09:00
parent 699cc3af2a
commit 9eccc48def
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
3 changed files with 1522 additions and 625 deletions

View file

@ -1726,6 +1726,10 @@ function checkBypass(reqUrl) {
if (!reqUrl.hostname) {
return false;
}
const reqHost = reqUrl.hostname;
if (isLoopbackAddress(reqHost)) {
return true;
}
const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
if (!noProxy) {
return false;
@ -1751,13 +1755,24 @@ function checkBypass(reqUrl) {
.split(',')
.map(x => x.trim().toUpperCase())
.filter(x => x)) {
if (upperReqHosts.some(x => x === upperNoProxyItem)) {
if (upperNoProxyItem === '*' ||
upperReqHosts.some(x => x === upperNoProxyItem ||
x.endsWith(`.${upperNoProxyItem}`) ||
(upperNoProxyItem.startsWith('.') &&
x.endsWith(`${upperNoProxyItem}`)))) {
return true;
}
}
return false;
}
exports.checkBypass = checkBypass;
function isLoopbackAddress(host) {
const hostLower = host.toLowerCase();
return (hostLower === 'localhost' ||
hostLower.startsWith('127.') ||
hostLower.startsWith('[::1]') ||
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
}
//# sourceMappingURL=proxy.js.map
/***/ }),

2114
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -32,15 +32,15 @@
"license": "MIT",
"devDependencies": {
"@actions/core": "1.10.0",
"@types/node": "18.11.17",
"@typescript-eslint/eslint-plugin": "5.47.0",
"@typescript-eslint/parser": "5.47.0",
"@vercel/ncc": "0.36.0",
"eslint": "8.30.0",
"markdownlint-cli": "0.32.2",
"npm-check-updates": "16.6.2",
"@types/node": "18.15.7",
"@typescript-eslint/eslint-plugin": "5.56.0",
"@typescript-eslint/parser": "5.56.0",
"@vercel/ncc": "0.36.1",
"eslint": "8.36.0",
"markdownlint-cli": "0.33.0",
"npm-check-updates": "16.8.0",
"npm-run-all": "4.1.5",
"typescript": "4.9.4",
"typescript": "5.0.2",
"yaml-lint": "1.7.0"
}
}