@dynamic-labs/client 4.20.12 → 4.20.13
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 +12 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +5 -5
- package/src/client/client.cjs +0 -5
- package/src/client/client.js +0 -5
- package/src/client/core/core.cjs +5 -1
- package/src/client/core/core.d.ts +8 -0
- package/src/client/core/core.js +6 -2
- package/src/utils/logMessageTransportMessages/index.d.ts +0 -1
- package/src/utils/logMessageTransportMessages/logMessageTransportMessages.cjs +0 -13
- package/src/utils/logMessageTransportMessages/logMessageTransportMessages.d.ts +0 -2
- package/src/utils/logMessageTransportMessages/logMessageTransportMessages.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.20.13](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.12...v4.20.13) (2025-07-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add createWalletClient method to ZeroDevExtension ([#9036](https://github.com/dynamic-labs/dynamic-auth/issues/9036)) ([674df45](https://github.com/dynamic-labs/dynamic-auth/commit/674df45f21e76070594963c2e3b7c19ba94e3004))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* allow to retry metamask deeplink ([#9066](https://github.com/dynamic-labs/dynamic-auth/issues/9066)) ([308c0d2](https://github.com/dynamic-labs/dynamic-auth/commit/308c0d2ddd7a5c7460f31d25365687b315b0a0f4))
|
|
13
|
+
|
|
2
14
|
### [4.20.12](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.11...v4.20.12) (2025-07-01)
|
|
3
15
|
|
|
4
16
|
|
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.13",
|
|
4
4
|
"description": "Core package for utilizing Dynamic's sdk",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@vue/reactivity": "^3.4.21",
|
|
22
22
|
"@dynamic-labs/sdk-api-core": "0.0.699",
|
|
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.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.20.13",
|
|
24
|
+
"@dynamic-labs/logger": "4.20.13",
|
|
25
|
+
"@dynamic-labs/message-transport": "4.20.13",
|
|
26
|
+
"@dynamic-labs/types": "4.20.13",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {}
|
package/src/client/client.cjs
CHANGED
|
@@ -11,7 +11,6 @@ var sdkModule = require('../modules/sdkModule/sdkModule.cjs');
|
|
|
11
11
|
var userInterfaceModule = require('../modules/userInterfaceModule/userInterfaceModule.cjs');
|
|
12
12
|
var walletsModule = require('../modules/walletsModule/walletsModule.cjs');
|
|
13
13
|
var Extendable = require('../utils/Extendable/Extendable.cjs');
|
|
14
|
-
var logMessageTransportMessages = require('../utils/logMessageTransportMessages/logMessageTransportMessages.cjs');
|
|
15
14
|
var setupFetchHandler = require('../utils/setupFetchHandler/setupFetchHandler.cjs');
|
|
16
15
|
var setupLogHandler = require('../utils/setupLogHandler/setupLogHandler.cjs');
|
|
17
16
|
var core = require('./core/core.cjs');
|
|
@@ -25,12 +24,8 @@ const baseClientExtensionName = 'base';
|
|
|
25
24
|
* it will be used for.
|
|
26
25
|
*/
|
|
27
26
|
const createClient = (props) => {
|
|
28
|
-
var _a;
|
|
29
27
|
const instrumentation = instrumentationModule.setupInstrumentationModule(props);
|
|
30
28
|
const core$1 = core.createCore(props);
|
|
31
|
-
if ((_a = props.debug) === null || _a === void 0 ? void 0 : _a.messageTransport) {
|
|
32
|
-
logMessageTransportMessages.logMessageTransportMessages(core$1.messageTransport);
|
|
33
|
-
}
|
|
34
29
|
instrumentation.trackCore(core$1);
|
|
35
30
|
setupLogHandler.setupLogHandler(core$1);
|
|
36
31
|
setupFetchHandler.setupFetchHandler(core$1);
|
package/src/client/client.js
CHANGED
|
@@ -7,7 +7,6 @@ import { createSdkModule } from '../modules/sdkModule/sdkModule.js';
|
|
|
7
7
|
import { createUserInterfaceModule } from '../modules/userInterfaceModule/userInterfaceModule.js';
|
|
8
8
|
import { createWalletsModule } from '../modules/walletsModule/walletsModule.js';
|
|
9
9
|
import { Extendable } from '../utils/Extendable/Extendable.js';
|
|
10
|
-
import { logMessageTransportMessages } from '../utils/logMessageTransportMessages/logMessageTransportMessages.js';
|
|
11
10
|
import { setupFetchHandler } from '../utils/setupFetchHandler/setupFetchHandler.js';
|
|
12
11
|
import { setupLogHandler } from '../utils/setupLogHandler/setupLogHandler.js';
|
|
13
12
|
import { createCore } from './core/core.js';
|
|
@@ -21,12 +20,8 @@ const baseClientExtensionName = 'base';
|
|
|
21
20
|
* it will be used for.
|
|
22
21
|
*/
|
|
23
22
|
const createClient = (props) => {
|
|
24
|
-
var _a;
|
|
25
23
|
const instrumentation = setupInstrumentationModule(props);
|
|
26
24
|
const core = createCore(props);
|
|
27
|
-
if ((_a = props.debug) === null || _a === void 0 ? void 0 : _a.messageTransport) {
|
|
28
|
-
logMessageTransportMessages(core.messageTransport);
|
|
29
|
-
}
|
|
30
25
|
instrumentation.trackCore(core);
|
|
31
26
|
setupLogHandler(core);
|
|
32
27
|
setupFetchHandler(core);
|
package/src/client/core/core.cjs
CHANGED
|
@@ -15,7 +15,7 @@ const createCore = (props) => {
|
|
|
15
15
|
messageTransport: messageTransport.makeWaitForInitEvent({
|
|
16
16
|
bypassBlockIf: (message) => message.origin === 'webview',
|
|
17
17
|
initializeMessageType: messageTransport.sdkHasLoadedEventName,
|
|
18
|
-
messageTransport: messageTransport.createMessageTransport(),
|
|
18
|
+
messageTransport: messageTransport.applyTransportStamps(messageTransport.createMessageTransport()),
|
|
19
19
|
}),
|
|
20
20
|
}),
|
|
21
21
|
});
|
|
@@ -25,6 +25,10 @@ const createCore = (props) => {
|
|
|
25
25
|
// );
|
|
26
26
|
const initialization = initializationModule.createInitializationModule(messageTransport$1);
|
|
27
27
|
return {
|
|
28
|
+
/**
|
|
29
|
+
* Debug properties
|
|
30
|
+
*/
|
|
31
|
+
debug: props.debug,
|
|
28
32
|
/**
|
|
29
33
|
* Allows an extension to add its name to the list, such that
|
|
30
34
|
* other extensions are able to detect if it is present.
|
|
@@ -5,6 +5,14 @@ import { ClientProps } from '../client';
|
|
|
5
5
|
*/
|
|
6
6
|
export type Core = ReturnType<typeof createCore>;
|
|
7
7
|
export declare const createCore: (props: ClientProps) => {
|
|
8
|
+
/**
|
|
9
|
+
* Debug properties
|
|
10
|
+
*/
|
|
11
|
+
debug: {
|
|
12
|
+
webview?: boolean | undefined;
|
|
13
|
+
messageTransport?: boolean | undefined;
|
|
14
|
+
loggerLevel?: import("dist/packages/logger/src").LogLevel | undefined;
|
|
15
|
+
} | undefined;
|
|
8
16
|
/**
|
|
9
17
|
* Allows an extension to add its name to the list, such that
|
|
10
18
|
* other extensions are able to detect if it is present.
|
package/src/client/core/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { reactive } from '@vue/reactivity';
|
|
3
|
-
import { applyRecoveryManager, applyDefaultMessageOrigin, makeWaitForInitEvent, sdkHasLoadedEventName, createMessageTransport } from '@dynamic-labs/message-transport';
|
|
3
|
+
import { applyRecoveryManager, applyDefaultMessageOrigin, makeWaitForInitEvent, sdkHasLoadedEventName, applyTransportStamps, createMessageTransport } from '@dynamic-labs/message-transport';
|
|
4
4
|
import { createInitializationModule } from './modules/initializationModule/initializationModule.js';
|
|
5
5
|
import { createManifestModule } from './modules/manifestModule/manifestModule.js';
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ const createCore = (props) => {
|
|
|
11
11
|
messageTransport: makeWaitForInitEvent({
|
|
12
12
|
bypassBlockIf: (message) => message.origin === 'webview',
|
|
13
13
|
initializeMessageType: sdkHasLoadedEventName,
|
|
14
|
-
messageTransport: createMessageTransport(),
|
|
14
|
+
messageTransport: applyTransportStamps(createMessageTransport()),
|
|
15
15
|
}),
|
|
16
16
|
}),
|
|
17
17
|
});
|
|
@@ -21,6 +21,10 @@ const createCore = (props) => {
|
|
|
21
21
|
// );
|
|
22
22
|
const initialization = createInitializationModule(messageTransport);
|
|
23
23
|
return {
|
|
24
|
+
/**
|
|
25
|
+
* Debug properties
|
|
26
|
+
*/
|
|
27
|
+
debug: props.debug,
|
|
24
28
|
/**
|
|
25
29
|
* Allows an extension to add its name to the list, such that
|
|
26
30
|
* other extensions are able to detect if it is present.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { logMessageTransportMessages } from './logMessageTransportMessages';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
const logMessageTransportMessages = (messageTransport) => {
|
|
7
|
-
messageTransport.on((message) => {
|
|
8
|
-
// eslint-disable-next-line no-console
|
|
9
|
-
console.log(JSON.stringify(message, null, 2));
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
exports.logMessageTransportMessages = logMessageTransportMessages;
|