mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
* first action! (#1)
This commit is contained in:
parent
8deacc95b1
commit
ace1e6a69a
3750 changed files with 1155519 additions and 0 deletions
60
node_modules/got/source/index.js
generated
vendored
Normal file
60
node_modules/got/source/index.js
generated
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
'use strict';
|
||||
const pkg = require('../package.json');
|
||||
const create = require('./create');
|
||||
|
||||
const defaults = {
|
||||
options: {
|
||||
retry: {
|
||||
retries: 2,
|
||||
methods: [
|
||||
'GET',
|
||||
'PUT',
|
||||
'HEAD',
|
||||
'DELETE',
|
||||
'OPTIONS',
|
||||
'TRACE'
|
||||
],
|
||||
statusCodes: [
|
||||
408,
|
||||
413,
|
||||
429,
|
||||
500,
|
||||
502,
|
||||
503,
|
||||
504
|
||||
],
|
||||
errorCodes: [
|
||||
'ETIMEDOUT',
|
||||
'ECONNRESET',
|
||||
'EADDRINUSE',
|
||||
'ECONNREFUSED',
|
||||
'EPIPE',
|
||||
'ENOTFOUND',
|
||||
'ENETUNREACH',
|
||||
'EAI_AGAIN'
|
||||
]
|
||||
},
|
||||
headers: {
|
||||
'user-agent': `${pkg.name}/${pkg.version} (https://github.com/sindresorhus/got)`
|
||||
},
|
||||
hooks: {
|
||||
beforeRequest: [],
|
||||
beforeRedirect: [],
|
||||
beforeRetry: [],
|
||||
afterResponse: []
|
||||
},
|
||||
decompress: true,
|
||||
throwHttpErrors: true,
|
||||
followRedirect: true,
|
||||
stream: false,
|
||||
form: false,
|
||||
json: false,
|
||||
cache: false,
|
||||
useElectronNet: false
|
||||
},
|
||||
mutableDefaults: false
|
||||
};
|
||||
|
||||
const got = create(defaults);
|
||||
|
||||
module.exports = got;
|
Loading…
Add table
Add a link
Reference in a new issue