@white-matrix/chainide
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,2 +0,7 @@ | ||
export const getChainIde = () => window.getChainIde(); | ||
export const getChainIde = () => { | ||
if (window.getChainIde) { | ||
return window.getChainIde(); | ||
} | ||
throw Error('plugin is not initial'); | ||
}; | ||
export * from './types/index'; |
@@ -10,3 +10,3 @@ /// <reference types="react" /> | ||
export interface IBaseExtensionComponent { | ||
componentId: string; | ||
componentId?: string; | ||
position: ComponentPosition; | ||
@@ -13,0 +13,0 @@ componentFunc: () => JSX.Element | JSX.Element[] | null; |
{ | ||
"name": "@white-matrix/chainide", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "chainIDE extension implements", | ||
@@ -8,2 +8,3 @@ "private": false, | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -10,0 +11,0 @@ }, |
import { IChainIdeProxyImpl } from './types/chainIdeProxyImpl'; | ||
export const getChainIde = () => window.getChainIde() as IChainIdeProxyImpl; | ||
export const getChainIde = () => { | ||
if (window.getChainIde) { | ||
return window.getChainIde() as IChainIdeProxyImpl; | ||
} | ||
throw Error('plugin is not initial'); | ||
}; | ||
export * from './types/index'; |
@@ -10,3 +10,3 @@ export enum ComponentPosition { | ||
export interface IBaseExtensionComponent { | ||
componentId: string; | ||
componentId?: string; | ||
position: ComponentPosition; | ||
@@ -13,0 +13,0 @@ componentFunc: () => JSX.Element | JSX.Element[] | null; |
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
11983
368