Skip to content

Commit

Permalink
Merge pull request #135 from TencentCloudBase/feat/support_uploadfile…
Browse files Browse the repository at this point in the history
…_retry

Feat/support uploadfile retry
  • Loading branch information
Mrjing authored Nov 4, 2021
2 parents 322eae0 + f6262a7 commit 91ec14d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/cms-init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@cloudbase/manager-node": "^3.8.0",
"@cloudbase/manager-node": "3.11.0",
"@cloudbase/node-sdk": "^2.4.0-beta",
"lodash": "^4.17.20",
"nanoid": "^3.1.12"
Expand Down
1 change: 1 addition & 0 deletions packages/cms-init/scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,5 +279,6 @@ async function deployHostingFile(manager, srcPath, cloudPath) {
localPath: srcPath,
cloudPath: cloudPath,
ignore: ['.DS_Store'],
retryCount: 5
})
}
60 changes: 40 additions & 20 deletions packages/cms-init/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
node-cache "^4.2.0"
ws "^7.0.0"

"@cloudbase/manager-node@^3.8.0":
version "3.8.0"
resolved "https://registry.yarnpkg.com/@cloudbase/manager-node/-/manager-node-3.8.0.tgz#677768ffbfa871b7746ae55113564e7340ecf979"
integrity sha512-3tm7+PrH4xrA6ZqYsISZdT+H2gQIUZRugI3EIiS3tJVwNk+ukam74W6IREOKkzrmq+ib1081upoAXHF1bCufMQ==
"@cloudbase/manager-node@3.11.0":
version "3.11.0"
resolved "https://registry.npmjs.org/@cloudbase/manager-node/-/manager-node-3.11.0.tgz#2add06f881b7d6239d2e19d9a9040488c62e83af"
integrity sha512-CZgpOGx3LMjf6Q29YlVvw6au/UDLc2a76hRUElYV0sbQX8lTKsOybG7J+iHoli0mVryhhzuez+affBmF+TTo8A==
dependencies:
"@cloudbase/database" "^0.6.2"
archiver "^3.1.1"
cos-nodejs-sdk-v5 "^2.5.20"
cos-nodejs-sdk-v5 "2.9.0"
del "^5.1.0"
https-proxy-agent "^2.2.4"
make-dir "^3.0.0"
Expand Down Expand Up @@ -109,6 +109,11 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.11.8.tgz#fe2012f2355e4ce08bca44aeb3abbb21cf88d33f"
integrity sha512-KPcKqKm5UKDkaYPTuXSx8wEP7vE9GnuaXIZKijwRYcePpZFDVuy2a57LarFKiORbHOuTOOwYzxVxcUzsh2P2Pw==

"@types/node@^14.14.20":
version "14.17.32"
resolved "https://registry.npmjs.org/@types/node/-/node-14.17.32.tgz#2ca61c9ef8c77f6fa1733be9e623ceb0d372ad96"
integrity sha512-JcII3D5/OapPGx+eJ+Ik1SQGyt6WvuqdRfh9jUwL6/iHGjmyOriBDciBUu7lEIBTL2ijxwrR70WUnw5AEDmFvQ==

"@types/retry@^0.12.0":
version "0.12.0"
resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.0.tgz#2b35eccfcee7d38cd72ad99232fbd58bffb3c84d"
Expand Down Expand Up @@ -203,9 +208,9 @@ asynckit@^0.4.0:
integrity sha1-x57Zf380y48robyXkLzDZkdLS3k=

atomically@^1.3.1:
version "1.3.2"
resolved "https://registry.yarnpkg.com/atomically/-/atomically-1.3.2.tgz#721156e5c4f03e768ab54f3e6c9dc550d4690761"
integrity sha512-MAiqx5ir1nOoMeG2vLXJnj4oFROJYB1hMqa2aAo6GQVIkPdkIcrq9W9SR0OaRtvEowO7Y2bsXqKFuDMTO4iOAQ==
version "1.7.0"
resolved "https://registry.npmjs.org/atomically/-/atomically-1.7.0.tgz#c07a0458432ea6dbc9a3506fffa424b48bccaafe"
integrity sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==

