@larksuiteoapi/node-sdk 1.48.0-alpha.0 → 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 +5 -2
- package/lib/index.js +5 -2
- 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';
|
|
@@ -80170,7 +80173,7 @@ class Client extends Client$1 {
|
|
|
80170
80173
|
}, options);
|
|
80171
80174
|
this.logger.trace(`send request [${payload.method}]: ${payload.url}`);
|
|
80172
80175
|
const res = yield this.httpInstance
|
|
80173
|
-
.request(Object.assign(Object.assign({
|
|
80176
|
+
.request(Object.assign(Object.assign({}, rest), {
|
|
80174
80177
|
url: /^http/.test(url)
|
|
80175
80178
|
? url
|
|
80176
80179
|
: `${this.domain}/${formatUrl(url)}`,
|
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';
|
|
@@ -80185,7 +80188,7 @@ class Client extends Client$1 {
|
|
|
80185
80188
|
}, options);
|
|
80186
80189
|
this.logger.trace(`send request [${payload.method}]: ${payload.url}`);
|
|
80187
80190
|
const res = yield this.httpInstance
|
|
80188
|
-
.request(Object.assign(Object.assign({
|
|
80191
|
+
.request(Object.assign(Object.assign({}, rest), {
|
|
80189
80192
|
url: /^http/.test(url)
|
|
80190
80193
|
? url
|
|
80191
80194
|
: `${this.domain}/${formatUrl(url)}`,
|