@larksuiteoapi/node-sdk 1.47.0 → 1.47.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/README.md +1 -1
- package/es/index.js +1 -1
- package/lib/index.js +1 -1
- 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
|
@@ -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
|
@@ -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;
|