
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@ngrx/notify
Advanced tools
Easily create and handle desktop notifications in Angular 2
Install @ngrx/notify from npm:
npm install @ngrx/notify --save
Setup the providers, optionally providing global notification options:
import { NOTIFY_PROVIDERS, NOTIFY_GLOBAL_OPTIONS } from '@ngrx/notify';
bootstrap(App, [
NOTIFY_PROVIDERS,
{ provide: NOTIFY_GLOBAL_OPTIONS, multi: true, useValue: { /* global options here */ } }
])
Before creating notifications, you must resolve the app's notification permission:
class AppComponent {
constructor(notify: Notify) {
notify.requestPermission().subscribe(permission => {
if (permission) {
// continue
}
});
}
}
To create a notification observable, call the open() method with a title and optional config. The notification will be opened when you subscribe to the observable and will close after you unsubscribe from it. The observable will emit the instance of the notification every time it is clicked on:
notify.open('Hello world!', options)
// Automatically close the notification after 5 seconds
.takeUntil(Observable.timer(5000))
// Close the notification after it has been clicked once
.take(1)
.subscribe(notification => {
});
See the documentation on MDN for available options.
FAQs
Web Notifications Powered by RxJS for Angular 2
The npm package @ngrx/notify receives a total of 1 weekly downloads. As such, @ngrx/notify popularity was classified as not popular.
We found that @ngrx/notify 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.