@subwallet/extension-inject 0.4.6-0 → 0.4.6-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.js +1 -1
- package/cjs/bundle.js +1 -1
- package/cjs/packageInfo.js +1 -1
- package/package.json +1 -1
- package/packageInfo.js +1 -1
- package/types.d.ts +1 -1
package/bundle.js
CHANGED
|
@@ -23,7 +23,7 @@ export function injectEvmExtension(evmProvider) {
|
|
|
23
23
|
// small helper with the typescript types, just cast window
|
|
24
24
|
const windowInject = window; // add our enable function
|
|
25
25
|
|
|
26
|
-
windowInject.
|
|
26
|
+
windowInject.SubWallet = evmProvider;
|
|
27
27
|
windowInject.dispatchEvent(new Event('subwallet#initialized')); // Todo: need more discuss to set it global and not conflict with MetaMask
|
|
28
28
|
// windowInject.dispatchEvent(new Event('ethereum#initialized'));
|
|
29
29
|
}
|
package/cjs/bundle.js
CHANGED
|
@@ -40,7 +40,7 @@ function injectEvmExtension(evmProvider) {
|
|
|
40
40
|
// small helper with the typescript types, just cast window
|
|
41
41
|
const windowInject = window; // add our enable function
|
|
42
42
|
|
|
43
|
-
windowInject.
|
|
43
|
+
windowInject.SubWallet = evmProvider;
|
|
44
44
|
windowInject.dispatchEvent(new Event('subwallet#initialized')); // Todo: need more discuss to set it global and not conflict with MetaMask
|
|
45
45
|
// windowInject.dispatchEvent(new Event('ethereum#initialized'));
|
|
46
46
|
}
|
package/cjs/packageInfo.js
CHANGED
package/package.json
CHANGED
package/packageInfo.js
CHANGED
|
@@ -5,5 +5,5 @@ export const packageInfo = {
|
|
|
5
5
|
name: '@subwallet/extension-inject',
|
|
6
6
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
7
7
|
type: 'esm',
|
|
8
|
-
version: '0.4.6-
|
|
8
|
+
version: '0.4.6-1'
|
|
9
9
|
};
|
package/types.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface InjectedWindowProvider {
|
|
|
85
85
|
}
|
|
86
86
|
export interface InjectedWindow extends This {
|
|
87
87
|
injectedWeb3: Record<string, InjectedWindowProvider>;
|
|
88
|
-
|
|
88
|
+
SubWallet: EvmProvider;
|
|
89
89
|
}
|
|
90
90
|
export declare type InjectedExtension = InjectedExtensionInfo & Injected;
|
|
91
91
|
export declare type InjectOptions = InjectedExtensionInfo;
|