@subwallet/extension-inject 1.1.28-1 → 1.1.29-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
@@ -63,6 +63,10 @@ export const inject6963EIP = provider => {
63
63
  const _provider = new Proxy(provider, {
64
64
  // TODO: Please review the security of this
65
65
  get(target, key) {
66
+ if (key === 'then') {
67
+ return Promise.resolve(target);
68
+ }
69
+
66
70
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-return
67
71
  return Reflect.get(target, key).bind(target);
68
72
  },
package/cjs/bundle.js CHANGED
@@ -77,6 +77,10 @@ const inject6963EIP = provider => {
77
77
  const _provider = new Proxy(provider, {
78
78
  // TODO: Please review the security of this
79
79
  get(target, key) {
80
+ if (key === 'then') {
81
+ return Promise.resolve(target);
82
+ }
83
+
80
84
  // eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-return
81
85
  return Reflect.get(target, key).bind(target);
82
86
  },
@@ -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.1.28-1'
16
+ version: '1.1.29-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.1.28-1",
17
+ "version": "1.1.29-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.1.28-1'
10
+ version: '1.1.29-0'
11
11
  };