@metamask-previews/permission-controller 12.1.1-preview-159e76e4 → 12.1.1-preview-5c1b2b1
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 +4 -0
- package/dist/PermissionController.cjs +1 -0
- package/dist/PermissionController.cjs.map +1 -1
- package/dist/PermissionController.d.cts +8 -1
- package/dist/PermissionController.d.cts.map +1 -1
- package/dist/PermissionController.d.mts +8 -1
- package/dist/PermissionController.d.mts.map +1 -1
- package/dist/PermissionController.mjs +1 -0
- package/dist/PermissionController.mjs.map +1 -1
- package/dist/rpc-methods/revokePermissions.cjs.map +1 -1
- package/dist/rpc-methods/revokePermissions.d.cts +1 -1
- package/dist/rpc-methods/revokePermissions.d.cts.map +1 -1
- package/dist/rpc-methods/revokePermissions.d.mts +1 -1
- package/dist/rpc-methods/revokePermissions.d.mts.map +1 -1
- package/dist/rpc-methods/revokePermissions.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Add `PermissionController:getCaveat` action ([#7303](https://github.com/MetaMask/core/pull/7303))
|
|
13
|
+
|
|
10
14
|
### Changed
|
|
11
15
|
|
|
12
16
|
- Move peer dependencies for controller and service packages to direct dependencies ([#7209](https://github.com/MetaMask/core/pull/7209))
|
|
@@ -201,6 +201,7 @@ class PermissionController extends base_controller_1.BaseController {
|
|
|
201
201
|
this.messenger.registerActionHandler(`${controllerName}:updateCaveat`, (origin, target, caveatType, caveatValue) => {
|
|
202
202
|
this.updateCaveat(origin, target, caveatType, caveatValue);
|
|
203
203
|
});
|
|
204
|
+
this.messenger.registerActionHandler(`${controllerName}:getCaveat`, (origin, target, caveatType) => this.getCaveat(origin, target, caveatType));
|
|
204
205
|
}
|
|
205
206
|
/**
|
|
206
207
|
* Clears the state of the controller.
|