aboutsummaryrefslogtreecommitdiffstats
path: root/main/npm/dont-check-for-last-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/npm/dont-check-for-last-version.patch')
-rw-r--r--main/npm/dont-check-for-last-version.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/npm/dont-check-for-last-version.patch b/main/npm/dont-check-for-last-version.patch
new file mode 100644
index 0000000000..8f08e2236a
--- /dev/null
+++ b/main/npm/dont-check-for-last-version.patch
@@ -0,0 +1,15 @@
+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/utils/update-notifier.js
++++ b/lib/utils/update-notifier.js
+@@ -40,6 +40,8 @@
+ }
+
+ const updateNotifier = async (npm, spec = 'latest') => {
++ // XXX-Patched: Maintained by Alpine's package manager
++ return null;
+ // never check for updates in CI, when updating npm already, or opted out
+ if (!npm.config.get('update-notifier') ||
+ isGlobalNpmUpdate(npm) ||