@subwallet/extension-inject 1.3.45-1 → 1.3.46-0

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
@@ -27,15 +27,7 @@ export function injectExtension(enable, {
27
27
  export function injectEvmExtension(evmProvider) {
28
28
  // small helper with the typescript types, just cast window
29
29
  const windowInject = window;
30
-
31
- // add our enable function
32
- if (windowInject.SubWallet) {
33
- // Provider has been initialized in proxy mode
34
- windowInject.SubWallet.provider = evmProvider;
35
- } else {
36
- // Provider has been initialized in direct mode
37
- windowInject.SubWallet = evmProvider;
38
- }
30
+ windowInject.SubWallet = evmProvider;
39
31
  if (!windowInject.ethereum) {
40
32
  windowInject.ethereum = evmProvider;
41
33
  windowInject.dispatchEvent(new Event('ethereum#initialized'));
package/cjs/bundle.js CHANGED
@@ -43,15 +43,7 @@ function injectExtension(enable, _ref) {
43
43
  function injectEvmExtension(evmProvider) {
44
44
  // small helper with the typescript types, just cast window
45
45
  const windowInject = window;
46
-
47
- // add our enable function
48
- if (windowInject.SubWallet) {
49
- // Provider has been initialized in proxy mode
50
- windowInject.SubWallet.provider = evmProvider;
51
- } else {
52
- // Provider has been initialized in direct mode
53
- windowInject.SubWallet = evmProvider;
54
- }
46
+ windowInject.SubWallet = evmProvider;
55
47
  if (!windowInject.ethereum) {
56
48
  windowInject.ethereum = evmProvider;
57
49
  windowInject.dispatchEvent(new Event('ethereum#initialized'));
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@subwallet/extension-inject',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '1.3.45-1'
16
+ version: '1.3.46-0'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "sideEffects": true,
16
16
  "type": "module",
17
- "version": "1.3.45-1",
17
+ "version": "1.3.46-0",
18
18
  "main": "./cjs/index.js",
19
19
  "module": "./index.js",
20
20
  "types": "./index.d.ts",
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@subwallet/extension-inject',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '1.3.45-1'
10
+ version: '1.3.46-0'
11
11
  };