* deps: Fixed a bug in npm 6.12.0 where warnings are emitted on Node.js 13.x * esm: Changed file extension resolution order of --es-module-specifier-resolution=node to match that of the CommonJS loader - Changes in version 13.0.0: * assert: + If the validation function passed to assert.throws() or assert.rejects() returns a value other than true, an assertion error will be thrown instead of the original error to highlight the programming mistake + If a constructor function is passed to validate the instance of errors thrown in assert.throws() or assert.reject(), an assertion error will be thrown instead of the original error * child_process: ChildProcess._channel (DEP0129) is now a Runtime deprecation * console: The output console.timeEnd() and console.timeLog() will now automatically select a suitable time unit instead of always using milliseconds * deps: The V8 engine was updated to version 7.8. * domain: The domain's error handler is now executed with the active domain set to the domain's parent to prevent inner recursion * fs: + The undocumented method FSWatcher.prototype.start() was removed + Calling the open() method on a ReadStream or WriteStream now emits a runtime deprecation warning. This is an internal method that should not be used by user code. + fs.read/write, fs.readSync/writeSync and fd.read/write now OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs13?expand=0&rev=1
17 lines
306 B
Bash
17 lines
306 B
Bash
#
|
|
# Node can break stdin/stdout/stderr by setting them O_NONBLOCK
|
|
# and then not resetting it back to blocking mode on exit
|
|
# This function redirects stdio descriptors via new logging pipe
|
|
#
|
|
|
|
|
|
function decoupled_cmd
|
|
{
|
|
mkfifo _log
|
|
($@) < /dev/null > _log 2>_log &
|
|
cat _log
|
|
rm _log
|
|
wait $!
|
|
}
|
|
|