summaryrefslogtreecommitdiff
path: root/repo/npm/dont-check-for-last-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repo/npm/dont-check-for-last-version.patch')
-rw-r--r--repo/npm/dont-check-for-last-version.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/repo/npm/dont-check-for-last-version.patch b/repo/npm/dont-check-for-last-version.patch
new file mode 100644
index 0000000..d2b5981
--- /dev/null
+++ b/repo/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
+@@ -34,6 +34,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) ||