@polkadot/extension-dapp 0.43.2 → 0.43.3-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.
@@ -20,7 +20,7 @@
20
20
  name: '@polkadot/extension-dapp',
21
21
  path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto',
22
22
  type: 'esm',
23
- version: '0.43.2'
23
+ version: '0.43.3-0'
24
24
  };
25
25
 
26
26
  const unwrapBytes = util.u8aUnwrapBytes;
@@ -139,7 +139,12 @@
139
139
  name: source
140
140
  }) => subscribe(result => {
141
141
  accounts[source] = result;
142
- triggerUpdate();
142
+ try {
143
+ var _triggerUpdate;
144
+ (_triggerUpdate = triggerUpdate()) === null || _triggerUpdate === void 0 ? void 0 : _triggerUpdate.catch(console.error);
145
+ } catch (error) {
146
+ console.error(error);
147
+ }
143
148
  }));
144
149
  return () => {
145
150
  unsubs.forEach(unsub => {
package/bundle.js CHANGED
@@ -141,9 +141,15 @@ export async function web3AccountsSubscribe(cb, {
141
141
  },
142
142
  name: source
143
143
  }) => subscribe(result => {
144
- accounts[source] = result; // eslint-disable-next-line @typescript-eslint/no-floating-promises
144
+ accounts[source] = result;
145
145
 
146
- triggerUpdate();
146
+ try {
147
+ var _triggerUpdate;
148
+
149
+ (_triggerUpdate = triggerUpdate()) === null || _triggerUpdate === void 0 ? void 0 : _triggerUpdate.catch(console.error);
150
+ } catch (error) {
151
+ console.error(error);
152
+ }
147
153
  }));
148
154
  return () => {
149
155
  unsubs.forEach(unsub => {
package/cjs/bundle.js CHANGED
@@ -210,9 +210,15 @@ async function web3AccountsSubscribe(cb) {
210
210
  name: source
211
211
  } = _ref9;
212
212
  return subscribe(result => {
213
- accounts[source] = result; // eslint-disable-next-line @typescript-eslint/no-floating-promises
213
+ accounts[source] = result;
214
214
 
215
- triggerUpdate();
215
+ try {
216
+ var _triggerUpdate;
217
+
218
+ (_triggerUpdate = triggerUpdate()) === null || _triggerUpdate === void 0 ? void 0 : _triggerUpdate.catch(console.error);
219
+ } catch (error) {
220
+ console.error(error);
221
+ }
216
222
  });
217
223
  });
218
224
  return () => {
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/extension-dapp',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '0.43.2'
14
+ version: '0.43.3-0'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./cjs/detectPackage.js"
18
18
  ],
19
19
  "type": "module",
20
- "version": "0.43.2",
20
+ "version": "0.43.3-0",
21
21
  "main": "./cjs/index.js",
22
22
  "module": "./index.js",
23
23
  "types": "./index.d.ts",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@babel/runtime": "^7.17.9",
71
- "@polkadot/extension-inject": "^0.43.2",
71
+ "@polkadot/extension-inject": "^0.43.3-0",
72
72
  "@polkadot/util": "^9.2.1",
73
73
  "@polkadot/util-crypto": "^9.2.1"
74
74
  },
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/extension-dapp',
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.43.2'
8
+ version: '0.43.3-0'
9
9
  };