@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 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.subWalletEthereum = evmProvider;
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.subWalletEthereum = evmProvider;
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
  }
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@subwallet/extension-inject',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '0.4.6-0'
14
+ version: '0.4.6-1'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "sideEffects": true,
16
16
  "type": "module",
17
- "version": "0.4.6-0",
17
+ "version": "0.4.6-1",
18
18
  "main": "./cjs/index.js",
19
19
  "module": "./index.js",
20
20
  "types": "./index.d.ts",
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-0'
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
- subWalletEthereum: EvmProvider;
88
+ SubWallet: EvmProvider;
89
89
  }
90
90
  export declare type InjectedExtension = InjectedExtensionInfo & Injected;
91
91
  export declare type InjectOptions = InjectedExtensionInfo;