aws-sign2@~0.7.0:
version "0.7.0"
Expand Down Expand Up @@ -333,7 +338,7 @@ [email protected]:

conf@^7.1.2:
version "7.1.2"
resolved "https://registry.yarnpkg.com/conf/-/conf-7.1.2.tgz#d9678a9d8f04de8bf5cd475105da8fdae49c2ec4"
resolved "https://registry.npmjs.org/conf/-/conf-7.1.2.tgz#d9678a9d8f04de8bf5cd475105da8fdae49c2ec4"
integrity sha512-r8/HEoWPFn4CztjhMJaWNAe5n+gPUCSaJ0oufbqDLFKsA1V8JjAG7G+p0pgoDFAws9Bpk2VtVLLXqOBA7WxLeg==
dependencies:
ajv "^6.12.2"
Expand All @@ -352,14 +357,15 @@ [email protected], core-util-is@~1.0.0:
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=

cos-nodejs-sdk-v5@^2.5.20:
version "2.8.2"
resolved "https://registry.yarnpkg.com/cos-nodejs-sdk-v5/-/cos-nodejs-sdk-v5-2.8.2.tgz#3ccb5bc872fe22b1952e600e2879fb5ef513e209"
integrity sha512-IsLqzWnusTQSWg3gJqy6HukQkiZpKDtsm0gXPvBEbPzGRAUDVQAAefpahySsA65ySD9FuKCkUXOOrJn08P6GRA==
cos-nodejs-sdk-v5@2.9.0:
version "2.9.0"
resolved "https://registry.npmjs.org/cos-nodejs-sdk-v5/-/cos-nodejs-sdk-v5-2.9.0.tgz#658887f6fd7ad34c6fc894304c74b9b8e54ae9cd"
integrity sha512-sCTZ34HwferXy+rrI7/w1lzmiMT7pxD/qv6ynMXSh+mvacbdn9l+I/rSqaAJFMEm/Tw42QSY+fkVZsjthF1U9w==
dependencies:
"@types/node" "^14.14.20"
conf "^7.1.2"
mime-types "^2.1.24"
request "^2.88.0"
request "^2.88.2"
xml2js "^0.4.19"

crc32-stream@^3.0.1:
Expand Down Expand Up @@ -436,7 +442,7 @@ dir-glob@^3.0.1:

dot-prop@^5.2.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88"
resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88"
integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==
dependencies:
is-obj "^2.0.0"
Expand Down Expand Up @@ -897,6 +903,13 @@ long@^4.0.0:
resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28"
integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==

lru-cache@^6.0.0:
version "6.0.0"
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
dependencies:
yallist "^4.0.0"

make-dir@^3.0.0, make-dir@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f"
Expand Down Expand Up @@ -993,7 +1006,7 @@ once@^1.3.0, once@^1.4.0:

onetime@^5.1.0:
version "5.1.2"
resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
dependencies:
mimic-fn "^2.1.0"
Expand Down Expand Up @@ -1134,7 +1147,7 @@ request-promise@^4.2.5:
stealthy-require "^1.1.1"
tough-cookie "^2.3.3"

request@^2.87.0, request@^2.88.0:
request@^2.87.0, request@^2.88.2:
version "2.88.2"
resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3"
integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==
Expand Down Expand Up @@ -1213,9 +1226,11 @@ semver@^6.0.0:
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==

semver@^7.3.2:
version "7.3.2"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938"
integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==
version "7.3.5"
resolved "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7"
integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==
dependencies:
lru-cache "^6.0.0"

slash@^3.0.0:
version "3.0.0"
Expand Down Expand Up @@ -1390,6 +1405,11 @@ xmlbuilder@~11.0.0:
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz#be9bae1c8a046e76b31127726347d0ad7002beb3"
integrity sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==

yallist@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==

[email protected]:
version "3.1.1"
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
Expand Down

0 comments on commit 91ec14d

Please sign in to comment.