Skip to content

Commit

Permalink
0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
donjuandem committed Jun 27, 2017
1 parent 30f38fc commit d979300
Show file tree
Hide file tree
Showing 10 changed files with 7,754 additions and 3,356 deletions.
6,446 changes: 3,289 additions & 3,157 deletions docs/ast/source/NodeProcess.js.json

Large diffs are not rendered by default.

346 changes: 173 additions & 173 deletions docs/ast/source/__tests__/CoreWorkerTest.js.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/dump.json

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions docs/file/src/NodeProcess.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@
this.emitter.on("data", data => this.validate(data.toString()));
process.stdout.on("data", data => this.emitter.emit("data", data.toString()));
process.stderr.on("data", data => this.emitter.emit("data", `<error> ${data}`));
process.on("close", (code, signal) => this.instance.exitCodes.indexOf(code) > -1 || NotNil.is(signal) ? ::this.finish() : ::this.terminate(code));
process.on("close", (code, signal) => (
this.instance.exitCodes.indexOf(code) > -1 ||
NotNil.is(signal)
) ? ::this.finish(code) : ::this.terminate(code));

assign(this.instance, process, {
isRunning: true,
Expand Down Expand Up @@ -197,8 +200,10 @@

/**
* Emits result after process was closed
*
* @param {number} code as exit status of the instance
*/
NodeProcess.prototype.finish = T.func([], T.Nil, "nodeProcess.finish").of(function() {
NodeProcess.prototype.finish = T.func([T.maybe(T.Number)], T.Nil, "nodeProcess.finish").of(function() {
assign(this.instance, { isRunning: false });
this.emitter.emit("death", Result.create(this.instance.output.join("")));
});
Expand Down
2 changes: 1 addition & 1 deletion docs/file/src/__tests__/CoreWorkerTest.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
const liveProcess = process(`node ${killScript}`, /Kill me/);

liveProcess.ready(1000)
.then(() => liveProcess.kill())
.then(() => liveProcess.death())
.then(() => done(new Error("shouldn trigger")))
.catch(err => {
try {
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "core-worker",
"version": "0.3.1",
"version": "0.3.2",
"description": "CoreWorker",
"main": "index.js",
"scripts": {
Expand Down
14 changes: 7 additions & 7 deletions docs/source.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@
<td data-ice="filePath"><span><a href="file/src/NodeProcess.js.html">src/NodeProcess.js</a></span></td>
<td data-ice="identifier" class="identifiers">-</td>
<td class="coverage"><span data-ice="coverage">-</span></td>
<td style="display: none;" data-ice="size">7548 byte</td>
<td style="display: none;" data-ice="lines">246</td>
<td style="display: none;" data-ice="updated">2017-05-06 10:55:19 (UTC)</td>
<td style="display: none;" data-ice="size">7651 byte</td>
<td style="display: none;" data-ice="lines">251</td>
<td style="display: none;" data-ice="updated">2017-05-06 11:51:06 (UTC)</td>
</tr>
<tr data-ice="file">
<td data-ice="filePath"><span><a href="file/src/NodeProcess.type.js.html">src/NodeProcess.type.js</a></span></td>
Expand Down Expand Up @@ -230,9 +230,9 @@
<td data-ice="filePath"><span><a href="file/src/__tests__/CoreWorkerTest.js.html">src/__tests__/CoreWorkerTest.js</a></span></td>
<td data-ice="identifier" class="identifiers">-</td>
<td class="coverage"><span data-ice="coverage">-</span></td>
<td style="display: none;" data-ice="size">7639 byte</td>
<td style="display: none;" data-ice="size">7640 byte</td>
<td style="display: none;" data-ice="lines">214</td>
<td style="display: none;" data-ice="updated">2017-05-06 11:19:24 (UTC)</td>
<td style="display: none;" data-ice="updated">2017-05-06 11:51:06 (UTC)</td>
</tr>
<tr data-ice="file">
<td data-ice="filePath"><span><a href="file/src/__tests__/DuplexStreamTest.js.html">src/__tests__/DuplexStreamTest.js</a></span></td>
Expand All @@ -256,15 +256,15 @@
<td class="coverage"><span data-ice="coverage">-</span></td>
<td style="display: none;" data-ice="size">4600 byte</td>
<td style="display: none;" data-ice="lines">117</td>
<td style="display: none;" data-ice="updated">2017-05-06 11:26:39 (UTC)</td>
<td style="display: none;" data-ice="updated">2017-05-06 11:51:06 (UTC)</td>
</tr>
<tr data-ice="file">
<td data-ice="filePath"><span><a href="file/src/__tests__/ProcessTest.js.html">src/__tests__/ProcessTest.js</a></span></td>
<td data-ice="identifier" class="identifiers">-</td>
<td class="coverage"><span data-ice="coverage">-</span></td>
<td style="display: none;" data-ice="size">8944 byte</td>
<td style="display: none;" data-ice="lines">262</td>
<td style="display: none;" data-ice="updated">2017-05-06 11:07:54 (UTC)</td>
<td style="display: none;" data-ice="updated">2017-05-06 11:51:06 (UTC)</td>
</tr>
<tr data-ice="file">
<td data-ice="filePath"><span><a href="file/src/__tests__/ResultTest.js.html">src/__tests__/ResultTest.js</a></span></td>
Expand Down
14 changes: 11 additions & 3 deletions esdoc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"source": "./src",
"destination": "./docs",
"plugins": [
{"name": "esdoc-es7-plugin"}
],
"plugins": [],
"experimentalProposal": {
"classProperties": true,
"objectRestSpread": true,
"decorators": true,
"doExpressions": true,
"functionBind": true,
"asyncGenerators": true,
"exportExtensions": true,
"dynamicImport": true
},
"autoPrivate": false
}
Loading

0 comments on commit d979300

Please sign in to comment.