docs(release): update doc version from 1.3.0-beta.1 to 1.3.0-beta.2 [skip ci]

This commit is contained in:
semantic-release-bot
2023-02-19 05:57:21 +00:00
parent 27fa7020b1
commit 47a668e856
659 changed files with 92114 additions and 0 deletions

33
node_modules/spawn-error-forwarder/README.md generated vendored Normal file
View File

@@ -0,0 +1,33 @@
spawn-error-forwarder [![Build Status](https://travis-ci.org/bendrucker/spawn-error-forwarder.svg?branch=master)](https://travis-ci.org/bendrucker/spawn-error-forwarder)
=====================
Emit errors on stdout stream for a spawned child process. Useful for capturing errors from a spawned process when you want the output from stdout.
## Setup
```bash
$ npm install spawn-error-forwarder
```
## API
#### `fwd(child [, errFactory]` -> `child`
Buffers `child.stderr` output. If the spawned process exits with a code `> 0`, the buffered output of `child.stderr` is used to generate an error which is emitted on `child.stdout`. By default, the error message is the output of `child.stderr`. If you provide an `errFactory` function, it will be called with `code, stderr` where `code` is the child's exit code and `stderr` is string that contains the output of `child.stderr`. `errFactory` should return an `Error` to be emitted on `child.stdout`.
## Example
```js
var fwd = require('spawn-error-forwarder');
var spawn = require('child_process').spawn;
var child = spawn('git', ['log', 'non-existent-path']);
fwd(child, function (code, stderr) {
return new Error('git log exited with ' + code + ':\n\n' + stderr);
});
child.stdout
.on('error', console.error.bind(console))
.pipe(process.stdout);
```
We want to pipe the output of `git log` to `process.stdout` but since we're providing a path that doesn't exist git will exit with a non-zero code and we'll log its output with `console.error`.