
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@tsightler/push-receiver
Advanced tools
A module to subscribe to GCM/FCM and receive notifications within a node process.
A library to subscribe to GCM/FCM and receive notifications within a node process.
push-receiver ?push-receiver ?npm i -S @eneris/push-receiver
Step 1 - https://firebase.google.com/docs/web/setupinterface ClientConfig {
credentials?: Credentials // Will be generated if missing - save this after first use!
persistentIds?: PersistentId[] // Default - []
bundleId?: string // Default - 'receiver.push.com'
chromeId?: string // Default - 'org.chromium.linux'
chromeVersion?: string // Default - '94.0.4606.51'
debug?: boolean // Enables debug console logs
heartbeatIntervalMs?: number // Default - 5 * 60 * 1000
firebase: FirebaseConfig // Full client firebase credentials are now needed
}
import { PushReceiver } from '@eneris/push-receiver'
(async () => {
const instance = new PushReceiver({
debug: true,
persistentIds: [], // Recover stored ids of all previous notifications
firebase: {
// ...Firebase web credentials
},
credentials: null, // Insert credentials here after the first run
})
const stopListeningToCredentials = instance.onCredentialsChanged(({ oldCredentials, newCredentials }) => {
console.log('Client generated new credentials.', newCredentials)
// Save them somewhere! And decide if thing are needed to re-subscribe
})
const stopListeningToNotifications = instance.onNotification(notification => {
// Do someting with the notification
console.log('Notification received', notification)
})
await instance.connect()
await instance.connect()
console.log('connected')
const sender = new PushSender({
// Firebase service account credentials here
})
console.log('server created')
await sender.testMessage(instance.config.credentials.fcm.token)
console.log('message sent')
stopListeningToCredentials()
stopListeningToNotifications()
instance.destroy()
})()
FAQs
A module to subscribe to GCM/FCM and receive notifications within a node process.
The npm package @tsightler/push-receiver receives a total of 0 weekly downloads. As such, @tsightler/push-receiver popularity was classified as not popular.
We found that @tsightler/push-receiver 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.