
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
ng-push-notification
Advanced tools
This library was generated with Angular CLI version 13.1.0.
Simple push notification service to show Web Notifications.
npm install ng-push-notification
How to import:
import { PushNotificationModule } from 'ng-push-notification';
@NgModule({
...,
import: [
...,
PushNotificationModule.forRoot(/* Default settings here, interface PushNotificationSettings */),
],
})
export class AppModule {}
How to cook:
import { PushNotificationService } from 'ng-push-notification';
export class SomeComponent {
constructor(
private pushNotification: PushNotificationService,
) {}
showPush() {
this.pushNotification.show(
'Show me that message!',
{/* any settings, e.g. icon */},
6000, // close delay.
);
// Or simply this:
this.pushNotification.show('And that too!');
}
async showAnotherPush() {
const notification = await this.pushNotification.show('Returns promise with Notification object.');
setTimeout(() => notification.close(), 1000);
}
}
Full list of settings(description is here):
export interface PushNotificationSettings {
body?: string;
icon?: string;
sound?: string;
data?: any;
tag?: string;
dir?: NotificationDirection;
lang?: string;
renotify?: boolean;
sticky?: boolean;
vibrate?: Array<number>;
noscreen?: boolean;
silent?: boolean;
closeDelay?: number;
}
Default settings are these:
{
dir: 'auto',
lang: 'en-US',
renotify: false,
sticky: false,
noscreen: false,
silent: true,
closeDelay: 6000,
}
The service also has these rxjs subjects:
shown$ = new Subject<Notification>();
closed$ = new Subject<Notification>();
error$ = new Subject<Notification>();
click$ = new Subject<{event: any, notification: Notification}>();
Run ng generate component component-name --project ng-push-notification to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project ng-push-notification.
Note: Don't forget to add
--project ng-push-notificationor else it will be added to the default project in yourangular.jsonfile.
Run ng build ng-push-notification to build the project. The build artifacts will be stored in the dist/ directory.
After building your library with ng build ng-push-notification, go to the dist folder cd dist/ng-push-notification and run npm publish.
Run ng test ng-push-notification to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
FAQs
Simple service for push notifications
The npm package ng-push-notification receives a total of 106 weekly downloads. As such, ng-push-notification popularity was classified as not popular.
We found that ng-push-notification 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.