spawncommand
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -0,1 +1,7 @@ | ||
## 4 April 2019 | ||
### [2.1.2](git+https://github.com/artdecocode/spawncommand/compare/v2.1.1...v2.1.2) | ||
- [deps] Unfix dependencies, upgrade `catchment`. | ||
## 11 March 2019 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "spawncommand", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Spawn or fork a child process with a promise property resolved on exit with stdout, stderr and code.", | ||
@@ -21,3 +21,4 @@ "main": "build", | ||
"example/fork.js": "node example example/fork", | ||
"example/pipe.js": "node example example/pipe" | ||
"example/pipe.js": "node example example/pipe", | ||
"e": "alanode" | ||
}, | ||
@@ -47,10 +48,10 @@ "repository": { | ||
"devDependencies": { | ||
"alamode": "1.8.4", | ||
"documentary": "1.21.5", | ||
"alamode": "^1.9.2", | ||
"documentary": "^1.23.4", | ||
"yarn-s": "1.1.0", | ||
"zoroaster": "3.8.2" | ||
"zoroaster": "^3.11.4" | ||
}, | ||
"dependencies": { | ||
"catchment": "3.2.2" | ||
"catchment": "^3.2.3" | ||
} | ||
} |
@@ -18,4 +18,4 @@ # spawnCommand | ||
* [Types](#types) | ||
* [`ChildProcessWithPromise`](#childprocesswithpromise) | ||
* [`PromiseResult`](#promiseresult) | ||
* [`ChildProcessWithPromise`](#type-childprocesswithpromise) | ||
* [`PromiseResult`](#type-promiseresult) | ||
* [`spawn(module: string, args: string[], options?: SpawnOptions): ChildProcessWithPromise`](#spawnmodule-stringargs-stringoptions-spawnoptions-childprocesswithpromise) | ||
@@ -41,17 +41,17 @@ * [`fork(module: string, args: string[], options?: ForkOptions): ChildProcessWithPromise`](#forkmodule-stringargs-stringoptions-forkoptions-childprocesswithpromise) | ||
[`import('child_process').ChildProcess`](https://nodejs.org/api/child_process.html#child_process_class_childprocess) __<a name="childprocess">`ChildProcess`</a>__ | ||
[`import('child_process').ChildProcess`](https://nodejs.org/api/child_process.html#child_process_class_childprocess) __<a name="type-childprocess">`ChildProcess`</a>__ | ||
`ChildProcess` __<a name="childprocesswithpromise">`ChildProcessWithPromise`</a>__: A child process with an extra `promise` property. | ||
`ChildProcess` __<a name="type-childprocesswithpromise">`ChildProcessWithPromise`</a>__: A child process with an extra `promise` property. | ||
| Name | Type | Description | Default | | ||
| ------------ | ------------------------------------------------- | ------------------------------------------ | ------- | | ||
| __promise*__ | _Promise.<[PromiseResult](#promiseresult)>_ | A promise resolved when the process exits. | - | | ||
| Name | Type | Description | | ||
| ------------ | ------------------------------------------------------ | ------------------------------------------ | | ||
| __promise*__ | _Promise.<[PromiseResult](#type-promiseresult)>_ | A promise resolved when the process exits. | | ||
__<a name="promiseresult">`PromiseResult`</a>__ | ||
__<a name="type-promiseresult">`PromiseResult`</a>__ | ||
| Name | Type | Description | Default | | ||
| ----------- | -------- | ---------------------------------------------- | ------- | | ||
| __stdout*__ | _string_ | The accumulated result of the `stdout` stream. | - | | ||
| __stderr*__ | _string_ | The accumulated result of the `stderr` stream. | - | | ||
| __code*__ | _number_ | The code with which the process exited. | - | | ||
| Name | Type | Description | | ||
| ----------- | -------- | ---------------------------------------------- | | ||
| __stdout*__ | _string_ | The accumulated result of the `stdout` stream. | | ||
| __stderr*__ | _string_ | The accumulated result of the `stderr` stream. | | ||
| __code*__ | _number_ | The code with which the process exited. | | ||
@@ -64,3 +64,3 @@ <p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/3.svg?sanitize=true" width="15"></a></p> | ||
`import('child_process').SpawnOptions` __<a name="spawnoptions">`SpawnOptions`</a>__ | ||
`import('child_process').SpawnOptions` __<a name="type-spawnoptions">`SpawnOptions`</a>__ | ||
@@ -108,4 +108,4 @@ ```js | ||
`import('child_process').ForkOptions` __<a name="type-forkoptions">`ForkOptions`</a>__ | ||
```js | ||
@@ -115,5 +115,6 @@ import { fork } from 'spawncommand' | ||
(async () => { | ||
const { promise } = fork('example/index.js', ['example/spawn.js'], { | ||
stdio: 'pipe', | ||
}) | ||
const { promise } = fork('node_modules/.bin/alanode', | ||
['example/spawn.js'], { | ||
stdio: 'pipe', | ||
}) | ||
const { stdout } = await promise | ||
@@ -120,0 +121,0 @@ console.log(stdout) |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
13584
138
3
+ Added@artdeco/clean-stack@1.2.1(transitive)
+ Addedcatchment@3.3.0(transitive)
+ Addederotic@2.1.1(transitive)
- Removed@artdeco/clean-stack@1.0.1(transitive)
- Removedcatchment@3.2.2(transitive)
- Removederotic@2.0.2(transitive)
Updatedcatchment@^3.2.3