@polkadot/extension-dapp 0.43.1 → 0.43.2-2

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.1'
23
+ version: '0.43.2-2'
24
24
  };
25
25
 
26
26
  const unwrapBytes = util.u8aUnwrapBytes;
@@ -40,18 +40,15 @@
40
40
  genesisHash,
41
41
  name,
42
42
  type
43
- }) => {
44
- const encodedAddress = address.length === 42 ? address : utilCrypto.encodeAddress(utilCrypto.decodeAddress(address), ss58Format);
45
- return {
46
- address: encodedAddress,
47
- meta: {
48
- genesisHash,
49
- name,
50
- source
51
- },
52
- type
53
- };
54
- });
43
+ }) => ({
44
+ address: address.length === 42 ? address : utilCrypto.encodeAddress(utilCrypto.decodeAddress(address), ss58Format),
45
+ meta: {
46
+ genesisHash,
47
+ name,
48
+ source
49
+ },
50
+ type
51
+ }));
55
52
  }
56
53
  exports.isWeb3Injected = web3IsInjected();
57
54
  exports.web3EnablePromise = null;
package/bundle.js CHANGED
@@ -27,18 +27,15 @@ function mapAccounts(source, list, ss58Format) {
27
27
  genesisHash,
28
28
  name,
29
29
  type
30
- }) => {
31
- const encodedAddress = address.length === 42 ? address : encodeAddress(decodeAddress(address), ss58Format);
32
- return {
33
- address: encodedAddress,
34
- meta: {
35
- genesisHash,
36
- name,
37
- source
38
- },
39
- type
40
- };
41
- });
30
+ }) => ({
31
+ address: address.length === 42 ? address : encodeAddress(decodeAddress(address), ss58Format),
32
+ meta: {
33
+ genesisHash,
34
+ name,
35
+ source
36
+ },
37
+ type
38
+ }));
42
39
  } // have we found a properly constructed window.injectedWeb3
43
40
 
44
41
 
package/cjs/bundle.js CHANGED
@@ -67,9 +67,8 @@ function mapAccounts(source, list, ss58Format) {
67
67
  name,
68
68
  type
69
69
  } = _ref;
70
- const encodedAddress = address.length === 42 ? address : (0, _utilCrypto.encodeAddress)((0, _utilCrypto.decodeAddress)(address), ss58Format);
71
70
  return {
72
- address: encodedAddress,
71
+ address: address.length === 42 ? address : (0, _utilCrypto.encodeAddress)((0, _utilCrypto.decodeAddress)(address), ss58Format),
73
72
  meta: {
74
73
  genesisHash,
75
74
  name,
@@ -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.1'
14
+ version: '0.43.2-2'
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.1",
20
+ "version": "0.43.2-2",
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.1",
71
+ "@polkadot/extension-inject": "^0.43.2-2",
72
72
  "@polkadot/util": "^9.0.1",
73
73
  "@polkadot/util-crypto": "^9.0.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.1'
8
+ version: '0.43.2-2'
9
9
  };