@polkadot/extension-inject 0.42.5-9 → 0.42.5
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/chrome.cjs +13 -0
- package/chrome.d.ts +2 -0
- package/chrome.js +4 -0
- package/crossenv.cjs +3 -3
- package/crossenv.d.ts +1 -0
- package/crossenv.js +2 -3
- package/detectOther.cjs +11 -0
- package/detectOther.d.ts +2 -0
- package/{cjs/dirname.d.ts → detectOther.js} +2 -4
- package/detectPackage.cjs +3 -2
- package/detectPackage.js +3 -2
- package/package.json +26 -20
- package/packageInfo.cjs +5 -3
- package/packageInfo.d.ts +2 -0
- package/packageInfo.js +5 -3
- package/cjs/dirname.js +0 -6
- package/cjs/package.json +0 -3
package/chrome.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.chrome = void 0;
|
|
7
|
+
|
|
8
|
+
var _xGlobal = require("@polkadot/x-global");
|
|
9
|
+
|
|
10
|
+
// Copyright 2019-2022 @polkadot/extension-inject authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
const chrome = (0, _xGlobal.extractGlobal)('chrome', _xGlobal.xglobal.browser);
|
|
13
|
+
exports.chrome = chrome;
|
package/chrome.d.ts
ADDED
package/chrome.js
ADDED
package/crossenv.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _xGlobal = require("@polkadot/x-global");
|
|
4
|
+
|
|
3
5
|
// Copyright 2019-2022 @polkadot/extension-inject authors & contributors
|
|
4
6
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
|
|
6
|
-
self.chrome = self.browser;
|
|
7
|
-
}
|
|
7
|
+
(0, _xGlobal.exposeGlobal)('chrome', _xGlobal.xglobal.browser);
|
package/crossenv.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/crossenv.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// Copyright 2019-2022 @polkadot/extension-inject authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
3
|
+
import { exposeGlobal, xglobal } from '@polkadot/x-global';
|
|
4
|
+
exposeGlobal('chrome', xglobal.browser);
|
package/detectOther.cjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
// Copyright 2017-2022 @polkadot/extension-inject authors & contributors
|
|
8
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
+
// Empty template, auto-generated by @polkadot/dev
|
|
10
|
+
var _default = [];
|
|
11
|
+
exports.default = _default;
|
package/detectOther.d.ts
ADDED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
// Copyright 2017-2022 @polkadot/extension-inject authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default __dirname;
|
|
3
|
+
// Empty template, auto-generated by @polkadot/dev
|
|
4
|
+
export default [];
|
package/detectPackage.cjs
CHANGED
|
@@ -4,10 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
|
|
5
5
|
var _util = require("@polkadot/util");
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _detectOther = _interopRequireDefault(require("./detectOther.cjs"));
|
|
8
8
|
|
|
9
9
|
var _packageInfo = require("./packageInfo.cjs");
|
|
10
10
|
|
|
11
11
|
// Copyright 2017-2022 @polkadot/extension-inject authors & contributors
|
|
12
12
|
// SPDX-License-Identifier: Apache-2.0
|
|
13
|
-
|
|
13
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
14
|
+
(0, _util.detectPackage)(_packageInfo.packageInfo, null, _detectOther.default);
|
package/detectPackage.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright 2017-2022 @polkadot/extension-inject authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
3
4
|
import { detectPackage } from '@polkadot/util';
|
|
4
|
-
import
|
|
5
|
+
import others from "./detectOther.js";
|
|
5
6
|
import { packageInfo } from "./packageInfo.js";
|
|
6
|
-
detectPackage(packageInfo,
|
|
7
|
+
detectPackage(packageInfo, null, others);
|
package/package.json
CHANGED
|
@@ -14,22 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"sideEffects": true,
|
|
16
16
|
"type": "module",
|
|
17
|
-
"version": "0.42.5
|
|
18
|
-
"main": "index.
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"@polkadot/rpc-provider": "^7.1.2-1",
|
|
22
|
-
"@polkadot/types": "^7.1.2-1",
|
|
23
|
-
"@polkadot/util": "^8.2.2",
|
|
24
|
-
"@polkadot/util-crypto": "^8.2.2"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/chrome": "^0.0.174",
|
|
28
|
-
"@types/firefox-webext-browser": "^94.0.0"
|
|
29
|
-
},
|
|
30
|
-
"peerDependencies": {
|
|
31
|
-
"@polkadot/api": "*"
|
|
32
|
-
},
|
|
17
|
+
"version": "0.42.5",
|
|
18
|
+
"main": "index.cjs",
|
|
19
|
+
"module": "index.js",
|
|
20
|
+
"types": "index.d.ts",
|
|
33
21
|
"exports": {
|
|
34
22
|
".": {
|
|
35
23
|
"types": "./index.d.ts",
|
|
@@ -41,22 +29,29 @@
|
|
|
41
29
|
"require": "./bundle.cjs",
|
|
42
30
|
"default": "./bundle.js"
|
|
43
31
|
},
|
|
44
|
-
"./
|
|
45
|
-
"types": "./
|
|
46
|
-
"
|
|
32
|
+
"./chrome": {
|
|
33
|
+
"types": "./chrome.d.ts",
|
|
34
|
+
"require": "./chrome.cjs",
|
|
35
|
+
"default": "./chrome.js"
|
|
47
36
|
},
|
|
48
|
-
"./cjs/package.json": "./cjs/package.json",
|
|
49
37
|
"./crossenv": {
|
|
50
38
|
"types": "./crossenv.d.ts",
|
|
51
39
|
"require": "./crossenv.cjs",
|
|
52
40
|
"default": "./crossenv.js"
|
|
53
41
|
},
|
|
42
|
+
"./detectOther": {
|
|
43
|
+
"types": "./detectOther.d.ts",
|
|
44
|
+
"require": "./detectOther.cjs",
|
|
45
|
+
"default": "./detectOther.js"
|
|
46
|
+
},
|
|
54
47
|
"./detectPackage": {
|
|
55
48
|
"types": "./detectPackage.d.ts",
|
|
56
49
|
"require": "./detectPackage.cjs",
|
|
57
50
|
"default": "./detectPackage.js"
|
|
58
51
|
},
|
|
59
52
|
"./package.json": "./package.json",
|
|
53
|
+
"./packageInfo.cjs": "./packageInfo.cjs",
|
|
54
|
+
"./packageInfo.js": "./packageInfo.js",
|
|
60
55
|
"./packageInfo": {
|
|
61
56
|
"types": "./packageInfo.d.ts",
|
|
62
57
|
"require": "./packageInfo.cjs",
|
|
@@ -67,5 +62,16 @@
|
|
|
67
62
|
"require": "./types.cjs",
|
|
68
63
|
"default": "./types.js"
|
|
69
64
|
}
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@babel/runtime": "^7.16.7",
|
|
68
|
+
"@polkadot/rpc-provider": "^7.3.1",
|
|
69
|
+
"@polkadot/types": "^7.3.1",
|
|
70
|
+
"@polkadot/util": "^8.3.1",
|
|
71
|
+
"@polkadot/util-crypto": "^8.3.1",
|
|
72
|
+
"@polkadot/x-global": "^8.3.1"
|
|
73
|
+
},
|
|
74
|
+
"peerDependencies": {
|
|
75
|
+
"@polkadot/api": "*"
|
|
70
76
|
}
|
|
71
77
|
}
|
package/packageInfo.cjs
CHANGED
|
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.packageInfo = void 0;
|
|
7
|
-
// Copyright 2017-
|
|
7
|
+
// Copyright 2017-2022 @polkadot/extension-inject authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
-
//
|
|
9
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
10
10
|
const packageInfo = {
|
|
11
11
|
name: '@polkadot/extension-inject',
|
|
12
|
-
|
|
12
|
+
path: typeof __dirname === 'string' ? __dirname : 'auto',
|
|
13
|
+
type: 'cjs',
|
|
14
|
+
version: '0.42.5'
|
|
13
15
|
};
|
|
14
16
|
exports.packageInfo = packageInfo;
|
package/packageInfo.d.ts
CHANGED
package/packageInfo.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/extension-inject authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
//
|
|
3
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
4
4
|
export const packageInfo = {
|
|
5
5
|
name: '@polkadot/extension-inject',
|
|
6
|
-
|
|
6
|
+
path: new URL('.', import.meta.url).pathname,
|
|
7
|
+
type: 'esm',
|
|
8
|
+
version: '0.42.5'
|
|
7
9
|
};
|
package/cjs/dirname.js
DELETED
package/cjs/package.json
DELETED