@larksuiteoapi/node-sdk 1.47.0 → 1.48.0-alpha.0
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/README.md +1 -1
- package/es/index.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ The SDK provides a semantic calling method. You only need to construct a client
|
|
|
61
61
|
```typescript
|
|
62
62
|
import * as lark from '@larksuiteoapi/node-sdk';
|
|
63
63
|
|
|
64
|
-
const client = new lark.
|
|
64
|
+
const client = new lark.Client({
|
|
65
65
|
appId: 'app id',
|
|
66
66
|
appSecret: 'app secret',
|
|
67
67
|
appType: lark.AppType.SelfBuild,
|
package/es/index.js
CHANGED
|
@@ -80170,7 +80170,7 @@ class Client extends Client$1 {
|
|
|
80170
80170
|
}, options);
|
|
80171
80171
|
this.logger.trace(`send request [${payload.method}]: ${payload.url}`);
|
|
80172
80172
|
const res = yield this.httpInstance
|
|
80173
|
-
.request(Object.assign(Object.assign({}, rest), {
|
|
80173
|
+
.request(Object.assign(Object.assign({ maxBodyLength: Infinity, maxContentLength: Infinity }, rest), {
|
|
80174
80174
|
url: /^http/.test(url)
|
|
80175
80175
|
? url
|
|
80176
80176
|
: `${this.domain}/${formatUrl(url)}`,
|
|
@@ -80326,7 +80326,7 @@ class EventDispatcher {
|
|
|
80326
80326
|
invoke(data, params) {
|
|
80327
80327
|
var _a, _b;
|
|
80328
80328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80329
|
-
const needCheck = (params === null || params === void 0 ? void 0 : params.needCheck)
|
|
80329
|
+
const needCheck = (params === null || params === void 0 ? void 0 : params.needCheck) === false ? false : true;
|
|
80330
80330
|
if (needCheck && !((_a = this.requestHandle) === null || _a === void 0 ? void 0 : _a.checkIsEventValidated(data))) {
|
|
80331
80331
|
this.logger.warn('verification failed event');
|
|
80332
80332
|
return undefined;
|
package/lib/index.js
CHANGED
|
@@ -80185,7 +80185,7 @@ class Client extends Client$1 {
|
|
|
80185
80185
|
}, options);
|
|
80186
80186
|
this.logger.trace(`send request [${payload.method}]: ${payload.url}`);
|
|
80187
80187
|
const res = yield this.httpInstance
|
|
80188
|
-
.request(Object.assign(Object.assign({}, rest), {
|
|
80188
|
+
.request(Object.assign(Object.assign({ maxBodyLength: Infinity, maxContentLength: Infinity }, rest), {
|
|
80189
80189
|
url: /^http/.test(url)
|
|
80190
80190
|
? url
|
|
80191
80191
|
: `${this.domain}/${formatUrl(url)}`,
|
|
@@ -80341,7 +80341,7 @@ class EventDispatcher {
|
|
|
80341
80341
|
invoke(data, params) {
|
|
80342
80342
|
var _a, _b;
|
|
80343
80343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80344
|
-
const needCheck = (params === null || params === void 0 ? void 0 : params.needCheck)
|
|
80344
|
+
const needCheck = (params === null || params === void 0 ? void 0 : params.needCheck) === false ? false : true;
|
|
80345
80345
|
if (needCheck && !((_a = this.requestHandle) === null || _a === void 0 ? void 0 : _a.checkIsEventValidated(data))) {
|
|
80346
80346
|
this.logger.warn('verification failed event');
|
|
80347
80347
|
return undefined;
|