- Notable changes since NodeJS 10.12.0: * Use of process.binding() has been deprecated. * An experimental implementation of queueMicrotask() is added. * child_process: The default value of the windowsHide option has been changed to true. * deps: V8 has been updated to 7.0. * fs: + fs.read() method now requires a callback + The previously deprecated fs.SyncWriteStream utility has been removed * http: The http, https, and tls modules now use the WHATWG URL parser by default. * timers: nextTick queue will be run after each immediate and timer. * util: + WHATWG TextEncoder and TextDecoder are now globals. + util.inspect() output size is limited to 128 MB by default. + A runtime warning will be emitted when NODE_DEBUG is set for either http or http2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs11?expand=0&rev=1
46 lines
1.9 KiB
Diff
46 lines
1.9 KiB
Diff
Index: node-v10.5.0/deps/npm/lib/help-search.js
|
|
===================================================================
|
|
--- node-v10.5.0.orig/deps/npm/lib/help-search.js
|
|
+++ node-v10.5.0/deps/npm/lib/help-search.js
|
|
@@ -18,7 +18,7 @@ function helpSearch (args, silent, cb) {
|
|
}
|
|
if (!args.length) return cb(helpSearch.usage)
|
|
|
|
- var docPath = path.resolve(__dirname, '..', 'doc')
|
|
+ var docPath = "/usr/share/doc/packages/nodejs"
|
|
return glob(docPath + '/*/*.md', function (er, files) {
|
|
if (er) return cb(er)
|
|
readFiles(files, function (er, data) {
|
|
Index: node-v10.5.0/deps/npm/lib/config/defaults.js
|
|
===================================================================
|
|
--- node-v10.5.0.orig/deps/npm/lib/config/defaults.js
|
|
+++ node-v10.5.0/deps/npm/lib/config/defaults.js
|
|
@@ -102,6 +102,11 @@ Object.defineProperty(exports, 'defaults
|
|
if (process.env.DESTDIR) {
|
|
globalPrefix = path.join(process.env.DESTDIR, globalPrefix)
|
|
}
|
|
+
|
|
+ // don't poop all over distro territory - use /usr/local instead
|
|
+ if (globalPrefix === '/usr') {
|
|
+ globalPrefix = path.join(globalPrefix, '/local');
|
|
+ }
|
|
}
|
|
|
|
defaults = {
|
|
Index: node-v10.5.0/deps/npm/lib/config/core.js
|
|
===================================================================
|
|
--- node-v10.5.0.orig/deps/npm/lib/config/core.js
|
|
+++ node-v10.5.0/deps/npm/lib/config/core.js
|
|
@@ -153,8 +153,9 @@ function load_ (builtin, rc, cli, cb) {
|
|
// Eg, `npm config get globalconfig --prefix ~/local` should
|
|
// return `~/local/etc/npmrc`
|
|
// annoying humans and their expectations!
|
|
- if (conf.get('prefix')) {
|
|
- var etc = path.resolve(conf.get('prefix'), 'etc')
|
|
+ var etc_prefix = conf.get('prefix');
|
|
+ if (etc_prefix) {
|
|
+ var etc = (etc_prefix === '/usr/local' ? '/etc/nodejs' : path.resolve(etc_prefix, 'etc'));
|
|
defaults.globalconfig = path.resolve(etc, 'npmrc')
|
|
defaults.globalignorefile = path.resolve(etc, 'npmignore')
|
|
}
|