@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.
@@ -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-1'
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 @subwallet/extension-dapp authors & contributors
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 @subwallet/extension-dapp authors & contributors
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)
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@subwallet/extension-dapp',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '0.4.2-1'
14
+ version: '0.4.2-2'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
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 @subwallet/extension-dapp authors & contributors
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 @subwallet/extension authors & contributors
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
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension-dapp authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension-dapp authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // Since we inject into pages, we skip this
4
4
  // import './detectPackage';
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./cjs/detectPackage.js"
18
18
  ],
19
19
  "type": "module",
20
- "version": "0.4.2-1",
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-1"
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-1'
8
+ version: '0.4.2-2'
9
9
  };
package/util.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension-dapp authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension-dapp authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export function documentReadyPromise(creator) {
4
4
  return new Promise(resolve => {
package/wrapBytes.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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;