@bespoken-sdk/store
Advanced tools
Comparing version 0.13.8 to 0.13.9
@@ -83,8 +83,5 @@ const _ = require('lodash') | ||
const jsonString = JSON.stringify(json) | ||
// Create a stream from the JSON | ||
const jsonStream = Readable.from(jsonString) | ||
const gzipStream = jsonStream.pipe(zlib.createGzip()) | ||
const response = await axios.post(url, gzipStream, { | ||
const response = await axios.post(url, jsonString, { | ||
headers: { | ||
'Content-Encoding': 'gzip' | ||
'Content-Type': 'application/json', | ||
}, | ||
@@ -91,0 +88,0 @@ maxContentLength: (200 * 1024 * 1024), // up to 200 mb - biggest file so far is 57 MB |
@@ -20,4 +20,4 @@ { | ||
}, | ||
"version": "0.13.8", | ||
"gitHead": "4269b7e721dbbce4780e15bd892de14cad1f4998", | ||
"version": "0.13.9", | ||
"gitHead": "1d40be483664f2548c2a242dc7c3c0d00ba60acd", | ||
"devDependencies": { | ||
@@ -24,0 +24,0 @@ "@types/node": "^16.10.1" |
4328
131