@dynamic-labs/client 4.20.13 → 4.20.14
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 +8 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +6 -6
- package/src/client/client.cjs +7 -0
- package/src/client/client.d.ts +3 -7
- package/src/client/client.js +7 -0
- package/src/client/core/modules/manifestModule/createPartialManifest/createPartialManifest.cjs +1 -1
- package/src/client/core/modules/manifestModule/createPartialManifest/createPartialManifest.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.20.14](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.13...v4.20.14) (2025-07-03)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* refresh function user state for sessionId ([#9073](https://github.com/dynamic-labs/dynamic-auth/issues/9073)) ([080e923](https://github.com/dynamic-labs/dynamic-auth/commit/080e92356e3920f1d240b5025db9c831aa2abc5a))
|
|
8
|
+
* remove default commonjs setups for @dynamic-labs-wallet/browser-wallet-client ([#9079](https://github.com/dynamic-labs/dynamic-auth/issues/9079)) ([27507ab](https://github.com/dynamic-labs/dynamic-auth/commit/27507abedfd223209cad15d5c1e12b37fa421071))
|
|
9
|
+
|
|
2
10
|
### [4.20.13](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.12...v4.20.13) (2025-07-02)
|
|
3
11
|
|
|
4
12
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/client",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.14",
|
|
4
4
|
"description": "Core package for utilizing Dynamic's sdk",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@vue/reactivity": "^3.4.21",
|
|
22
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.20.
|
|
24
|
-
"@dynamic-labs/logger": "4.20.
|
|
25
|
-
"@dynamic-labs/message-transport": "4.20.
|
|
26
|
-
"@dynamic-labs/types": "4.20.
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.0.704",
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.20.14",
|
|
24
|
+
"@dynamic-labs/logger": "4.20.14",
|
|
25
|
+
"@dynamic-labs/message-transport": "4.20.14",
|
|
26
|
+
"@dynamic-labs/types": "4.20.14",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {}
|
package/src/client/client.cjs
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
+
var logger = require('@dynamic-labs/logger');
|
|
7
|
+
var messageTransport = require('@dynamic-labs/message-transport');
|
|
6
8
|
var authModule = require('../modules/authModule/authModule.cjs');
|
|
7
9
|
var instrumentationModule = require('../modules/instrumentationModule/instrumentationModule.cjs');
|
|
8
10
|
var mfaModule = require('../modules/mfaModule/mfaModule.cjs');
|
|
@@ -24,6 +26,7 @@ const baseClientExtensionName = 'base';
|
|
|
24
26
|
* it will be used for.
|
|
25
27
|
*/
|
|
26
28
|
const createClient = (props) => {
|
|
29
|
+
var _a;
|
|
27
30
|
const instrumentation = instrumentationModule.setupInstrumentationModule(props);
|
|
28
31
|
const core$1 = core.createCore(props);
|
|
29
32
|
instrumentation.trackCore(core$1);
|
|
@@ -48,6 +51,10 @@ const createClient = (props) => {
|
|
|
48
51
|
};
|
|
49
52
|
});
|
|
50
53
|
instrumentation.trackClient(client);
|
|
54
|
+
if ((_a = props.debug) === null || _a === void 0 ? void 0 : _a.messageTransport) {
|
|
55
|
+
messageTransport.setGlobalDebugEnabled(true);
|
|
56
|
+
logger.Logger.troubleshootModeEnabled = true;
|
|
57
|
+
}
|
|
51
58
|
return client;
|
|
52
59
|
};
|
|
53
60
|
|
package/src/client/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientManifest } from '@dynamic-labs/message-transport';
|
|
2
2
|
import { Extendable } from '../utils/Extendable';
|
|
3
3
|
export declare const baseClientExtensionName = "base";
|
|
4
4
|
export type BaseClient = ReturnType<typeof createClient>;
|
|
@@ -8,11 +8,7 @@ export type ClientProps = {
|
|
|
8
8
|
appName?: string;
|
|
9
9
|
appLogoUrl?: string;
|
|
10
10
|
cssOverrides?: string;
|
|
11
|
-
debug?:
|
|
12
|
-
webview?: boolean;
|
|
13
|
-
messageTransport?: boolean;
|
|
14
|
-
loggerLevel?: LogLevel;
|
|
15
|
-
};
|
|
11
|
+
debug?: ClientManifest['debug'];
|
|
16
12
|
};
|
|
17
13
|
/**
|
|
18
14
|
* Generates a basic client that allows interacting with Dynamic's SDK, which
|
|
@@ -27,7 +23,7 @@ export declare const createClient: (props: ClientProps) => {
|
|
|
27
23
|
/** Module that provides access to MFA features */
|
|
28
24
|
mfa: import("../modules/mfaModule").MfaModule;
|
|
29
25
|
/** Module that provides all the networks configured */
|
|
30
|
-
networks: import("
|
|
26
|
+
networks: import("@dynamic-labs/message-transport").StoreStateGetters<import("@dynamic-labs/message-transport").NetworksModuleState> & import("@dynamic-labs/message-transport").PickedEventListeners<import("@dynamic-labs/message-transport").StoreStateEvents<import("@dynamic-labs/message-transport").NetworksModuleState>>;
|
|
31
27
|
/** Module that gives insight over the state of the SDK */
|
|
32
28
|
sdk: import("../modules/sdkModule").SdkModule;
|
|
33
29
|
/** Module that provide access to UI features */
|
package/src/client/client.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
import { Logger } from '@dynamic-labs/logger';
|
|
3
|
+
import { setGlobalDebugEnabled } from '@dynamic-labs/message-transport';
|
|
2
4
|
import { createAuthModule } from '../modules/authModule/authModule.js';
|
|
3
5
|
import { setupInstrumentationModule } from '../modules/instrumentationModule/instrumentationModule.js';
|
|
4
6
|
import { createMfaModule } from '../modules/mfaModule/mfaModule.js';
|
|
@@ -20,6 +22,7 @@ const baseClientExtensionName = 'base';
|
|
|
20
22
|
* it will be used for.
|
|
21
23
|
*/
|
|
22
24
|
const createClient = (props) => {
|
|
25
|
+
var _a;
|
|
23
26
|
const instrumentation = setupInstrumentationModule(props);
|
|
24
27
|
const core = createCore(props);
|
|
25
28
|
instrumentation.trackCore(core);
|
|
@@ -44,6 +47,10 @@ const createClient = (props) => {
|
|
|
44
47
|
};
|
|
45
48
|
});
|
|
46
49
|
instrumentation.trackClient(client);
|
|
50
|
+
if ((_a = props.debug) === null || _a === void 0 ? void 0 : _a.messageTransport) {
|
|
51
|
+
setGlobalDebugEnabled(true);
|
|
52
|
+
Logger.troubleshootModeEnabled = true;
|
|
53
|
+
}
|
|
47
54
|
return client;
|
|
48
55
|
};
|
|
49
56
|
|
package/src/client/core/modules/manifestModule/createPartialManifest/createPartialManifest.cjs
CHANGED
|
@@ -11,7 +11,7 @@ const createPartialManifest = ({ apiBaseUrl, environmentId, appLogoUrl, appName,
|
|
|
11
11
|
appName,
|
|
12
12
|
clientVersion: _package.version,
|
|
13
13
|
cssOverrides,
|
|
14
|
-
|
|
14
|
+
debug,
|
|
15
15
|
environmentId,
|
|
16
16
|
});
|
|
17
17
|
|