@metamask/permission-controller 11.0.5 → 11.0.6
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/CHANGELOG.md +12 -2
- package/dist/PermissionController.cjs +2 -3
- package/dist/PermissionController.cjs.map +1 -1
- package/dist/PermissionController.d.cts +8 -8
- package/dist/PermissionController.d.cts.map +1 -1
- package/dist/PermissionController.d.mts +8 -8
- package/dist/PermissionController.d.mts.map +1 -1
- package/dist/PermissionController.mjs +2 -3
- package/dist/PermissionController.mjs.map +1 -1
- package/dist/SubjectMetadataController.cjs.map +1 -1
- package/dist/SubjectMetadataController.d.cts +2 -2
- package/dist/SubjectMetadataController.d.cts.map +1 -1
- package/dist/SubjectMetadataController.d.mts +2 -2
- package/dist/SubjectMetadataController.d.mts.map +1 -1
- package/dist/SubjectMetadataController.mjs.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [11.0.6]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Bump `@metamask/base-controller` from `^7.1.1` to `^8.0.0` ([#5305](https://github.com/MetaMask/core/pull/5305))
|
|
15
|
+
- Bump `@metamask/controller-utils` from `^11.4.5` to `^11.5.0` ([#5272](https://github.com/MetaMask/core/pull/5272))
|
|
16
|
+
- Bump `@metamask/json-rpc-engine` from `^10.0.2` to `^10.0.3` ([#5272](https://github.com/MetaMask/core/pull/5272))
|
|
17
|
+
- Bump `@metamask/utils` from `^11.0.1` to `^11.1.0` ([#5223](https://github.com/MetaMask/core/pull/5223))
|
|
18
|
+
|
|
10
19
|
## [11.0.5]
|
|
11
20
|
|
|
12
21
|
### Changed
|
|
@@ -19,7 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
19
28
|
- Bump `nanoid` from `^3.1.31` to `^3.3.8` ([#5073](https://github.com/MetaMask/core/pull/5073))
|
|
20
29
|
- Bump `@metamask/utils` from `^10.0.0` to `^11.0.1` ([#5080](https://github.com/MetaMask/core/pull/5080))
|
|
21
30
|
- Bump `@metamask/rpc-errors` from `^7.0.0` to `^7.0.2` ([#5080](https://github.com/MetaMask/core/pull/5080))
|
|
22
|
-
- Bump `@metamask/base-controller` from `^7.0.0` to `^7.1.
|
|
31
|
+
- Bump `@metamask/base-controller` from `^7.0.0` to `^7.1.1` ([#5079](https://github.com/MetaMask/core/pull/5079)), ([#5135](https://github.com/MetaMask/core/pull/5135))
|
|
23
32
|
|
|
24
33
|
## [11.0.4]
|
|
25
34
|
|
|
@@ -321,7 +330,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
321
330
|
|
|
322
331
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
323
332
|
|
|
324
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@11.0.
|
|
333
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@11.0.6...HEAD
|
|
334
|
+
[11.0.6]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@11.0.5...@metamask/permission-controller@11.0.6
|
|
325
335
|
[11.0.5]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@11.0.4...@metamask/permission-controller@11.0.5
|
|
326
336
|
[11.0.4]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@11.0.3...@metamask/permission-controller@11.0.4
|
|
327
337
|
[11.0.3]: https://github.com/MetaMask/core/compare/@metamask/permission-controller@11.0.2...@metamask/permission-controller@11.0.3
|
|
@@ -59,7 +59,7 @@ var CaveatMutatorOperation;
|
|
|
59
59
|
* document for details.
|
|
60
60
|
*
|
|
61
61
|
* Assumes the existence of an {@link ApprovalController} reachable via the
|
|
62
|
-
* {@link
|
|
62
|
+
* {@link Messenger}.
|
|
63
63
|
*
|
|
64
64
|
* @template ControllerPermissionSpecification - A union of the types of all
|
|
65
65
|
* permission specifications available to the controller. Any referenced caveats
|
|
@@ -88,7 +88,7 @@ class PermissionController extends base_controller_1.BaseController {
|
|
|
88
88
|
* {@link PermissionSpecificationMap} and the README for more details.
|
|
89
89
|
* @param options.unrestrictedMethods - The callable names of all JSON-RPC
|
|
90
90
|
* methods ignored by the new controller.
|
|
91
|
-
* @param options.messenger - The
|
|
91
|
+
* @param options.messenger - The messenger. See
|
|
92
92
|
* {@link BaseController} for more information.
|
|
93
93
|
* @param options.state - Existing state to hydrate the controller with at
|
|
94
94
|
* initialization.
|
|
@@ -866,7 +866,6 @@ class PermissionController extends base_controller_1.BaseController {
|
|
|
866
866
|
*/
|
|
867
867
|
validateCaveat(caveat, origin, target) {
|
|
868
868
|
if (!(0, controller_utils_1.isPlainObject)(caveat)) {
|
|
869
|
-
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
|
870
869
|
throw new errors_1.InvalidCaveatError(caveat, origin, target);
|
|
871
870
|
}
|
|
872
871
|
if (Object.keys(caveat).length !== 2) {
|