
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
update-available
Advanced tools
:no_entry: This package is deprecated in favour of update-notifier and not maintained anymore.
Checks if there is an update available to your module or not, in other words, is the module is outdated or not.
Imagine you have a cli tool built with node, used by a lot of people. Then in one day you updated the tool and pushed to npm. You want users to be notified about the update.
You can burn this module into your app so that you can notify users that their version is outdated.
It's as simple as updateAvailable().then()
.
No arguments? No, no arguments.
npm install --save update-available
const updateAvailable = require('update-available');
updateAvailable()
.then(result => {
console.log(result);
/*
{
updateAvailable: true
latestVersion: '5.8.0',
currentVersion: '5.5.1'>
}
*/
})
.catch(err => {
// err handling stuff
});
updateAvailable
function returns a Promise.result
contains 3 fields:
updateAvailable
: true
if there is an update, false
if not.latestVersion
: latest version of the package published to the npm registry.currentVersion
: current version of the package installed.err
in .catch
to see if anything went wrong.package.json
file of the host app.name
and version
fields from it.name
.package.json
) with the latest version (obtained from npm registry).v1.0.1
v1.0.0
ISC © Vajahath Ahmed
FAQs
Checks if there is an update available to the module.
The npm package update-available receives a total of 0 weekly downloads. As such, update-available popularity was classified as not popular.
We found that update-available 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.