
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@metamask/dialog-example-snap
Advanced tools
MetaMask example snap demonstrating the use of `snap_dialog`.
@metamask/dialog-example-snap
This snap demonstrates the use of snap_dialog
to display a dialog to the user.
Note: Using
snap_dialog
requires thesnap_dialog
permission. Refer to the documentation for more information.
Along with other permissions, the manifest of this snap includes the
snap_dialog
permission:
{
"initialPermissions": {
"snap_dialog": {}
}
}
This permission does not require any additional configuration.
This snap exposes an onRpcRequest
handler, which supports the following
JSON-RPC methods, one for each type of dialog:
showAlert
: Displays an alert dialog to the user.showConfirmation
: Displays a confirmation dialog to the user.showPrompt
: Displays a prompt dialog to the user.For the sake of simplicity, the methods do not accept any parameters, and
return the value returned by snap_dialog
directly.
For more information, you can refer to the end-to-end tests.
FAQs
MetaMask example snap demonstrating the use of `snap_dialog`.
The npm package @metamask/dialog-example-snap receives a total of 10 weekly downloads. As such, @metamask/dialog-example-snap popularity was classified as not popular.
We found that @metamask/dialog-example-snap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.