PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
got
/
source
'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;
[-] errors.js
[edit]
[+]
..
[-] as-stream.js
[edit]
[+]
utils
[-] progress.js
[edit]
[-] merge.js
[edit]
[-] as-promise.js
[edit]
[-] get-response.js
[edit]
[-] index.js
[edit]
[-] known-hook-events.js
[edit]
[-] create.js
[edit]
[-] request-as-event-emitter.js
[edit]
[-] normalize-arguments.js
[edit]