Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
react-update-popup
Advanced tools
Ask users to refresh when there is a new version of the app available.
Ask users to refresh when there is a new version of the app available.
Works out of the box for create-react-app apps.
yarn add react-update-popup
# or: npm install --save react-update-popup
import React, { Component } from 'react'
import { UpdateNotification } from 'react-update-popup'
import 'react-update-popup/dist/index.css'
const Example = () => (
<UpdateNotification />
)
By default, the popup looks like this:
Update it to fit within your application by:
.update-notification-popup
to restyle the popupAll props are optional, and can be used to change the appearance of the popup.
title
- popup title, wrapped in <h3>
description
- popup description text, wrapped in <p>
buttonText
- button textassetManifestUrl
- this is how we check if the React app has been updated, defaults to /asset-manifest.json
onReload
- replace default reload behaviourThis library is developed by Flexible Agency, a creative app development agency.
FAQs
Ask users to refresh when there is a new version of the app available.
The npm package react-update-popup receives a total of 46 weekly downloads. As such, react-update-popup popularity was classified as not popular.
We found that react-update-popup 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
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.