larkin 0.5.10 → 0.5.11

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.
@@ -9,7 +9,7 @@ Runtime package versions: 97
9
9
  | Package | Version | Relationship | Declared license | License texts (SHA-256) | Lock integrity |
10
10
  | --- | ---: | --- | --- | --- | --- |
11
11
  | @larksuite/channel | 0.4.1 | runtime direct | MIT | LICENSE (c969fc7e3af68e6bf40b0d8dd9c3dcc377eb685a2139535b203b39fdcad739ee) | sha512-9xklkzGEnME9MCCKlSzgG0FERJV4HlNX52hthytpxxP2oqH5S8lQBixPsHYU0AQ8SBfzP+LaGz5QaDOlP4EY0A== |
12
- | @larksuiteoapi/node-sdk | 1.72.0 | runtime transitive | MIT | LICENSE (81f1894dbe3c15ce42310bdc8a39c664f270328b82e8c64c03f55de6aac626ac) | sha512-8oKnaTxRFRNPQfeeG69yafdLzWvvrvXlIqX3QRvozR1/6kvZyi9iMhp6lwC+hMgJA/GCFwMZRadkJzlUE+kyvQ== |
12
+ | @larksuiteoapi/node-sdk | 1.74.0 | runtime transitive | MIT | LICENSE (81f1894dbe3c15ce42310bdc8a39c664f270328b82e8c64c03f55de6aac626ac) | sha512-K2WoGy6x97u2kPPSFsu0v9X8CY+0q4OwO3rhXiOSRXYjGS7ovydFpEH07AS5VYcBnbQCoc5sGezo0IEGVViuoA== |
13
13
  | @opentelemetry/api | 1.9.1 | runtime direct | Apache-2.0 | LICENSE (c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4) | sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q== |
14
14
  | @opentelemetry/context-async-hooks | 2.10.0 | runtime transitive | Apache-2.0 | LICENSE (c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4) | sha512-bvyMcgLEkozzSzpEEEo1OMoeQ97bxj6Qs2uN3mPrSdDvObMI1myffD/BPqcLlzZO9//d1SqQA/WPw7Cz2AiqhA== |
15
15
  | @opentelemetry/core | 2.10.0 | runtime transitive | Apache-2.0 | LICENSE (c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4) | sha512-/wNZ8twnEQQA4HoHu22+vcsdru6pWPWxW+7w+FlxT6Id7PE/WIbZmVKkte+PF72e0F2dnImFeHD2syyE1Mw6MQ== |
@@ -103,8 +103,11 @@ class HostChannelBusiness {
103
103
  * Replace the SDK's action-value TTL dedup handler after channel.connect().
104
104
  * Durable callback event_id ownership lives in InteractionStateMachine, so
105
105
  * retries receive the same response while later state-version clicks remain legal.
106
+ * Unregister first (node-sdk >= 1.74, issue #220) so the deliberate replacement
107
+ * is not reported as a duplicate registration.
106
108
  */
107
109
  registerCardActions(agent, dispatcher) {
110
+ dispatcher.unregister?.("card.action.trigger");
108
111
  dispatcher.register({
109
112
  "card.action.trigger": async (raw) => {
110
113
  const event = (0, channel_1.normalizeCardAction)(raw, { includeRaw: true });
@@ -100,8 +100,11 @@ export class HostChannelBusiness {
100
100
  * Replace the SDK's action-value TTL dedup handler after channel.connect().
101
101
  * Durable callback event_id ownership lives in InteractionStateMachine, so
102
102
  * retries receive the same response while later state-version clicks remain legal.
103
+ * Unregister first (node-sdk >= 1.74, issue #220) so the deliberate replacement
104
+ * is not reported as a duplicate registration.
103
105
  */
104
106
  registerCardActions(agent, dispatcher) {
107
+ dispatcher.unregister?.("card.action.trigger");
105
108
  dispatcher.register({
106
109
  "card.action.trigger": async (raw) => {
107
110
  const event = normalizeCardAction(raw, { includeRaw: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larkin",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "private": false,
5
5
  "larkinPackageRole": "npm-published",
6
6
  "files": [
@@ -116,5 +116,8 @@
116
116
  "typescript": "^7.0.2",
117
117
  "vite": "^8.1.5",
118
118
  "vitest": "^4.1.10"
119
+ },
120
+ "overrides": {
121
+ "@larksuiteoapi/node-sdk": "^1.74.0"
119
122
  }
120
123
  }