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

@dynamic-labs/client

Package Overview
Dependencies
Maintainers
1
Versions
239
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 2.1.0-alpha.17 to 2.1.0-alpha.18

src/client/core/modules/manifestModule/index.d.ts

2

package.js
'use client'
var version = "2.1.0-alpha.17";
var version = "2.1.0-alpha.18";
export { version };
{
"name": "@dynamic-labs/client",
"version": "2.1.0-alpha.17",
"version": "2.1.0-alpha.18",
"repository": {

@@ -29,10 +29,10 @@ "type": "git",

"dependencies": {
"@dynamic-labs/message-transport": "2.1.0-alpha.17",
"@dynamic-labs/message-transport": "2.1.0-alpha.18",
"@vue/reactivity": "3.4.21"
},
"peerDependencies": {
"@dynamic-labs/logger": "2.1.0-alpha.17",
"@dynamic-labs/types": "2.1.0-alpha.17",
"@dynamic-labs/logger": "2.1.0-alpha.18",
"@dynamic-labs/types": "2.1.0-alpha.18",
"eventemitter3": "5.0.1"
}
}

@@ -17,3 +17,3 @@ 'use client'

const createClient = (props) => {
const core = createCore();
const core = createCore(props);
const baseExtendable = new Extendable(core);

@@ -24,3 +24,3 @@ return baseExtendable.extend(() => ({

/** Module that gives insight over the state of the SDK */
sdk: createSdkModule(core, props),
sdk: createSdkModule(core),
/** Module that provide access to UI features */

@@ -27,0 +27,0 @@ ui: createUserInterfaceModule(core),

@@ -0,1 +1,2 @@

import { ClientProps } from '../client';
/**

@@ -6,3 +7,3 @@ * Holds properties and methods used by client extensions, but that we don't

export type Core = ReturnType<typeof createCore>;
export declare const createCore: () => {
export declare const createCore: (props: ClientProps) => {
/**

@@ -24,2 +25,8 @@ * Allows an extension to add its name to the list, such that

/**
* Manages the manifest of the host
*/
manifest: {
setAppOrigin: (appOrigin: string) => string;
};
/**
* Message transport that will be used to send and receive messages to the webview.

@@ -26,0 +33,0 @@ * Should preferably be used with createRequestChannel, rather than used directly.

'use client'
import { applyDefaultMessageOrigin, makeWaitForInitEvent, sdkHasLoadedEventName, createMessageTransport } from '@dynamic-labs/message-transport';
import { createInitializationModule } from './modules/initializationModule/initializationModule.js';
import { createManifestModule } from './modules/manifestModule/manifestModule.js';

@@ -17,3 +18,3 @@ const messageTransport = applyDefaultMessageOrigin({

// );
const createCore = () => ({
const createCore = (props) => ({
/**

@@ -32,2 +33,6 @@ * Allows an extension to add its name to the list, such that

/**
* Manages the manifest of the host
*/
manifest: createManifestModule(props, messageTransport),
/**
* Message transport that will be used to send and receive messages to the webview.

@@ -34,0 +39,0 @@ * Should preferably be used with createRequestChannel, rather than used directly.

import { SdkModuleState, StoreEventListeners } from '@dynamic-labs/message-transport';
import type { ClientProps } from '../../client';
import { Core } from '../../client/core';

@@ -7,2 +6,2 @@ export type SdkModule = SdkModuleState & StoreEventListeners<SdkModuleState> & {

};
export declare const createSdkModule: (core: Core, props: ClientProps) => SdkModule;
export declare const createSdkModule: (core: Core) => SdkModule;
'use client'
import { __awaiter } from '../../../_virtual/_tslib.js';
import { createRequestChannel, createStore } from '@dynamic-labs/message-transport';
import { createStore } from '@dynamic-labs/message-transport';
import { pickListenerActions } from '../../utils/pickListenerActions/pickListenerActions.js';
import { addProperty } from '../../utils/addProperty/addProperty.js';
import { createManifest } from './manifest/manifest.js';
const createSdkModule = (core, props) => {
const requestChannel = createRequestChannel(core.messageTransport);
requestChannel.handle('manifest', () => __awaiter(void 0, void 0, void 0, function* () { return createManifest(props); }));
const createSdkModule = (core) => {
const store = createStore({

@@ -12,0 +8,0 @@ initialState: {

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