New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@metamask-previews/notification-controller

Package Overview
Dependencies
Maintainers
2
Versions
388
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask-previews/notification-controller - npm Package Compare versions

Comparing version 5.0.1-preview-a3500873 to 5.0.1-preview-a8ffe8e

20

dist/types/NotificationController.d.ts

@@ -7,3 +7,3 @@ import type { ControllerGetStateAction, ControllerStateChangeEvent, RestrictedControllerMessenger } from '@metamask/base-controller';

*/
export declare type NotificationControllerState = {
export type NotificationControllerState = {
notifications: Record<string, Notification>;

@@ -19,3 +19,3 @@ };

*/
export declare type Notification = {
export type Notification = {
id: string;

@@ -28,22 +28,22 @@ origin: string;

declare const name = "NotificationController";
export declare type NotificationControllerStateChange = ControllerStateChangeEvent<typeof name, NotificationControllerState>;
export declare type GetNotificationControllerState = ControllerGetStateAction<typeof name, NotificationControllerState>;
export declare type ShowNotification = {
export type NotificationControllerStateChange = ControllerStateChangeEvent<typeof name, NotificationControllerState>;
export type GetNotificationControllerState = ControllerGetStateAction<typeof name, NotificationControllerState>;
export type ShowNotification = {
type: `${typeof name}:show`;
handler: NotificationController['show'];
};
export declare type DismissNotification = {
export type DismissNotification = {
type: `${typeof name}:dismiss`;
handler: NotificationController['dismiss'];
};
export declare type MarkNotificationRead = {
export type MarkNotificationRead = {
type: `${typeof name}:markRead`;
handler: NotificationController['markRead'];
};
export declare type ClearNotifications = {
export type ClearNotifications = {
type: `${typeof name}:clear`;
handler: NotificationController['clear'];
};
export declare type NotificationControllerActions = GetNotificationControllerState | ShowNotification | DismissNotification | MarkNotificationRead | ClearNotifications;
export declare type NotificationControllerMessenger = RestrictedControllerMessenger<typeof name, NotificationControllerActions, NotificationControllerStateChange, never, never>;
export type NotificationControllerActions = GetNotificationControllerState | ShowNotification | DismissNotification | MarkNotificationRead | ClearNotifications;
export type NotificationControllerMessenger = RestrictedControllerMessenger<typeof name, NotificationControllerActions, NotificationControllerStateChange, never, never>;
/**

@@ -50,0 +50,0 @@ * Controller that handles storing notifications and showing them to the user

{
"name": "@metamask-previews/notification-controller",
"version": "5.0.1-preview-a3500873",
"version": "5.0.1-preview-a8ffe8e",
"description": "Manages display of notifications within MetaMask",

@@ -56,3 +56,3 @@ "keywords": [

"typedoc-plugin-missing-exports": "^2.0.0",
"typescript": "~4.8.4"
"typescript": "~4.9.5"
},

@@ -59,0 +59,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc