@polkadot/extension-dapp 0.42.11-0 → 0.43.2-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-polkadot-extension-dapp.js +10 -13
- package/bundle.js +9 -12
- package/cjs/bundle.js +1 -2
- package/cjs/package.json +3 -1
- package/cjs/packageInfo.js +1 -1
- package/detectOther.js +1 -1
- package/package.json +5 -5
- package/packageInfo.js +1 -1
|
@@ -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.
|
|
23
|
+
version: '0.43.2-1'
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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:
|
|
71
|
+
address: address.length === 42 ? address : (0, _utilCrypto.encodeAddress)((0, _utilCrypto.decodeAddress)(address), ss58Format),
|
|
73
72
|
meta: {
|
|
74
73
|
genesisHash,
|
|
75
74
|
name,
|
package/cjs/package.json
CHANGED
package/cjs/packageInfo.js
CHANGED
package/detectOther.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Copyright 2017-2022 @polkadot/extension-dapp authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo
|
|
3
|
+
import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo';
|
|
4
4
|
export default [injectInfo];
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./cjs/detectPackage.js"
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "0.
|
|
20
|
+
"version": "0.43.2-1",
|
|
21
21
|
"main": "./cjs/index.js",
|
|
22
22
|
"module": "./index.js",
|
|
23
23
|
"types": "./index.d.ts",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@babel/runtime": "^7.17.
|
|
71
|
-
"@polkadot/extension-inject": "^0.
|
|
72
|
-
"@polkadot/util": "^
|
|
73
|
-
"@polkadot/util-crypto": "^
|
|
70
|
+
"@babel/runtime": "^7.17.9",
|
|
71
|
+
"@polkadot/extension-inject": "^0.43.2-1",
|
|
72
|
+
"@polkadot/util": "^9.0.1",
|
|
73
|
+
"@polkadot/util-crypto": "^9.0.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@polkadot/api": "*",
|
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.
|
|
8
|
+
version: '0.43.2-1'
|
|
9
9
|
};
|