@dynamic-labs/client
Advanced tools
Comparing version 3.0.0-alpha.13 to 3.0.0-alpha.14
'use client' | ||
var version = "3.0.0-alpha.13"; | ||
var version = "3.0.0-alpha.14"; | ||
export { version }; |
{ | ||
"name": "@dynamic-labs/client", | ||
"version": "3.0.0-alpha.13", | ||
"version": "3.0.0-alpha.14", | ||
"repository": { | ||
@@ -29,10 +29,10 @@ "type": "git", | ||
"dependencies": { | ||
"@dynamic-labs/message-transport": "3.0.0-alpha.13", | ||
"@dynamic-labs/message-transport": "3.0.0-alpha.14", | ||
"@vue/reactivity": "3.4.21" | ||
}, | ||
"peerDependencies": { | ||
"@dynamic-labs/logger": "3.0.0-alpha.13", | ||
"@dynamic-labs/types": "3.0.0-alpha.13", | ||
"@dynamic-labs/logger": "3.0.0-alpha.14", | ||
"@dynamic-labs/types": "3.0.0-alpha.14", | ||
"eventemitter3": "5.0.1" | ||
} | ||
} |
import { Extendable } from '../utils/Extendable'; | ||
export declare const baseClientExtensionName = "base"; | ||
export type BaseClient = ReturnType<typeof createClient>; | ||
@@ -3,0 +4,0 @@ export type ClientProps = { |
@@ -10,2 +10,3 @@ 'use client' | ||
const baseClientExtensionName = 'base'; | ||
/** | ||
@@ -21,16 +22,19 @@ * Generates a basic client that allows interacting with Dynamic's SDK, which | ||
const baseExtendable = new Extendable(core); | ||
return baseExtendable.extend(() => ({ | ||
/** Module that gives access over authentication state, such as the auth token and user */ | ||
auth: createAuthModule(core), | ||
/** Module that provides all the networks configured */ | ||
networks: createNetworksModule(core), | ||
/** Module that gives insight over the state of the SDK */ | ||
sdk: createSdkModule(core), | ||
/** Module that provide access to UI features */ | ||
ui: createUserInterfaceModule(core), | ||
/** Module that provides access to user's wallets */ | ||
wallets: createWalletsModule(core), | ||
})); | ||
return baseExtendable.extend(() => { | ||
core.declaredExtensionNames.push(baseClientExtensionName); | ||
return { | ||
/** Module that gives access over authentication state, such as the auth token and user */ | ||
auth: createAuthModule(core), | ||
/** Module that provides all the networks configured */ | ||
networks: createNetworksModule(core), | ||
/** Module that gives insight over the state of the SDK */ | ||
sdk: createSdkModule(core), | ||
/** Module that provide access to UI features */ | ||
ui: createUserInterfaceModule(core), | ||
/** Module that provides access to user's wallets */ | ||
wallets: createWalletsModule(core), | ||
}; | ||
}); | ||
}; | ||
export { createClient }; | ||
export { baseClientExtensionName, createClient }; |
@@ -5,5 +5,6 @@ export type { SocialProvider } from '@dynamic-labs/message-transport'; | ||
export { Extendable, type Extension } from './utils/Extendable'; | ||
export { createClient, type BaseClient, type ClientProps } from './client'; | ||
export { hasExtension } from './utils/Extendable/hasExtension'; | ||
export { createClient, type BaseClient, type ClientProps, baseClientExtensionName, } from './client'; | ||
export type { AuthModule } from './modules/authModule'; | ||
export type { SdkModule } from './modules/sdkModule'; | ||
export type { WalletsModule } from './modules/walletsModule'; |
'use client' | ||
export { Extendable } from './utils/Extendable/Extendable.js'; | ||
export { createClient } from './client/client.js'; | ||
export { hasExtension } from './utils/Extendable/hasExtension/hasExtension.js'; | ||
export { baseClientExtensionName, createClient } from './client/client.js'; |
@@ -7,3 +7,3 @@ 'use client' | ||
const store = createStore({ | ||
initialState: { evm: [] }, | ||
initialState: { evm: [], solana: [] }, | ||
key: 'networks', | ||
@@ -10,0 +10,0 @@ messageTransport: core.messageTransport, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
364593
95
1216
+ Added@dynamic-labs/logger@3.0.0-alpha.14(transitive)
+ Added@dynamic-labs/message-transport@3.0.0-alpha.14(transitive)
+ Added@dynamic-labs/types@3.0.0-alpha.14(transitive)
- Removed@dynamic-labs/logger@3.0.0-alpha.13(transitive)
- Removed@dynamic-labs/message-transport@3.0.0-alpha.13(transitive)
- Removed@dynamic-labs/types@3.0.0-alpha.13(transitive)