@polkadot/extension-base 0.40.3 → 0.40.4-3
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/background/handlers/State.cjs +2 -2
- package/background/handlers/State.js +2 -2
- package/package.json +7 -7
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/page/index.cjs +2 -2
|
@@ -310,8 +310,8 @@ class State {
|
|
|
310
310
|
const entry = (0, _classPrivateFieldLooseBase2.default)(this, _authUrls)[_authUrls][url];
|
|
311
311
|
|
|
312
312
|
(0, _util.assert)(entry, `The source ${url} is not known`);
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
(0, _classPrivateFieldLooseBase2.default)(this, _authUrls)[_authUrls][url].isAllowed = !entry.isAllowed;
|
|
314
|
+
this.saveCurrentAuthList();
|
|
315
315
|
return (0, _classPrivateFieldLooseBase2.default)(this, _authUrls)[_authUrls];
|
|
316
316
|
}
|
|
317
317
|
|
|
@@ -292,8 +292,8 @@ export default class State {
|
|
|
292
292
|
const entry = _classPrivateFieldLooseBase(this, _authUrls)[_authUrls][url];
|
|
293
293
|
|
|
294
294
|
assert(entry, `The source ${url} is not known`);
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
_classPrivateFieldLooseBase(this, _authUrls)[_authUrls][url].isAllowed = !entry.isAllowed;
|
|
296
|
+
this.saveCurrentAuthList();
|
|
297
297
|
return _classPrivateFieldLooseBase(this, _authUrls)[_authUrls];
|
|
298
298
|
}
|
|
299
299
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polkadot/extension-base",
|
|
3
3
|
"description": "Functions, classes and other utilities used in @polkadot/extension",
|
|
4
|
-
"version": "0.40.3",
|
|
4
|
+
"version": "0.40.4-3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Jaco Greeff <jacogr@gmail.com>",
|
|
7
7
|
"license": "Apache-2",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@babel/runtime": "^7.15.4",
|
|
12
|
-
"@polkadot/api": "^6.
|
|
13
|
-
"@polkadot/extension-dapp": "^0.40.3",
|
|
14
|
-
"@polkadot/extension-inject": "^0.40.3",
|
|
15
|
-
"@polkadot/keyring": "^7.
|
|
16
|
-
"@polkadot/phishing": "^0.6.
|
|
17
|
-
"@polkadot/ui-keyring": "^0.
|
|
12
|
+
"@polkadot/api": "^6.4.1",
|
|
13
|
+
"@polkadot/extension-dapp": "^0.40.4-3",
|
|
14
|
+
"@polkadot/extension-inject": "^0.40.4-3",
|
|
15
|
+
"@polkadot/keyring": "^7.5.1",
|
|
16
|
+
"@polkadot/phishing": "^0.6.357",
|
|
17
|
+
"@polkadot/ui-keyring": "^0.86.1"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/page/index.cjs
CHANGED
|
@@ -5,10 +5,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.sendMessage = sendMessage;
|
|
9
8
|
exports.enable = enable;
|
|
10
|
-
exports.redirectIfPhishing = redirectIfPhishing;
|
|
11
9
|
exports.handleResponse = handleResponse;
|
|
10
|
+
exports.redirectIfPhishing = redirectIfPhishing;
|
|
11
|
+
exports.sendMessage = sendMessage;
|
|
12
12
|
|
|
13
13
|
var _Injected = _interopRequireDefault(require("./Injected.cjs"));
|
|
14
14
|
|