Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
alert-service
Advanced tools
This is a wrapper lib for SweetAlert2 with optional Angular2 support. It makes most of the boilerplate while makes available to
npm i alert-service -S
If using it in Angular2 you can import the AlertServiceProviderNg2
and add it to the list of providers in your module.
successPopup
: success + ok buttonwarningConfirm
: warning + ok / cancelerrorPopup
: error + ok buttonprompt
: text promptpromptMultiline
: multiline promptnumberPrompt
: number promptYou can use the swal
getter to get the original SweetAlert function.
Call signature for all functions:
successPopup(options: SweetAlertOptions): Promise<void>
successPopup(text: string): Promise<void>
successPopup(text: string, options: SweetAlertOptions): Promise<void>
successPopup(title: string, text: string): Promise<void>
successPopup(title: string, text: string, options: SweetAlertOptions): Promise<void>
All functions are async, e.g. they are then-able or awaitable.
Important: The functions won't throw exceptions (so you shouldn't use .catch()
), they return false
when the original SweetAlert throws an exception.
Return types:
Promise<void>
Promise<boolean>
, true
on confirmationPromise<string | false>
or Proise<number | false>
, false
on any ways of cancel.FAQs
SweetAlert2 wrapper and conveniency lib
We found that alert-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.