@polkadot/extension-dapp 0.46.6 → 0.46.8

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.
@@ -18,7 +18,7 @@
18
18
  });
19
19
  }
20
20
 
21
- const packageInfo = { name: '@polkadot/extension-dapp', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.46.6' };
21
+ const packageInfo = { name: '@polkadot/extension-dapp', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.46.8' };
22
22
 
23
23
  const unwrapBytes = util.u8aUnwrapBytes;
24
24
  const wrapBytes = util.u8aWrapBytes;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const packageInfo_1 = require("@polkadot/extension-inject/cjs/packageInfo");
4
+ const util_1 = require("@polkadot/util");
5
+ const packageInfo_js_1 = require("./packageInfo.js");
6
+ (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, [packageInfo_1.packageInfo]);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/extension-dapp', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.46.6' };
4
+ exports.packageInfo = { name: '@polkadot/extension-dapp', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.46.8' };
package/package.json CHANGED
@@ -14,11 +14,11 @@
14
14
  "url": "https://github.com/polkadot-js/extension.git"
15
15
  },
16
16
  "sideEffects": [
17
- "./detectPackage.js",
18
- "./cjs/detectPackage.js"
17
+ "./packageDetect.js",
18
+ "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "0.46.6",
21
+ "version": "0.46.8",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -37,22 +37,16 @@
37
37
  "require": "./cjs/bundle.js",
38
38
  "default": "./bundle.js"
39
39
  },
40
- "./detectOther": {
41
- "types": "./detectOther.d.ts",
42
- "module": "./detectOther.js",
43
- "require": "./cjs/detectOther.js",
44
- "default": "./detectOther.js"
45
- },
46
- "./detectPackage": {
47
- "types": "./detectPackage.d.ts",
48
- "module": "./detectPackage.js",
49
- "require": "./cjs/detectPackage.js",
50
- "default": "./detectPackage.js"
51
- },
52
40
  "./package.json": {
53
41
  "require": "./cjs/package.json",
54
42
  "default": "./package.json"
55
43
  },
44
+ "./packageDetect": {
45
+ "types": "./packageDetect.d.ts",
46
+ "module": "./packageDetect.js",
47
+ "require": "./cjs/packageDetect.js",
48
+ "default": "./packageDetect.js"
49
+ },
56
50
  "./packageInfo.js": {
57
51
  "types": "./packageInfo.d.ts",
58
52
  "module": "./packageInfo.js",
@@ -79,9 +73,9 @@
79
73
  }
80
74
  },
81
75
  "dependencies": {
82
- "@polkadot/extension-inject": "0.46.6",
83
- "@polkadot/util": "^12.6.1",
84
- "@polkadot/util-crypto": "^12.6.1",
76
+ "@polkadot/extension-inject": "0.46.8",
77
+ "@polkadot/util": "^12.6.2",
78
+ "@polkadot/util-crypto": "^12.6.2",
85
79
  "tslib": "^2.6.2"
86
80
  },
87
81
  "peerDependencies": {
@@ -0,0 +1,4 @@
1
+ import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo';
2
+ import { detectPackage } from '@polkadot/util';
3
+ import { packageInfo } from './packageInfo.js';
4
+ detectPackage(packageInfo, null, [injectInfo]);
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/extension-dapp', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.46.6' };
1
+ export const packageInfo = { name: '@polkadot/extension-dapp', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.46.8' };
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const packageInfo_1 = require("@polkadot/extension-inject/cjs/packageInfo");
4
- exports.default = [packageInfo_1.packageInfo];
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const util_1 = require("@polkadot/util");
5
- const detectOther_js_1 = tslib_1.__importDefault(require("./detectOther.js"));
6
- const packageInfo_js_1 = require("./packageInfo.js");
7
- (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default);
package/detectOther.d.ts DELETED
@@ -1,7 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- path: string;
4
- type: string;
5
- version: string;
6
- }[];
7
- export default _default;
package/detectOther.js DELETED
@@ -1,2 +0,0 @@
1
- import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo';
2
- export default [injectInfo];
package/detectPackage.js DELETED
@@ -1,4 +0,0 @@
1
- import { detectPackage } from '@polkadot/util';
2
- import others from './detectOther.js';
3
- import { packageInfo } from './packageInfo.js';
4
- detectPackage(packageInfo, null, others);
File without changes