From 1b8e00e4f9aa2cfc13ba151a754cfc957548c6d6 Mon Sep 17 00:00:00 2001 From: Rami Jarrar Date: Mon, 5 Mar 2018 23:47:14 +1100 Subject: [PATCH] Replace 'maxBodyLength' error band-aid Temporary version pinning was shown to be insufficient by #52. Since https://github.com/axios/axios/pull/1287 this is no longer blocking upstream. Setting 'maxContentLength' now properly resolves this once and for all. --- distribution/lib/azure.js | 3 ++- package.json | 3 +-- source/lib/azure.js | 1 + yarn.lock | 22 ++++++++-------------- 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/distribution/lib/azure.js b/distribution/lib/azure.js index 7854317..8a99f3a 100644 --- a/distribution/lib/azure.js +++ b/distribution/lib/azure.js @@ -398,7 +398,8 @@ var AzureMethods = function () { method: 'put', url: '/vfs/meteor-azure/bundle.tar.gz', headers: { 'If-Match': '*' }, - data: _fs2.default.createReadStream(bundleFile) + data: _fs2.default.createReadStream(bundleFile), + maxContentLength: -1 }); case 3: diff --git a/package.json b/package.json index 7d00863..7b31c8a 100644 --- a/package.json +++ b/package.json @@ -38,13 +38,12 @@ "npm-watch": "^0.3.0" }, "dependencies": { - "axios": "^0.17.1", + "axios": "^0.18.0", "azure-arm-website": "^2.0.0-preview", "babel-polyfill": "^6.23.0", "command-exists": "^1.2.2", "commander": "^2.9.0", "core-js": "^2.4.0", - "follow-redirects": "~1.2.5", "joi": "^12.0.0", "jsesc": "^2.5.1", "jsonfile": "^4.0.0", diff --git a/source/lib/azure.js b/source/lib/azure.js index 0a67c53..0da8265 100644 --- a/source/lib/azure.js +++ b/source/lib/azure.js @@ -172,6 +172,7 @@ export default class AzureMethods { url: '/vfs/meteor-azure/bundle.tar.gz', headers: { 'If-Match': '*' }, data: fs.createReadStream(bundleFile), + maxContentLength: -1, }); }); } diff --git a/yarn.lock b/yarn.lock index bb11051..e76f218 100644 --- a/yarn.lock +++ b/yarn.lock @@ -205,11 +205,11 @@ aws4@^1.2.1, aws4@^1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" -axios@^0.17.1: - version "0.17.1" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.17.1.tgz#2d8e3e5d0bdbd7327f91bc814f5c57660f81824d" +axios@^0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.18.0.tgz#32d53e4851efdc0a11993b6cd000789d70c05102" dependencies: - follow-redirects "^1.2.5" + follow-redirects "^1.3.0" is-buffer "^1.1.5" azure-arm-website@^2.0.0-preview: @@ -998,7 +998,7 @@ date-utils@*: version "1.2.21" resolved "https://registry.yarnpkg.com/date-utils/-/date-utils-1.2.21.tgz#61fb16cdc1274b3c9acaaffe9fc69df8720a2b64" -debug@^2.2.0, debug@^2.6.8, debug@^2.6.9: +debug@^2.2.0, debug@^2.6.8: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" dependencies: @@ -1350,15 +1350,9 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" -follow-redirects@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.5.tgz#ffd3e14cbdd5eaa72f61b6368c1f68516c2a26cc" - dependencies: - debug "^2.6.9" - -follow-redirects@~1.2.5: - version "1.2.6" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.6.tgz#4dcdc7e4ab3dd6765a97ff89c3b4c258117c79bf" +follow-redirects@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.4.1.tgz#d8120f4518190f55aac65bb6fc7b85fcd666d6aa" dependencies: debug "^3.1.0"