npm-upgrade icon indicating copy to clipboard operation
npm-upgrade copied to clipboard

[FEATURE] Recent update warning

Open IchiiDev opened this issue 2 years ago • 4 comments

This feature was suggested by Issue #80, I have implemented it on my fork. What has been asked is basically to add a warning if a package was pushed recently, to prevent package hijacking and malwares.

What I have done to implement it:

  1. Everytime a dependency is prompted, it will fetch https://registry.npmjs.com/:package to fetch the version's publication date
  2. Will check if 3 days have passed since the last publish
  3. If not then it will throw an error, a warning or an info telling the user the package was pushes recently and that they should be careful when upgrading.

This has been tested with some recently pushed packages and it works as expected. I will be available during the next few days to edit if any review requires changes.

IchiiDev avatar Jun 28 '22 08:06 IchiiDev

hi, @IchiiDev ! PRs here are quite stuck, hence maybe make an independent project began from the fork ? Seems that this one could be a nice start. I have a huge issue when being at bad network environments and almost cannot npm-upgrade at all, therefore willin' to commit some code into there asap.

houd1ni avatar Dec 31 '22 04:12 houd1ni

I'm going to send an email directly to @th0r to suggest giving ownership/management to someone else, both on the NPM registery and GitHub. If no answers ensues I will try and send a ticket to NPM's support to request ownership due to inactivity. 😄

IchiiDev avatar Dec 31 '22 05:12 IchiiDev

I'm going to send an email directly to @th0r to suggest giving ownership/management to someone else, both on the NPM registery and GitHub. If no answers ensues I will try and send a ticket to NPM's support to request ownership due to inactivity. 😄

Nice! Tag me here, please, with any news!

houd1ni avatar Dec 31 '22 05:12 houd1ni

@IchiiDev salut! Any news ?

houd1ni avatar Jan 14 '23 05:01 houd1ni