Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dynamic-labs/client

Package Overview
Dependencies
Maintainers
0
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynamic-labs/client - npm Package Compare versions

Comparing version 3.0.0-alpha.13 to 3.0.0-alpha.14

src/utils/Extendable/hasExtension/hasExtension.cjs

2

package.js
'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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc