commit
2deb238fd7
18 changed files with 114 additions and 61 deletions
16
.travis.yml
Normal file
16
.travis.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
#OS
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
#node versions
|
||||
language: node_js
|
||||
node_js:
|
||||
- 4
|
||||
- 5
|
||||
- 6
|
||||
|
||||
# safelist
|
||||
branches:
|
||||
only:
|
||||
- master
|
|
@ -21,12 +21,19 @@ GitHub info :
|
|||
Codacy info :
|
||||
[![Codacy Badge](https://api.codacy.com/project/badge/grade/8e0294dff55f4ac1985c07b16f39d0a9)](https://www.codacy.com/app/RIAEvangelist/node-ipc) [![Codacy Badge](https://api.codacy.com/project/badge/coverage/8e0294dff55f4ac1985c07b16f39d0a9)](https://www.codacy.com/app/RIAEvangelist/node-ipc)
|
||||
|
||||
Build Info :
|
||||
Mac & Linux : [![Build Status](https://travis-ci.org/RIAEvangelist/node-ipc.svg?branch=master)](https://travis-ci.org/RIAEvangelist/node-ipc) Windows : [![node-ipc windows build status](https://ci.appveyor.com/api/projects/status/github/riaevangelist/node-ipc?branch=master&svg=true)](https://ci.appveyor.com/project/RIAEvangelist/node-ipc/history)
|
||||
|
||||
Package details websites :
|
||||
* [GitHub.io site](http://riaevangelist.github.io/node-ipc/ "node-ipc documentation"). A prettier version of this site.
|
||||
* [NPM Module](https://www.npmjs.org/package/node-ipc "node-ipc npm module"). The npm page for the node-ipc module.
|
||||
|
||||
This work is licenced via the [DBAD Public Licence](http://www.dbad-license.org/).
|
||||
|
||||
#### Older versions of node
|
||||
|
||||
the latest versions of `node-ipc` may work with the --harmony flag. Officially though, we support node v4 and newer with es5 and es6
|
||||
|
||||
#### Testing
|
||||
|
||||
` npm test ` will run the jasmine tests with istanbul for node-ipc and generate a coverage report in the spec folder.
|
||||
|
|
30
appveyor.yml
Normal file
30
appveyor.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
# http://www.appveyor.com/docs/appveyor-yml
|
||||
|
||||
# version format
|
||||
version: 8.9.{build}
|
||||
|
||||
# Test against these versions of Io.js and Node.js.
|
||||
environment:
|
||||
matrix:
|
||||
# node.js
|
||||
- nodejs_version: "4"
|
||||
- nodejs_version: "5"
|
||||
- nodejs_version: "6"
|
||||
|
||||
# Install scripts. (runs after repo cloning)
|
||||
install:
|
||||
# Get the latest stable version of Node 0.STABLE.latest
|
||||
- ps: Install-Product node $env:nodejs_version
|
||||
- npm -g install npm
|
||||
- npm install
|
||||
|
||||
# Post-install test scripts.
|
||||
test_script:
|
||||
# Output useful info for debugging.
|
||||
- node --version
|
||||
- npm --version
|
||||
# run tests
|
||||
- npm run test-windows
|
||||
|
||||
# Don't actually build.
|
||||
build: off
|
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
"name": "node-ipc",
|
||||
"version": "8.9.0",
|
||||
"version": "8.9.1",
|
||||
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.",
|
||||
"main": "node-ipc.js",
|
||||
"directories": {
|
||||
"example": "example"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=1.0.0"
|
||||
"node": ">=4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"colors": "*",
|
||||
"event-pubsub": ">=4.0.0",
|
||||
"event-pubsub": "4.2.2",
|
||||
"js-message": ">=1.0.5",
|
||||
"js-queue": ">=1.0.0",
|
||||
"node-cmd": ">=1.1.1"
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -20,9 +20,9 @@
|
|||
</h1>
|
||||
<div class='clearfix'>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">67.3% </span>
|
||||
<span class="strong">67.78% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>282/419</span>
|
||||
<span class='fraction'>284/419</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">56.16% </span>
|
||||
|
@ -35,9 +35,9 @@
|
|||
<span class='fraction'>35/41</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">67.3% </span>
|
||||
<span class="strong">67.78% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>282/419</span>
|
||||
<span class='fraction'>284/419</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -73,15 +73,15 @@
|
|||
|
||||
<tr>
|
||||
<td class="file medium" data-value="node-ipc/dao/"><a href="node-ipc/dao/index.html">node-ipc/dao/</a></td>
|
||||
<td data-value="66.67" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 66%;"></div><div class="cover-empty" style="width:34%;"></div></div></td>
|
||||
<td data-value="66.67" class="pct medium">66.67%</td>
|
||||
<td data-value="270" class="abs medium">180/270</td>
|
||||
<td data-value="67.41" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 67%;"></div><div class="cover-empty" style="width:33%;"></div></div></td>
|
||||
<td data-value="67.41" class="pct medium">67.41%</td>
|
||||
<td data-value="270" class="abs medium">182/270</td>
|
||||
<td data-value="53.62" class="pct medium">53.62%</td>
|
||||
<td data-value="138" class="abs medium">74/138</td>
|
||||
<td data-value="83.33" class="pct high">83.33%</td>
|
||||
<td data-value="30" class="abs high">25/30</td>
|
||||
<td data-value="66.67" class="pct medium">66.67%</td>
|
||||
<td data-value="270" class="abs medium">180/270</td>
|
||||
<td data-value="67.41" class="pct medium">67.41%</td>
|
||||
<td data-value="270" class="abs medium">182/270</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -116,7 +116,7 @@
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="prettify.js"></script>
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
</h1>
|
||||
<div class='clearfix'>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">70.71% </span>
|
||||
<span class="strong">71.72% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>70/99</span>
|
||||
<span class='fraction'>71/99</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">51.16% </span>
|
||||
|
@ -35,9 +35,9 @@
|
|||
<span class='fraction'>9/9</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">70.71% </span>
|
||||
<span class="strong">71.72% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>70/99</span>
|
||||
<span class='fraction'>71/99</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -291,7 +291,7 @@
|
|||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-yes">1×</span>
|
||||
<span class="cline-any cline-yes">1×</span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-yes">1×</span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
|
@ -527,8 +527,8 @@ const net = require('net'),
|
|||
Queue = require('js-queue');
|
||||
|
||||
let Events = require('event-pubsub/es5');
|
||||
<span class="missing-if-branch" title="if path not taken" >I</span>if(process.version[1]>4){
|
||||
<span class="cstat-no" title="statement not covered" > Events = require('event-pubsub');</span>
|
||||
<span class="missing-if-branch" title="else path not taken" >E</span>if(process.version[1]>4){
|
||||
Events = require('event-pubsub');
|
||||
}
|
||||
|
||||
class Client extends Events{
|
||||
|
@ -760,7 +760,7 @@ module.exports=Client;
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -130,7 +130,7 @@ module.exports=parser;
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
</h1>
|
||||
<div class='clearfix'>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">66.67% </span>
|
||||
<span class="strong">67.41% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>180/270</span>
|
||||
<span class='fraction'>182/270</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">53.62% </span>
|
||||
|
@ -35,9 +35,9 @@
|
|||
<span class='fraction'>25/30</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">66.67% </span>
|
||||
<span class="strong">67.41% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>180/270</span>
|
||||
<span class='fraction'>182/270</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -60,15 +60,15 @@
|
|||
</thead>
|
||||
<tbody><tr>
|
||||
<td class="file medium" data-value="client.js"><a href="client.js.html">client.js</a></td>
|
||||
<td data-value="70.71" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 70%;"></div><div class="cover-empty" style="width:30%;"></div></div></td>
|
||||
<td data-value="70.71" class="pct medium">70.71%</td>
|
||||
<td data-value="99" class="abs medium">70/99</td>
|
||||
<td data-value="71.72" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 71%;"></div><div class="cover-empty" style="width:29%;"></div></div></td>
|
||||
<td data-value="71.72" class="pct medium">71.72%</td>
|
||||
<td data-value="99" class="abs medium">71/99</td>
|
||||
<td data-value="51.16" class="pct medium">51.16%</td>
|
||||
<td data-value="43" class="abs medium">22/43</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="9" class="abs high">9/9</td>
|
||||
<td data-value="70.71" class="pct medium">70.71%</td>
|
||||
<td data-value="99" class="abs medium">70/99</td>
|
||||
<td data-value="71.72" class="pct medium">71.72%</td>
|
||||
<td data-value="99" class="abs medium">71/99</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -86,15 +86,15 @@
|
|||
|
||||
<tr>
|
||||
<td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td>
|
||||
<td data-value="62.66" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 62%;"></div><div class="cover-empty" style="width:38%;"></div></div></td>
|
||||
<td data-value="62.66" class="pct medium">62.66%</td>
|
||||
<td data-value="158" class="abs medium">99/158</td>
|
||||
<td data-value="63.29" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 63%;"></div><div class="cover-empty" style="width:37%;"></div></div></td>
|
||||
<td data-value="63.29" class="pct medium">63.29%</td>
|
||||
<td data-value="158" class="abs medium">100/158</td>
|
||||
<td data-value="55.68" class="pct medium">55.68%</td>
|
||||
<td data-value="88" class="abs medium">49/88</td>
|
||||
<td data-value="73.68" class="pct medium">73.68%</td>
|
||||
<td data-value="19" class="abs medium">14/19</td>
|
||||
<td data-value="62.66" class="pct medium">62.66%</td>
|
||||
<td data-value="158" class="abs medium">99/158</td>
|
||||
<td data-value="63.29" class="pct medium">63.29%</td>
|
||||
<td data-value="158" class="abs medium">100/158</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
@ -103,7 +103,7 @@
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
</h1>
|
||||
<div class='clearfix'>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">62.66% </span>
|
||||
<span class="strong">63.29% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>99/158</span>
|
||||
<span class='fraction'>100/158</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">55.68% </span>
|
||||
|
@ -35,9 +35,9 @@
|
|||
<span class='fraction'>14/19</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">62.66% </span>
|
||||
<span class="strong">63.29% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>99/158</span>
|
||||
<span class='fraction'>100/158</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -447,7 +447,7 @@
|
|||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-yes">1×</span>
|
||||
<span class="cline-any cline-yes">1×</span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-yes">1×</span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
|
@ -839,8 +839,8 @@ const net = require('net'),
|
|||
Message = require('js-message');
|
||||
|
||||
let Events = require('event-pubsub/es5');
|
||||
<span class="missing-if-branch" title="if path not taken" >I</span>if(process.version[1]>4){
|
||||
<span class="cstat-no" title="statement not covered" > Events = require('event-pubsub');</span>
|
||||
<span class="missing-if-branch" title="else path not taken" >E</span>if(process.version[1]>4){
|
||||
Events = require('event-pubsub');
|
||||
}
|
||||
|
||||
class Server extends Events{
|
||||
|
@ -1228,7 +1228,7 @@ module.exports=Server;
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -466,7 +466,7 @@ module.exports=Defaults;
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../prettify.js"></script>
|
||||
|
|
|
@ -112,7 +112,7 @@ module.exports=new IPCModule;
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../prettify.js"></script>
|
||||
|
|
|
@ -1063,7 +1063,7 @@ module.exports=IPC;
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 03 2016 13:33:38 GMT-0700 (PDT)
|
||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Oct 05 2016 23:34:09 GMT-0700 (PDT)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -302,7 +302,7 @@ FNDA:7,(anonymous_9)
|
|||
DA:3,1
|
||||
DA:10,1
|
||||
DA:11,1
|
||||
DA:12,0
|
||||
DA:12,1
|
||||
DA:17,7
|
||||
DA:18,7
|
||||
DA:35,1
|
||||
|
@ -399,9 +399,9 @@ DA:229,0
|
|||
DA:232,7
|
||||
DA:237,1
|
||||
LF:99
|
||||
LH:70
|
||||
BRDA:11,1,0,0
|
||||
BRDA:11,1,1,1
|
||||
LH:71
|
||||
BRDA:11,1,0,1
|
||||
BRDA:11,1,1,0
|
||||
BRDA:28,2,0,7
|
||||
BRDA:28,2,1,0
|
||||
BRDA:42,3,0,0
|
||||
|
@ -524,7 +524,7 @@ FNDA:0,(anonymous_19)
|
|||
DA:3,1
|
||||
DA:10,1
|
||||
DA:11,1
|
||||
DA:12,0
|
||||
DA:12,1
|
||||
DA:17,4
|
||||
DA:18,4
|
||||
DA:34,4
|
||||
|
@ -680,9 +680,9 @@ DA:382,0
|
|||
DA:385,0
|
||||
DA:393,1
|
||||
LF:158
|
||||
LH:99
|
||||
BRDA:11,1,0,0
|
||||
BRDA:11,1,1,1
|
||||
LH:100
|
||||
BRDA:11,1,0,1
|
||||
BRDA:11,1,1,0
|
||||
BRDA:52,2,0,0
|
||||
BRDA:52,2,1,4
|
||||
BRDA:71,3,0,0
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
const ipc = require('../../../../node-ipc');
|
||||
|
||||
ipc.config.id ='testClient';
|
||||
ipc.config.retry = 60;
|
||||
ipc.config.retry = 600;
|
||||
|
||||
describe('Test Cases for Unix client: ',
|
||||
function UnixClientSpec(){
|
||||
|
|
Loading…
Reference in a new issue