@polkadot/extension-inject 0.40.5-2 → 0.41.2-0
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/index.cjs +5 -4
- package/package.json +1 -2
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
package/index.cjs
CHANGED
|
@@ -10,10 +10,11 @@ exports.injectExtension = injectExtension;
|
|
|
10
10
|
// It is recommended to always use the function below to shield the extension and dapp from
|
|
11
11
|
// any future changes. The exposed interface will manage access between the 2 environments,
|
|
12
12
|
// be it via window (current), postMessage (under consideration) or any other mechanism
|
|
13
|
-
function injectExtension(enable, {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
function injectExtension(enable, _ref) {
|
|
14
|
+
let {
|
|
15
|
+
name,
|
|
16
|
+
version
|
|
17
|
+
} = _ref;
|
|
17
18
|
// small helper with the typescript types, just cast window
|
|
18
19
|
const windowInject = window; // don't clobber the existing object, we will add it (or create as needed)
|
|
19
20
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"bugs": "https://github.com/polkadot-js/extension/issues",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "A generic injector (usable to any extension), that populates the base exposed interfaces to be used by dapps.",
|
|
6
|
-
"engines": {},
|
|
7
6
|
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-inject#readme",
|
|
8
7
|
"license": "Apache-2",
|
|
9
8
|
"maintainers": [],
|
|
@@ -15,7 +14,7 @@
|
|
|
15
14
|
},
|
|
16
15
|
"sideEffects": false,
|
|
17
16
|
"type": "module",
|
|
18
|
-
"version": "0.
|
|
17
|
+
"version": "0.41.2-0",
|
|
19
18
|
"main": "index.js",
|
|
20
19
|
"dependencies": {
|
|
21
20
|
"@babel/runtime": "^7.15.4"
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED