@dynamic-labs/message-transport 4.19.4 → 4.19.6

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/CHANGELOG.md CHANGED
@@ -1,4 +1,24 @@
1
1
 
2
+ ### [4.19.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.5...v4.19.6) (2025-06-04)
3
+
4
+
5
+ ### Features
6
+
7
+ * backup unsuccessful popup when create wallet fails ([#8872](https://github.com/dynamic-labs/dynamic-auth/issues/8872)) ([c8f88f2](https://github.com/dynamic-labs/dynamic-auth/commit/c8f88f2cafdb7856764305764a230e159f09dadf))
8
+ * **global-wallet:** new native api method to return the eoa wallet for a connected smart wallet ([#8864](https://github.com/dynamic-labs/dynamic-auth/issues/8864)) ([5d0e200](https://github.com/dynamic-labs/dynamic-auth/commit/5d0e2002caefb658f6120b102abe145d6caafaf4))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * dont call select endpoint when signing in with 7702 wallet ([#8854](https://github.com/dynamic-labs/dynamic-auth/issues/8854)) ([9828a8f](https://github.com/dynamic-labs/dynamic-auth/commit/9828a8fb758b07dd4dc51cb9eadee483b884defe))
14
+
15
+ ### [4.19.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.4...v4.19.5) (2025-06-02)
16
+
17
+
18
+ ### Features
19
+
20
+ * add cleanup for waas connectors ([#8849](https://github.com/dynamic-labs/dynamic-auth/issues/8849)) ([5899169](https://github.com/dynamic-labs/dynamic-auth/commit/5899169abaf7ce86add2b1393cfd9b967da5e388))
21
+
2
22
  ### [4.19.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.3...v4.19.4) (2025-05-31)
3
23
 
4
24
  ### [4.19.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.2...v4.19.3) (2025-05-28)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.19.4";
6
+ var version = "4.19.6";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.19.4";
2
+ var version = "4.19.6";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/message-transport",
3
- "version": "4.19.4",
3
+ "version": "4.19.6",
4
4
  "description": "Defines the interface to communicate with dynamic's webview",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -18,14 +18,14 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.672",
21
+ "@dynamic-labs/sdk-api-core": "0.0.681",
22
22
  "@vue/reactivity": "^3.4.21",
23
- "@dynamic-labs/types": "4.19.4",
23
+ "@dynamic-labs/types": "4.19.6",
24
24
  "eventemitter3": "5.0.1",
25
- "@dynamic-labs/assert-package-version": "4.19.4",
26
- "@dynamic-labs/logger": "4.19.4",
27
- "@dynamic-labs/utils": "4.19.4",
28
- "@dynamic-labs/webauthn": "4.19.4"
25
+ "@dynamic-labs/assert-package-version": "4.19.6",
26
+ "@dynamic-labs/logger": "4.19.6",
27
+ "@dynamic-labs/utils": "4.19.6",
28
+ "@dynamic-labs/webauthn": "4.19.6"
29
29
  },
30
30
  "peerDependencies": {}
31
31
  }
@@ -4,9 +4,16 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var applyRecoveryManager = require('../../messageTransport/decorators/applyRecoveryManager/applyRecoveryManager.cjs');
7
+ var logger = require('../../utils/logger.cjs');
7
8
  var utils = require('../utils/utils.cjs');
8
9
 
9
10
  const createRequestChannelMessageSender = ({ requestType, messageSessionId, timeoutMap, onReceiveAck, messageTransport, onTimeout, params, }) => {
11
+ /**
12
+ * Tracks whether this sender's message has timed out.
13
+ * This way we can identify that it was a false negative if the message
14
+ * eventually arrives later.
15
+ */
16
+ let messageTimedOut = false;
10
17
  const ackMessageType = utils.getAckMessageType(requestType);
11
18
  const message = {
12
19
  args: params,
@@ -21,6 +28,9 @@ const createRequestChannelMessageSender = ({ requestType, messageSessionId, time
21
28
  clearTimeout(timeoutMap[messageSessionId]);
22
29
  delete timeoutMap[messageSessionId];
23
30
  onReceiveAck === null || onReceiveAck === void 0 ? void 0 : onReceiveAck();
31
+ if (messageTimedOut) {
32
+ logger.logger.instrument(`Identified a false negative for message time out. Message: ${requestType} with session id ${messageSessionId}. Params: ${JSON.stringify(params)}`);
33
+ }
24
34
  };
25
35
  const sendMessage = () => {
26
36
  const startTimer = () => {
@@ -34,6 +44,7 @@ const createRequestChannelMessageSender = ({ requestType, messageSessionId, time
34
44
  else {
35
45
  // If no recovery is available, send an error
36
46
  onTimeout();
47
+ messageTimedOut = true;
37
48
  }
38
49
  }, utils.TIMEOUT_DURATION);
39
50
  timeoutMap[messageSessionId] = timeoutTimer;
@@ -1,8 +1,15 @@
1
1
  'use client'
2
2
  import { hasRecoveryManager } from '../../messageTransport/decorators/applyRecoveryManager/applyRecoveryManager.js';
3
+ import { logger } from '../../utils/logger.js';
3
4
  import { getAckMessageType, TIMEOUT_DURATION } from '../utils/utils.js';
4
5
 
5
6
  const createRequestChannelMessageSender = ({ requestType, messageSessionId, timeoutMap, onReceiveAck, messageTransport, onTimeout, params, }) => {
7
+ /**
8
+ * Tracks whether this sender's message has timed out.
9
+ * This way we can identify that it was a false negative if the message
10
+ * eventually arrives later.
11
+ */
12
+ let messageTimedOut = false;
6
13
  const ackMessageType = getAckMessageType(requestType);
7
14
  const message = {
8
15
  args: params,
@@ -17,6 +24,9 @@ const createRequestChannelMessageSender = ({ requestType, messageSessionId, time
17
24
  clearTimeout(timeoutMap[messageSessionId]);
18
25
  delete timeoutMap[messageSessionId];
19
26
  onReceiveAck === null || onReceiveAck === void 0 ? void 0 : onReceiveAck();
27
+ if (messageTimedOut) {
28
+ logger.instrument(`Identified a false negative for message time out. Message: ${requestType} with session id ${messageSessionId}. Params: ${JSON.stringify(params)}`);
29
+ }
20
30
  };
21
31
  const sendMessage = () => {
22
32
  const startTimer = () => {
@@ -30,6 +40,7 @@ const createRequestChannelMessageSender = ({ requestType, messageSessionId, time
30
40
  else {
31
41
  // If no recovery is available, send an error
32
42
  onTimeout();
43
+ messageTimedOut = true;
33
44
  }
34
45
  }, TIMEOUT_DURATION);
35
46
  timeoutMap[messageSessionId] = timeoutTimer;