From 650e8ebc10474e515afac8e61cb89c7fc1e9549f Mon Sep 17 00:00:00 2001 From: aokisok <52333119+aokisok@users.noreply.github.com> Date: Mon, 25 Nov 2019 11:34:49 +0000 Subject: [PATCH] set maxBodyLength on axios, bump semver patch (#30) --- package.json | 2 +- src/common/lib/api.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4c51d51..223c8b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arweave", - "version": "1.6.0", + "version": "1.6.1", "description": "Arweave JS client library", "main": "index.js", "files": [ diff --git a/src/common/lib/api.ts b/src/common/lib/api.ts index cb99e64..4054d2b 100644 --- a/src/common/lib/api.ts +++ b/src/common/lib/api.ts @@ -81,7 +81,8 @@ export default class Api { baseURL: `${this.config.protocol}://${this.config.host}:${ this.config.port }`, - timeout: this.config.timeout + timeout: this.config.timeout, + maxContentLength: 1024 * 1024 * 512 }); if (this.config.logging) {