@faasjs/http 0.0.2-beta.432 → 0.0.2-beta.434
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -534,7 +534,7 @@ var Http = class {
|
|
|
534
534
|
data.response.originBody = originBody;
|
|
535
535
|
if (originBody && !data.response.isBase64Encoded && typeof originBody !== "string")
|
|
536
536
|
data.response.body = JSON.stringify(originBody);
|
|
537
|
-
if (!data.response.body || data.response.isBase64Encoded || typeof data.response.body !== "string" || data.response.body.length <
|
|
537
|
+
if (!data.response.body || data.response.isBase64Encoded || typeof data.response.body !== "string" || data.response.body.length < 1024)
|
|
538
538
|
return;
|
|
539
539
|
const acceptEncoding = this.headers["accept-encoding"] || this.headers["Accept-Encoding"];
|
|
540
540
|
if (!acceptEncoding || !/(br|gzip|deflate)/.test(acceptEncoding))
|
package/dist/index.mjs
CHANGED
|
@@ -524,7 +524,7 @@ var Http = class {
|
|
|
524
524
|
data.response.originBody = originBody;
|
|
525
525
|
if (originBody && !data.response.isBase64Encoded && typeof originBody !== "string")
|
|
526
526
|
data.response.body = JSON.stringify(originBody);
|
|
527
|
-
if (!data.response.body || data.response.isBase64Encoded || typeof data.response.body !== "string" || data.response.body.length <
|
|
527
|
+
if (!data.response.body || data.response.isBase64Encoded || typeof data.response.body !== "string" || data.response.body.length < 1024)
|
|
528
528
|
return;
|
|
529
529
|
const acceptEncoding = this.headers["accept-encoding"] || this.headers["Accept-Encoding"];
|
|
530
530
|
if (!acceptEncoding || !/(br|gzip|deflate)/.test(acceptEncoding))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/http",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.434",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@faasjs/func": "^0.0.2-beta.
|
|
27
|
-
"@faasjs/logger": "^0.0.2-beta.
|
|
26
|
+
"@faasjs/func": "^0.0.2-beta.434",
|
|
27
|
+
"@faasjs/logger": "^0.0.2-beta.434"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"tsup": "*",
|