@metamask/approval-controller
Advanced tools
+9
-1
@@ -10,2 +10,9 @@ # Changelog | ||
| ## [7.1.3] | ||
| ### Changed | ||
| - Bump `@metamask/base-controller` from `^7.1.0` to `^8.0.0` ([#5135](https://github.com/MetaMask/core/pull/5135)), ([#5305](https://github.com/MetaMask/core/pull/5305)) | ||
| - Bump `@metamask/utils` from `^11.0.1` to `^11.1.0` ([#5223](https://github.com/MetaMask/core/pull/5223)) | ||
| ## [7.1.2] | ||
@@ -266,3 +273,4 @@ | ||
| [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.1.2...HEAD | ||
| [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.1.3...HEAD | ||
| [7.1.3]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.1.2...@metamask/approval-controller@7.1.3 | ||
| [7.1.2]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.1.1...@metamask/approval-controller@7.1.2 | ||
@@ -269,0 +277,0 @@ [7.1.1]: https://github.com/MetaMask/core/compare/@metamask/approval-controller@7.1.0...@metamask/approval-controller@7.1.1 |
@@ -55,3 +55,3 @@ "use strict"; | ||
| * the request can be displayed to the user. | ||
| * @param options.messenger - The restricted controller messenger for the Approval controller. | ||
| * @param options.messenger - The restricted messenger for the Approval controller. | ||
| * @param options.state - The initial controller state. | ||
@@ -58,0 +58,0 @@ * @param options.typesExcludedFromRateLimiting - Array of approval types which allow multiple pending approval requests from the same origin. |
| import type { ControllerGetStateAction } from "@metamask/base-controller"; | ||
| import { BaseController, type ControllerStateChangeEvent, type RestrictedControllerMessenger } from "@metamask/base-controller"; | ||
| import { BaseController, type ControllerStateChangeEvent, type RestrictedMessenger } from "@metamask/base-controller"; | ||
| import type { JsonRpcError, DataWithOptionalCause } from "@metamask/rpc-errors"; | ||
@@ -59,3 +59,3 @@ import type { Json, OptionalField } from "@metamask/utils"; | ||
| }; | ||
| export type ApprovalControllerMessenger = RestrictedControllerMessenger<typeof controllerName, ApprovalControllerActions, ApprovalControllerEvents, never, never>; | ||
| export type ApprovalControllerMessenger = RestrictedMessenger<typeof controllerName, ApprovalControllerActions, ApprovalControllerEvents, never, never>; | ||
| export type ShowApprovalRequest = () => void | Promise<void>; | ||
@@ -222,3 +222,3 @@ export type ResultComponent = { | ||
| * the request can be displayed to the user. | ||
| * @param options.messenger - The restricted controller messenger for the Approval controller. | ||
| * @param options.messenger - The restricted messenger for the Approval controller. | ||
| * @param options.state - The initial controller state. | ||
@@ -225,0 +225,0 @@ * @param options.typesExcludedFromRateLimiting - Array of approval types which allow multiple pending approval requests from the same origin. |
| import type { ControllerGetStateAction } from "@metamask/base-controller"; | ||
| import { BaseController, type ControllerStateChangeEvent, type RestrictedControllerMessenger } from "@metamask/base-controller"; | ||
| import { BaseController, type ControllerStateChangeEvent, type RestrictedMessenger } from "@metamask/base-controller"; | ||
| import type { JsonRpcError, DataWithOptionalCause } from "@metamask/rpc-errors"; | ||
@@ -59,3 +59,3 @@ import type { Json, OptionalField } from "@metamask/utils"; | ||
| }; | ||
| export type ApprovalControllerMessenger = RestrictedControllerMessenger<typeof controllerName, ApprovalControllerActions, ApprovalControllerEvents, never, never>; | ||
| export type ApprovalControllerMessenger = RestrictedMessenger<typeof controllerName, ApprovalControllerActions, ApprovalControllerEvents, never, never>; | ||
| export type ShowApprovalRequest = () => void | Promise<void>; | ||
@@ -222,3 +222,3 @@ export type ResultComponent = { | ||
| * the request can be displayed to the user. | ||
| * @param options.messenger - The restricted controller messenger for the Approval controller. | ||
| * @param options.messenger - The restricted messenger for the Approval controller. | ||
| * @param options.state - The initial controller state. | ||
@@ -225,0 +225,0 @@ * @param options.typesExcludedFromRateLimiting - Array of approval types which allow multiple pending approval requests from the same origin. |
@@ -52,3 +52,3 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
| * the request can be displayed to the user. | ||
| * @param options.messenger - The restricted controller messenger for the Approval controller. | ||
| * @param options.messenger - The restricted messenger for the Approval controller. | ||
| * @param options.state - The initial controller state. | ||
@@ -55,0 +55,0 @@ * @param options.typesExcludedFromRateLimiting - Array of approval types which allow multiple pending approval requests from the same origin. |
+3
-3
| { | ||
| "name": "@metamask/approval-controller", | ||
| "version": "7.1.2", | ||
| "version": "7.1.3", | ||
| "description": "Manages requests that require user approval", | ||
@@ -50,5 +50,5 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@metamask/base-controller": "^7.1.1", | ||
| "@metamask/base-controller": "^8.0.0", | ||
| "@metamask/rpc-errors": "^7.0.2", | ||
| "@metamask/utils": "^11.0.1", | ||
| "@metamask/utils": "^11.1.0", | ||
| "nanoid": "^3.3.8" | ||
@@ -55,0 +55,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
221737
0.13%+ Added
+ Added
- Removed
Updated