chore(deps): bump got from 11.1.4 to 11.3.0 (#4922)

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: DIYgod <diy.d.god@gmail.com>
This commit is contained in:
dependabot-preview[bot]
2020-06-26 01:22:09 +08:00
committed by GitHub
co-authored by DIYgod
parent 9004ca75f0
commit 68c15eaa5c
4 changed files with 7 additions and 10 deletions
+1 -4
View File
@@ -3,10 +3,7 @@ const config = require('@/config').value;
const got = require('got');
const custom = got.extend({
retry: {
limit: config.requestRetry,
statusCodes: [408, 413, 429, 500, 502, 503, 504, 404], // add 404 to default for unit test
},
retry: config.requestRetry,
hooks: {
beforeRetry: [
(options, err, count) => {
+1 -1
View File
@@ -82,7 +82,7 @@
"fanfou-sdk": "4.1.0",
"git-rev-sync": "2.0.0",
"googleapis": "52.1.0",
"got": "11.1.4",
"got": "11.3.0",
"he": "1.2.0",
"hooman": "1.2.5",
"https-proxy-agent": "5.0.0",
+1 -1
View File
@@ -21,7 +21,7 @@ describe('got', () => {
.times(config.requestRetry + 1)
.reply(function () {
requestRun();
return [404, '0'];
return [503, '0'];
});
try {
+4 -4
View File
@@ -5792,10 +5792,10 @@ googleapis@52.1.0:
google-auth-library "^6.0.0"
googleapis-common "^4.3.0"
got@11.1.4:
version "11.1.4"
resolved "https://registry.yarnpkg.com/got/-/got-11.1.4.tgz#ecf0064aab26ae4b2989ab52aadd31a17e7bad63"
integrity sha512-z94KIXHhFSpJONuY6C6w1wC+igE7P1d0b5h3H2CvrOXn0/tum/OgFblIGUAxI5PBXukGLvKb9MJXVHW8vsYaBA==
got@11.3.0:
version "11.3.0"
resolved "https://registry.yarnpkg.com/got/-/got-11.3.0.tgz#25e8da8b0125b3b984613a6b719e678dd2e20406"
integrity sha512-yi/kiZY2tNMtt5IfbfX8UL3hAZWb2gZruxYZ72AY28pU5p0TZjZdl0uRsuaFbnC0JopdUi3I+Mh1F3dPQ9Dh0Q==
dependencies:
"@sindresorhus/is" "^2.1.1"
"@szmarczak/http-timer" "^4.0.5"