@subwallet/extension-dapp 0.4.2-1 → 0.4.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.
- package/bundle-polkadot-extension-dapp.js +1 -1
- package/bundle.js +1 -1
- package/cjs/bundle.js +1 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/util.js +1 -1
- package/cjs/wrapBytes.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/packageInfo.js +1 -1
- package/util.js +1 -1
- package/wrapBytes.js +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
name: '@subwallet/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.4.2-
|
|
23
|
+
version: '0.4.2-2'
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const unwrapBytes = util.u8aUnwrapBytes;
|
package/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension-dapp authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { u8aEq } from '@polkadot/util';
|
|
4
4
|
import { decodeAddress, encodeAddress } from '@polkadot/util-crypto';
|
package/cjs/bundle.js
CHANGED
|
@@ -41,7 +41,7 @@ var _packageInfo = require("./packageInfo");
|
|
|
41
41
|
|
|
42
42
|
var _wrapBytes = require("./wrapBytes");
|
|
43
43
|
|
|
44
|
-
// Copyright 2019-2022 @
|
|
44
|
+
// Copyright 2019-2022 @polkadot/extension-dapp authors & contributors
|
|
45
45
|
// SPDX-License-Identifier: Apache-2.0
|
|
46
46
|
// expose utility functions
|
|
47
47
|
// just a helper (otherwise we cast all-over, so shorter and more readable)
|
package/cjs/packageInfo.js
CHANGED
package/cjs/util.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.documentReadyPromise = documentReadyPromise;
|
|
7
7
|
|
|
8
|
-
// Copyright 2019-2022 @
|
|
8
|
+
// Copyright 2019-2022 @polkadot/extension-dapp authors & contributors
|
|
9
9
|
// SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
function documentReadyPromise(creator) {
|
|
11
11
|
return new Promise(resolve => {
|
package/cjs/wrapBytes.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.wrapBytes = exports.unwrapBytes = exports.isWrapped = exports.PREFIX = e
|
|
|
7
7
|
|
|
8
8
|
var _util = require("@polkadot/util");
|
|
9
9
|
|
|
10
|
-
// Copyright 2019-2022 @
|
|
10
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
const ETHEREUM = _util.U8A_WRAP_ETHEREUM;
|
|
13
13
|
exports.ETHEREUM = ETHEREUM;
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./cjs/detectPackage.js"
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "0.4.2-
|
|
20
|
+
"version": "0.4.2-2",
|
|
21
21
|
"main": "./cjs/index.js",
|
|
22
22
|
"module": "./index.js",
|
|
23
23
|
"types": "./index.d.ts",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@babel/runtime": "^7.16.7",
|
|
71
71
|
"@polkadot/util": "^8.3.1",
|
|
72
72
|
"@polkadot/util-crypto": "^8.3.1",
|
|
73
|
-
"@subwallet/extension-inject": "^0.4.2-
|
|
73
|
+
"@subwallet/extension-inject": "^0.4.2-2"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@polkadot/api": "*",
|
package/packageInfo.js
CHANGED
|
@@ -5,5 +5,5 @@ export const packageInfo = {
|
|
|
5
5
|
name: '@subwallet/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.4.2-
|
|
8
|
+
version: '0.4.2-2'
|
|
9
9
|
};
|
package/util.js
CHANGED
package/wrapBytes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { U8A_WRAP_ETHEREUM, U8A_WRAP_POSTFIX, U8A_WRAP_PREFIX, u8aIsWrapped, u8aUnwrapBytes, u8aWrapBytes } from '@polkadot/util';
|
|
4
4
|
export const ETHEREUM = U8A_WRAP_ETHEREUM;
|