aports/community/npm/dont-check-for-last-version.patch
2024-04-28 11:07:25 +02:00

16 lines
570 B
Diff

Don't check for last version
Patch based on https://sources.debian.org/src/npm/7.5.2+ds-2/debian/patches/dont-check-for-last-version.patch
--- a/lib/cli/update-notifier.js
+++ b/lib/cli/update-notifier.js
@@ -76,6 +76,8 @@ const updateCheck = async (npm, spec, version, current) => {
}
const updateNotifier = async (npm, spec = 'latest') => {
+ // XXX-Patched: Maintained by Alpine's package manager
+ return null;
// if we're on a prerelease train, then updates are coming fast
// check for a new one daily. otherwise, weekly.
const { version } = npm