@larksuiteoapi/node-sdk 1.42.0 → 1.43.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/es/index.js CHANGED
@@ -76412,11 +76412,7 @@ const adaptDefault = (path, dispatcher, options) => (req, res) => __awaiter(void
76412
76412
  }
76413
76413
  }
76414
76414
  const value = yield dispatcher.invoke(data);
76415
- // event don't need response
76416
- if (dispatcher instanceof CardActionHandler) {
76417
- res.end(JSON.stringify(value));
76418
- }
76419
- res.end('');
76415
+ res.end(JSON.stringify(value));
76420
76416
  });
76421
76417
 
76422
76418
  const adaptExpress = (dispatcher, options) => (req, res) => __awaiter(void 0, void 0, void 0, function* () {
@@ -76447,11 +76443,7 @@ const adaptExpress = (dispatcher, options) => (req, res) => __awaiter(void 0, vo
76447
76443
  }
76448
76444
  }
76449
76445
  const value = yield dispatcher.invoke(data);
76450
- // event don't need response
76451
- if (dispatcher instanceof CardActionHandler) {
76452
- res.json(value);
76453
- }
76454
- res.end('');
76446
+ res.json(value);
76455
76447
  });
76456
76448
 
76457
76449
  const adaptKoa = (path, dispatcher, options) => (ctx, next) => __awaiter(void 0, void 0, void 0, function* () {
@@ -76485,13 +76477,7 @@ const adaptKoa = (path, dispatcher, options) => (ctx, next) => __awaiter(void 0,
76485
76477
  }
76486
76478
  }
76487
76479
  const value = yield dispatcher.invoke(data);
76488
- // event don't need response
76489
- if (dispatcher instanceof CardActionHandler) {
76490
- ctx.body = JSON.stringify(value);
76491
- }
76492
- else {
76493
- ctx.body = '';
76494
- }
76480
+ ctx.body = JSON.stringify(value);
76495
76481
  }
76496
76482
  yield next();
76497
76483
  });
@@ -76526,13 +76512,7 @@ const adaptKoaRouter = (dispatcher, options) => (ctx, next) => __awaiter(void 0,
76526
76512
  }
76527
76513
  }
76528
76514
  const value = yield dispatcher.invoke(data);
76529
- // event don't need response
76530
- if (dispatcher instanceof CardActionHandler) {
76531
- ctx.body = JSON.stringify(value);
76532
- }
76533
- else {
76534
- ctx.body = '';
76535
- }
76515
+ ctx.body = JSON.stringify(value);
76536
76516
  yield next();
76537
76517
  });
76538
76518
 
package/lib/index.js CHANGED
@@ -76428,11 +76428,7 @@ const adaptDefault = (path, dispatcher, options) => (req, res) => __awaiter(void
76428
76428
  }
76429
76429
  }
76430
76430
  const value = yield dispatcher.invoke(data);
76431
- // event don't need response
76432
- if (dispatcher instanceof CardActionHandler) {
76433
- res.end(JSON.stringify(value));
76434
- }
76435
- res.end('');
76431
+ res.end(JSON.stringify(value));
76436
76432
  });
76437
76433
 
76438
76434
  const adaptExpress = (dispatcher, options) => (req, res) => __awaiter(void 0, void 0, void 0, function* () {
@@ -76463,11 +76459,7 @@ const adaptExpress = (dispatcher, options) => (req, res) => __awaiter(void 0, vo
76463
76459
  }
76464
76460
  }
76465
76461
  const value = yield dispatcher.invoke(data);
76466
- // event don't need response
76467
- if (dispatcher instanceof CardActionHandler) {
76468
- res.json(value);
76469
- }
76470
- res.end('');
76462
+ res.json(value);
76471
76463
  });
76472
76464
 
76473
76465
  const adaptKoa = (path, dispatcher, options) => (ctx, next) => __awaiter(void 0, void 0, void 0, function* () {
@@ -76501,13 +76493,7 @@ const adaptKoa = (path, dispatcher, options) => (ctx, next) => __awaiter(void 0,
76501
76493
  }
76502
76494
  }
76503
76495
  const value = yield dispatcher.invoke(data);
76504
- // event don't need response
76505
- if (dispatcher instanceof CardActionHandler) {
76506
- ctx.body = JSON.stringify(value);
76507
- }
76508
- else {
76509
- ctx.body = '';
76510
- }
76496
+ ctx.body = JSON.stringify(value);
76511
76497
  }
76512
76498
  yield next();
76513
76499
  });
@@ -76542,13 +76528,7 @@ const adaptKoaRouter = (dispatcher, options) => (ctx, next) => __awaiter(void 0,
76542
76528
  }
76543
76529
  }
76544
76530
  const value = yield dispatcher.invoke(data);
76545
- // event don't need response
76546
- if (dispatcher instanceof CardActionHandler) {
76547
- ctx.body = JSON.stringify(value);
76548
- }
76549
- else {
76550
- ctx.body = '';
76551
- }
76531
+ ctx.body = JSON.stringify(value);
76552
76532
  yield next();
76553
76533
  });
76554
76534
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larksuiteoapi/node-sdk",
3
- "version": "1.42.0",
3
+ "version": "1.43.0-alpha.0",
4
4
  "description": "larksuite open sdk for nodejs",
5
5
  "keywords": [
6
6
  "feishu",