@dynamic-labs/waas 4.48.1 → 4.49.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/CHANGELOG.md +19 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/DynamicWaasMixin.cjs +10 -4
- package/src/DynamicWaasMixin.d.ts +3 -3
- package/src/DynamicWaasMixin.js +10 -4
- package/utils/instrumentation.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.49.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.48.2...v4.49.0) (2025-12-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add merchant name support for crypto.com onramp ([#10021](https://github.com/dynamic-labs/dynamic-auth/issues/10021)) ([846250f](https://github.com/dynamic-labs/dynamic-auth/commit/846250f3d61b182ec3ae2174c953536e0be3e7ca))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* listen for secondary wallet change in bridge mode ([#10024](https://github.com/dynamic-labs/dynamic-auth/issues/10024)) ([d4d7bb5](https://github.com/dynamic-labs/dynamic-auth/commit/d4d7bb54db9cc4922b57b0cae2d26ac2afd4d21d))
|
|
13
|
+
|
|
14
|
+
### [4.48.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.48.1...v4.48.2) (2025-12-03)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* only prompt ready wallet once to connect ([#10013](https://github.com/dynamic-labs/dynamic-auth/issues/10013)) ([fd3e306](https://github.com/dynamic-labs/dynamic-auth/commit/fd3e306f175969efee6d82ce539f77e55c329f38))
|
|
20
|
+
|
|
2
21
|
### [4.48.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.48.0...v4.48.1) (2025-12-02)
|
|
3
22
|
|
|
4
23
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.49.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
20
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
23
|
-
"@dynamic-labs/logger": "4.
|
|
24
|
-
"@dynamic-labs/solana-core": "4.
|
|
25
|
-
"@dynamic-labs/sui-core": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.49.0",
|
|
20
|
+
"@dynamic-labs/sdk-api-core": "0.0.831",
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.217",
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.49.0",
|
|
23
|
+
"@dynamic-labs/logger": "4.49.0",
|
|
24
|
+
"@dynamic-labs/solana-core": "4.49.0",
|
|
25
|
+
"@dynamic-labs/sui-core": "4.49.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.49.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.49.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {}
|
|
30
30
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -97,7 +97,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
97
97
|
}
|
|
98
98
|
this.chainName = chainName;
|
|
99
99
|
}
|
|
100
|
-
createDynamicWaasClient() {
|
|
100
|
+
createDynamicWaasClient(traceContext) {
|
|
101
101
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
var _a;
|
|
103
103
|
const authToken = (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
@@ -117,14 +117,19 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
117
117
|
environmentId: this.environmentId,
|
|
118
118
|
sdkVersion: _package.version,
|
|
119
119
|
});
|
|
120
|
-
|
|
120
|
+
this.instrumentAsync({
|
|
121
|
+
context: traceContext,
|
|
122
|
+
fn: () => _tslib.__awaiter(this, void 0, void 0, function* () { return client.initialize(); }),
|
|
123
|
+
operation: 'createDynamicWaasClient',
|
|
124
|
+
resource: 'initialize',
|
|
125
|
+
});
|
|
121
126
|
return client;
|
|
122
127
|
});
|
|
123
128
|
}
|
|
124
|
-
getWaasWalletClient() {
|
|
129
|
+
getWaasWalletClient(traceContext) {
|
|
125
130
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
126
131
|
if (!this.dynamicWaasClient) {
|
|
127
|
-
this.dynamicWaasClient = yield this.createDynamicWaasClient();
|
|
132
|
+
this.dynamicWaasClient = yield this.createDynamicWaasClient(traceContext);
|
|
128
133
|
}
|
|
129
134
|
return this.dynamicWaasClient;
|
|
130
135
|
});
|
|
@@ -396,6 +401,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
396
401
|
const defaultContext = {
|
|
397
402
|
accountAddress: context.accountAddress || this.activeAccountAddress,
|
|
398
403
|
environmentId: context.environmentId || this.environmentId,
|
|
404
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
399
405
|
traceId: context.traceId || this.generateTraceId(),
|
|
400
406
|
};
|
|
401
407
|
this.logger.debug(message, Object.assign(Object.assign({}, defaultContext), context));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
2
2
|
import { InstrumentOptions, Logger } from '@dynamic-labs/logger';
|
|
3
3
|
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
4
|
-
import { InstrumentationTimer, InstrumentContext } from '../utils/instrumentation';
|
|
4
|
+
import { InstrumentationTimer, InstrumentContext, TraceContext } from '../utils/instrumentation';
|
|
5
5
|
export declare class WaasExportHandler {
|
|
6
6
|
private iframeStamper;
|
|
7
7
|
setIframeStamper(iframe: HTMLIFrameElement): void;
|
|
@@ -41,8 +41,8 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
41
41
|
accountAddress: string;
|
|
42
42
|
password?: string;
|
|
43
43
|
}): Promise<void>;
|
|
44
|
-
createDynamicWaasClient(): Promise<DynamicWalletClient>;
|
|
45
|
-
getWaasWalletClient(): Promise<DynamicWalletClient>;
|
|
44
|
+
createDynamicWaasClient(traceContext?: TraceContext): Promise<DynamicWalletClient>;
|
|
45
|
+
getWaasWalletClient(traceContext?: TraceContext): Promise<DynamicWalletClient>;
|
|
46
46
|
createWalletAccount({ thresholdSignatureScheme, password, }?: {
|
|
47
47
|
thresholdSignatureScheme?: string;
|
|
48
48
|
password?: string;
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -93,7 +93,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
93
93
|
}
|
|
94
94
|
this.chainName = chainName;
|
|
95
95
|
}
|
|
96
|
-
createDynamicWaasClient() {
|
|
96
|
+
createDynamicWaasClient(traceContext) {
|
|
97
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
98
98
|
var _a;
|
|
99
99
|
const authToken = (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
@@ -113,14 +113,19 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
113
113
|
environmentId: this.environmentId,
|
|
114
114
|
sdkVersion: version,
|
|
115
115
|
});
|
|
116
|
-
|
|
116
|
+
this.instrumentAsync({
|
|
117
|
+
context: traceContext,
|
|
118
|
+
fn: () => __awaiter(this, void 0, void 0, function* () { return client.initialize(); }),
|
|
119
|
+
operation: 'createDynamicWaasClient',
|
|
120
|
+
resource: 'initialize',
|
|
121
|
+
});
|
|
117
122
|
return client;
|
|
118
123
|
});
|
|
119
124
|
}
|
|
120
|
-
getWaasWalletClient() {
|
|
125
|
+
getWaasWalletClient(traceContext) {
|
|
121
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
127
|
if (!this.dynamicWaasClient) {
|
|
123
|
-
this.dynamicWaasClient = yield this.createDynamicWaasClient();
|
|
128
|
+
this.dynamicWaasClient = yield this.createDynamicWaasClient(traceContext);
|
|
124
129
|
}
|
|
125
130
|
return this.dynamicWaasClient;
|
|
126
131
|
});
|
|
@@ -392,6 +397,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
392
397
|
const defaultContext = {
|
|
393
398
|
accountAddress: context.accountAddress || this.activeAccountAddress,
|
|
394
399
|
environmentId: context.environmentId || this.environmentId,
|
|
400
|
+
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
395
401
|
traceId: context.traceId || this.generateTraceId(),
|
|
396
402
|
};
|
|
397
403
|
this.logger.debug(message, Object.assign(Object.assign({}, defaultContext), context));
|