
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@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`.
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 11 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.