@larksuiteoapi/node-sdk 1.47.1 → 1.48.0-alpha.1
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/es/index.js +4 -1
- package/lib/index.js +4 -1
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -98,7 +98,10 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
98
98
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
const defaultHttpInstance = axios.create(
|
|
101
|
+
const defaultHttpInstance = axios.create({
|
|
102
|
+
maxBodyLength: Infinity,
|
|
103
|
+
maxContentLength: Infinity,
|
|
104
|
+
});
|
|
102
105
|
defaultHttpInstance.interceptors.request.use((req) => {
|
|
103
106
|
if (req.headers) {
|
|
104
107
|
req.headers['User-Agent'] = 'oapi-node-sdk/1.0.0';
|
package/lib/index.js
CHANGED
|
@@ -113,7 +113,10 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
113
113
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
const defaultHttpInstance = axios__default["default"].create(
|
|
116
|
+
const defaultHttpInstance = axios__default["default"].create({
|
|
117
|
+
maxBodyLength: Infinity,
|
|
118
|
+
maxContentLength: Infinity,
|
|
119
|
+
});
|
|
117
120
|
defaultHttpInstance.interceptors.request.use((req) => {
|
|
118
121
|
if (req.headers) {
|
|
119
122
|
req.headers['User-Agent'] = 'oapi-node-sdk/1.0.0';
|