aboutsummaryrefslogtreecommitdiffstats
path: root/community/npm/dont-check-for-last-version.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/npm/dont-check-for-last-version.patch')
-rw-r--r--community/npm/dont-check-for-last-version.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/npm/dont-check-for-last-version.patch b/community/npm/dont-check-for-last-version.patch
new file mode 100644
index 00000000000..652314edcb7
--- /dev/null
+++ b/community/npm/dont-check-for-last-version.patch
@@ -0,0 +1,17 @@
+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
+
+diff --git a/lib/utils/update-notifier.js b/lib/utils/update-notifier.js
+index 2c839bf..5616195 100644
+--- a/lib/utils/update-notifier.js
++++ b/lib/utils/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