
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@pusher/push-notifications-server
Advanced tools
NodeJS Server SDK for Pusher Push Notifications
Full documentation for this SDK can be found here
The Beams Node.js server SDK is available on npm here.
You can install this SDK by using npm:
$ npm install @pusher/push-notifications-server --save
Or yarn if you prefer:
$ yarn add @pusher/push-notifications-server
Use your instance id and secret (you can get these from the dashboard) to create a Beams PushNotifications instance:
const PushNotifications = require('@pusher/push-notifications-server');
let pushNotifications = new PushNotifications({
instanceId: 'YOUR_INSTANCE_ID_HERE',
secretKey: 'YOUR_SECRET_KEY_HERE'
});
Once you have created your Beams PushNotifications instance, you can immediately publish a push notification to your devices, using Device Interests:
pushNotifications.publishToInterests(['hello'], {
apns: {
aps: {
alert: 'Hello!'
}
},
fcm: {
notification: {
title: 'Hello',
body: 'Hello, world!'
}
}
}).then((publishResponse) => {
console.log('Just published:', publishResponse.publishId);
}).catch((error) => {
console.log('Error:', error);
});
1.2.7
FAQs
NodeJS Server SDK for Pusher Push Notifications
The npm package @pusher/push-notifications-server receives a total of 9,476 weekly downloads. As such, @pusher/push-notifications-server popularity was classified as popular.
We found that @pusher/push-notifications-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.