@dynamic-labs/waas 4.61.4 → 4.61.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 +14 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/DynamicWaasMixin.cjs +11 -1
- package/src/DynamicWaasMixin.js +12 -2
- package/utils/createWaasClientSecureStorage.cjs +23 -0
- package/utils/createWaasClientSecureStorage.d.ts +4 -0
- package/utils/createWaasClientSecureStorage.js +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.61.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.5...v4.61.6) (2026-02-19)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* support legacy 4337 + 7702 wallet coexistence ([#10459](https://github.com/dynamic-labs/dynamic-auth/issues/10459)) ([a1e1577](https://github.com/dynamic-labs/dynamic-auth/commit/a1e1577c037059c177c6d5b010746a45610c223b))
|
|
8
|
+
|
|
9
|
+
### [4.61.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.4...v4.61.5) (2026-02-19)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add getProjectSettings method to webview ([#10452](https://github.com/dynamic-labs/dynamic-auth/issues/10452)) ([d78b926](https://github.com/dynamic-labs/dynamic-auth/commit/d78b926e4a0c9ff4f7e213f094346a130b1f4bd8))
|
|
15
|
+
|
|
2
16
|
### [4.61.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.3...v4.61.4) (2026-02-15)
|
|
3
17
|
|
|
4
18
|
### [4.61.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.2...v4.61.3) (2026-02-13)
|
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.61.
|
|
3
|
+
"version": "4.61.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.61.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.61.6",
|
|
20
20
|
"@dynamic-labs/sdk-api-core": "0.0.864",
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.61.
|
|
23
|
-
"@dynamic-labs/logger": "4.61.
|
|
24
|
-
"@dynamic-labs/solana-core": "4.61.
|
|
25
|
-
"@dynamic-labs/sui-core": "4.61.
|
|
26
|
-
"@dynamic-labs/utils": "4.61.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.61.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.61.
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.269",
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.61.6",
|
|
23
|
+
"@dynamic-labs/logger": "4.61.6",
|
|
24
|
+
"@dynamic-labs/solana-core": "4.61.6",
|
|
25
|
+
"@dynamic-labs/sui-core": "4.61.6",
|
|
26
|
+
"@dynamic-labs/utils": "4.61.6",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.61.6",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.61.6"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
31
31
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -7,6 +7,7 @@ var _tslib = require('../_virtual/_tslib.cjs');
|
|
|
7
7
|
var browserWalletClient = require('@dynamic-labs-wallet/browser-wallet-client');
|
|
8
8
|
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
9
9
|
var utils = require('@dynamic-labs/utils');
|
|
10
|
+
var createWaasClientSecureStorage = require('../utils/createWaasClientSecureStorage.cjs');
|
|
10
11
|
var _package = require('../package.cjs');
|
|
11
12
|
var constants = require('../utils/constants.cjs');
|
|
12
13
|
var instrumentation = require('../utils/instrumentation.cjs');
|
|
@@ -150,7 +151,16 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
150
151
|
chainName: this.chainName,
|
|
151
152
|
environmentId: this.environmentId,
|
|
152
153
|
sdkVersion: _package.version,
|
|
153
|
-
}
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
* The secure storage should be used when the SDK is running in the webview
|
|
157
|
+
* for a native mobile app.
|
|
158
|
+
*/
|
|
159
|
+
utils.PlatformService.isWaasSecureStorageSupported
|
|
160
|
+
? {
|
|
161
|
+
secureStorage: createWaasClientSecureStorage.createWaasClientSecureStorage(),
|
|
162
|
+
}
|
|
163
|
+
: undefined);
|
|
154
164
|
this.instrumentAsync({
|
|
155
165
|
context: traceContext,
|
|
156
166
|
fn: () => _tslib.__awaiter(this, void 0, void 0, function* () { return client.initialize(); }),
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { __awaiter } from '../_virtual/_tslib.js';
|
|
3
3
|
import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
4
4
|
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
5
|
-
import { DynamicError } from '@dynamic-labs/utils';
|
|
5
|
+
import { DynamicError, PlatformService } from '@dynamic-labs/utils';
|
|
6
|
+
import { createWaasClientSecureStorage } from '../utils/createWaasClientSecureStorage.js';
|
|
6
7
|
import { version } from '../package.js';
|
|
7
8
|
import { DEFAULT_BASE_API_URL, DEFAULT_BASE_MPC_RELAY_API_URL } from '../utils/constants.js';
|
|
8
9
|
import { InstrumentationTimer } from '../utils/instrumentation.js';
|
|
@@ -146,7 +147,16 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
146
147
|
chainName: this.chainName,
|
|
147
148
|
environmentId: this.environmentId,
|
|
148
149
|
sdkVersion: version,
|
|
149
|
-
}
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
* The secure storage should be used when the SDK is running in the webview
|
|
153
|
+
* for a native mobile app.
|
|
154
|
+
*/
|
|
155
|
+
PlatformService.isWaasSecureStorageSupported
|
|
156
|
+
? {
|
|
157
|
+
secureStorage: createWaasClientSecureStorage(),
|
|
158
|
+
}
|
|
159
|
+
: undefined);
|
|
150
160
|
this.instrumentAsync({
|
|
151
161
|
context: traceContext,
|
|
152
162
|
fn: () => __awaiter(this, void 0, void 0, function* () { return client.initialize(); }),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var _tslib = require('../_virtual/_tslib.cjs');
|
|
7
|
+
var utils = require('@dynamic-labs/utils');
|
|
8
|
+
|
|
9
|
+
const createWaasClientSecureStorage = () => ({
|
|
10
|
+
getClientKeyShare: (accountAddress) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
+
const shares = utils.StorageService.getItem(`waas_client_key_share_${accountAddress}`, {
|
|
12
|
+
priority: ['secureStorage'],
|
|
13
|
+
});
|
|
14
|
+
return shares ? JSON.parse(shares) : [];
|
|
15
|
+
}),
|
|
16
|
+
setClientKeyShare: (accountAddress, shares) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
+
return utils.StorageService.setItem(`waas_client_key_share_${accountAddress}`, JSON.stringify(shares), {
|
|
18
|
+
priority: ['secureStorage'],
|
|
19
|
+
});
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
exports.createWaasClientSecureStorage = createWaasClientSecureStorage;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { __awaiter } from '../_virtual/_tslib.js';
|
|
3
|
+
import { StorageService } from '@dynamic-labs/utils';
|
|
4
|
+
|
|
5
|
+
const createWaasClientSecureStorage = () => ({
|
|
6
|
+
getClientKeyShare: (accountAddress) => __awaiter(void 0, void 0, void 0, function* () {
|
|
7
|
+
const shares = StorageService.getItem(`waas_client_key_share_${accountAddress}`, {
|
|
8
|
+
priority: ['secureStorage'],
|
|
9
|
+
});
|
|
10
|
+
return shares ? JSON.parse(shares) : [];
|
|
11
|
+
}),
|
|
12
|
+
setClientKeyShare: (accountAddress, shares) => __awaiter(void 0, void 0, void 0, function* () {
|
|
13
|
+
return StorageService.setItem(`waas_client_key_share_${accountAddress}`, JSON.stringify(shares), {
|
|
14
|
+
priority: ['secureStorage'],
|
|
15
|
+
});
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export { createWaasClientSecureStorage };
|