@dynamic-labs/waas-sui 4.46.1 → 4.46.2

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,11 @@
1
1
 
2
+ ### [4.46.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.46.1...v4.46.2) (2025-11-20)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * patch vulnerability with package @hpke/core ([#9923](https://github.com/dynamic-labs/dynamic-auth/issues/9923)) ([24133c6](https://github.com/dynamic-labs/dynamic-auth/commit/24133c6155fa36cd65cd2befabbdd9cbaa239b61))
8
+
2
9
  ### [4.46.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.46.0...v4.46.1) (2025-11-20)
3
10
 
4
11
  ## [4.46.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.45.3...v4.46.0) (2025-11-19)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.46.1";
6
+ var version = "4.46.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.46.1";
2
+ var version = "4.46.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas-sui",
3
- "version": "4.46.1",
3
+ "version": "4.46.2",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -22,15 +22,15 @@
22
22
  "@dynamic-labs-wallet/browser-wallet-client": "0.0.190",
23
23
  "@mysten/sui": "1.24.0",
24
24
  "@mysten/wallet-standard": "0.13.29",
25
- "@dynamic-labs/assert-package-version": "4.46.1",
26
- "@dynamic-labs/logger": "4.46.1",
27
- "@dynamic-labs/rpc-providers": "4.46.1",
28
- "@dynamic-labs/sui-core": "4.46.1",
29
- "@dynamic-labs/types": "4.46.1",
30
- "@dynamic-labs/utils": "4.46.1",
31
- "@dynamic-labs/waas": "4.46.1",
32
- "@dynamic-labs/wallet-book": "4.46.1",
33
- "@dynamic-labs/wallet-connector-core": "4.46.1"
25
+ "@dynamic-labs/assert-package-version": "4.46.2",
26
+ "@dynamic-labs/logger": "4.46.2",
27
+ "@dynamic-labs/rpc-providers": "4.46.2",
28
+ "@dynamic-labs/sui-core": "4.46.2",
29
+ "@dynamic-labs/types": "4.46.2",
30
+ "@dynamic-labs/utils": "4.46.2",
31
+ "@dynamic-labs/waas": "4.46.2",
32
+ "@dynamic-labs/wallet-book": "4.46.2",
33
+ "@dynamic-labs/wallet-connector-core": "4.46.2"
34
34
  },
35
35
  "peerDependencies": {}
36
36
  }
@@ -11,12 +11,14 @@ var utils = require('@dynamic-labs/utils');
11
11
  var waas = require('@dynamic-labs/waas');
12
12
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
13
13
  var WaasSuiWallet = require('../wallet/WaasSuiWallet.cjs');
14
+ var logger = require('../../utils/logger.cjs');
14
15
 
15
16
  class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConnector) {
16
17
  constructor(props) {
17
18
  super('Dynamic Waas', props);
18
19
  this.ChainWallet = WaasSuiWallet.WaasSuiWallet;
19
20
  this.switchNetworkOnlyFromWallet = false;
21
+ this.logger = logger.logger;
20
22
  this.name = 'Dynamic Waas';
21
23
  this.overrideKey = 'dynamicwaas';
22
24
  this.isEmbeddedWallet = true;
@@ -23,6 +23,7 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
23
23
  dynamicWaasClient: DynamicWalletClient | undefined;
24
24
  chainName: string;
25
25
  authMode: "cookie" | "header";
26
+ logger: import("dist/packages/logger/src").Logger;
26
27
  __exportHandler: import("@dynamic-labs/waas").WaasExportHandler;
27
28
  validateActiveWallet(expectedAddress: string): Promise<void>;
28
29
  setGetAuthTokenFunction(getAuthToken: () => string): void;
@@ -95,10 +96,19 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
95
96
  }): Promise<string>;
96
97
  endSession(): Promise<void>;
97
98
  getActiveAccountAddress(): Promise<string | undefined>;
99
+ generateTraceId(): string;
100
+ instrument(message: string, context: import("dist/packages/logger/src").InstrumentOptions & import("dist/packages/waas/utils/instrumentation").InstrumentContext & Record<string, any>): void;
101
+ instrumentAsync<T_1>({ operation, resource, fn, context, }: {
102
+ operation: string;
103
+ resource: string;
104
+ fn: (timing: import("dist/packages/waas/utils/instrumentation").InstrumentationTimer) => Promise<T_1>;
105
+ context?: Record<string, any> | undefined;
106
+ }): Promise<T_1>;
98
107
  }) & typeof SuiWalletConnector;
99
108
  export declare class DynamicWaasSuiConnector extends DynamicWaasSuiConnector_base implements IDynamicWaasConnector {
100
109
  ChainWallet: typeof WaasSuiWallet;
101
110
  switchNetworkOnlyFromWallet: boolean;
111
+ logger: import("dist/packages/logger/src").Logger;
102
112
  constructor(props: SuiWalletConnectorProps);
103
113
  connect(): Promise<void>;
104
114
  getNetwork(): Promise<string | undefined>;
@@ -7,12 +7,14 @@ import { DynamicError } from '@dynamic-labs/utils';
7
7
  import { withDynamicWaas } from '@dynamic-labs/waas';
8
8
  import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
9
9
  import { WaasSuiWallet } from '../wallet/WaasSuiWallet.js';
10
+ import { logger } from '../../utils/logger.js';
10
11
 
11
12
  class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
12
13
  constructor(props) {
13
14
  super('Dynamic Waas', props);
14
15
  this.ChainWallet = WaasSuiWallet;
15
16
  this.switchNetworkOnlyFromWallet = false;
17
+ this.logger = logger;
16
18
  this.name = 'Dynamic Waas';
17
19
  this.overrideKey = 'dynamicwaas';
18
20
  this.isEmbeddedWallet = true;
@@ -0,0 +1,10 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var logger$1 = require('@dynamic-labs/logger');
7
+
8
+ const logger = new logger$1.Logger('@dynamic-labs/waas-sui');
9
+
10
+ exports.logger = logger;
@@ -0,0 +1,2 @@
1
+ import { Logger } from '@dynamic-labs/logger';
2
+ export declare const logger: Logger;
@@ -0,0 +1,6 @@
1
+ 'use client'
2
+ import { Logger } from '@dynamic-labs/logger';
3
+
4
+ const logger = new Logger('@dynamic-labs/waas-sui');
5
+
6
+ export { logger };