* This release fixes a regression introduced in Node.js 18.19.0 where http.server.close() was incorrectly closing idle connections. * deps: + acorn updated to 8.11.3. + acorn-walk updated to 8.3.2. + ada updated to 2.7.8. + c-ares updated to 1.28.1. + corepack updated to 0.28.0. + nghttp2 updated to 1.61.0. + ngtcp2 updated to 1.3.0. + npm updated to 10.7.0. Includes a fix from npm@10.5.1 to limit the number of open connections npm/cli#7324. + simdutf updated to 5.2.4. - Changes in 18.20.2: * fixes bsc#1222665, CVE-2024-27980 - windows only bug - versioned.patch, npm_search_paths.patch: refreshed OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs18?expand=0&rev=79
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
Index: node-v22.1.0/deps/npm/lib/commands/help-search.js
|
|
===================================================================
|
|
--- node-v22.1.0.orig/deps/npm/lib/commands/help-search.js
|
|
+++ node-v22.1.0/deps/npm/lib/commands/help-search.js
|
|
@@ -17,7 +17,7 @@ class HelpSearch extends BaseCommand {
|
|
throw this.usageError()
|
|
}
|
|
|
|
- const docPath = path.resolve(this.npm.npmRoot, 'docs/content')
|
|
+ const docPath = '/usr/share/doc/packages/nodejs'
|
|
let files = await glob(`${globify(docPath)}/*/*.md`)
|
|
// preserve glob@8 behavior
|
|
files = files.sort((a, b) => a.localeCompare(b, 'en'))
|
|
Index: node-v22.1.0/deps/npm/lib/npm.js
|
|
===================================================================
|
|
--- node-v22.1.0.orig/deps/npm/lib/npm.js
|
|
+++ node-v22.1.0/deps/npm/lib/npm.js
|
|
@@ -338,7 +338,13 @@ class Npm {
|
|
}
|
|
|
|
get globalPrefix () {
|
|
- return this.config.globalPrefix
|
|
+ let prefix = this.config.globalPrefix
|
|
+
|
|
+ // don't poop all over distro territory - use /usr/local instead
|
|
+ if (prefix === '/usr')
|
|
+ return '/usr/local'
|
|
+
|
|
+ return prefix;
|
|
}
|
|
|
|
get localPrefix () {
|