fix missing variable
This commit is contained in:
parent
5a33737182
commit
93dd6aca70
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -2856,6 +2856,7 @@ const core = __nccwpck_require__(186);
|
||||
const http = __nccwpck_require__(685);
|
||||
const https = __nccwpck_require__(687);
|
||||
|
||||
const req_timeout_ms = 30_000;
|
||||
const manifest_media_type = 'application/vnd.docker.distribution.manifest.v2+json';
|
||||
|
||||
main();
|
||||
@ -2954,7 +2955,7 @@ async function http_req(method, url_str, headers, body) {
|
||||
});
|
||||
});
|
||||
|
||||
req.setTimeout(timeout, () => {
|
||||
req.setTimeout(req_timeout_ms, () => {
|
||||
req.destroy();
|
||||
reject(new Error('request timeout'));
|
||||
});
|
||||
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
3
index.js
3
index.js
@ -3,6 +3,7 @@ const core = require('@actions/core');
|
||||
const http = require('http');
|
||||
const https = require('https');
|
||||
|
||||
const req_timeout_ms = 30_000;
|
||||
const manifest_media_type = 'application/vnd.docker.distribution.manifest.v2+json';
|
||||
|
||||
main();
|
||||
@ -101,7 +102,7 @@ async function http_req(method, url_str, headers, body) {
|
||||
});
|
||||
});
|
||||
|
||||
req.setTimeout(timeout, () => {
|
||||
req.setTimeout(req_timeout_ms, () => {
|
||||
req.destroy();
|
||||
reject(new Error('request timeout'));
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user