@white-matrix/chainide
Advanced tools
Comparing version 0.0.2 to 0.0.3
import { IChainIdeProxyImpl } from './types/chainIdeProxyImpl'; | ||
export declare const getChainIde: () => IChainIdeProxyImpl; | ||
export declare const chainIDE: IChainIdeProxyImpl; | ||
export * from './types/index'; |
@@ -1,7 +0,2 @@ | ||
export const getChainIde = () => { | ||
if (window.getChainIde) { | ||
return window.getChainIde(); | ||
} | ||
throw Error('plugin is not initial'); | ||
}; | ||
export const chainIDE = window.getChainIde(); | ||
export * from './types/index'; |
import { IPluginStorage } from './extensionsStorage'; | ||
import { PluginConfigurations, IChainIdeProxyImpl } from './index'; | ||
import { PluginConfigurations } from './index'; | ||
export interface ExtensionProperty { | ||
@@ -11,4 +11,4 @@ active: () => void; | ||
export interface Plugin { | ||
activate: (ctx: PluginContext, Impl: IChainIdeProxyImpl) => void; | ||
deactivate: (ctx: PluginContext, Impl: IChainIdeProxyImpl) => void; | ||
activate: (ctx: PluginContext) => void; | ||
deactivate: (ctx: PluginContext) => void; | ||
store: IPluginStorage; | ||
@@ -15,0 +15,0 @@ config: PluginConfigurations; |
{ | ||
"name": "@white-matrix/chainide", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "chainIDE extension implements", | ||
@@ -5,0 +5,0 @@ "private": false, |
import { IChainIdeProxyImpl } from './types/chainIdeProxyImpl'; | ||
export const getChainIde = () => { | ||
if (window.getChainIde) { | ||
return window.getChainIde() as IChainIdeProxyImpl; | ||
} | ||
export const chainIDE = window.getChainIde() as IChainIdeProxyImpl | ||
throw Error('plugin is not initial'); | ||
}; | ||
export * from './types/index'; | ||
export * from './types/index'; |
import { IPluginStorage } from './extensionsStorage'; | ||
import { PluginConfigurations, IChainIdeProxyImpl } from './index'; | ||
import { PluginConfigurations } from './index'; | ||
export interface ExtensionProperty { | ||
@@ -13,4 +13,4 @@ active: () => void; | ||
export interface Plugin { | ||
activate: (ctx: PluginContext, Impl: IChainIdeProxyImpl) => void; | ||
deactivate: (ctx: PluginContext, Impl: IChainIdeProxyImpl) => void; | ||
activate: (ctx: PluginContext) => void; | ||
deactivate: (ctx: PluginContext) => void; | ||
// 动态更新 store | ||
@@ -17,0 +17,0 @@ store: IPluginStorage; |
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
11615
359