prepping for 10.0.2 patch
This commit is contained in:
commit
a5939c1a8a
50 changed files with 986 additions and 394 deletions
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -1 +1 @@
|
|||
spec/**/* linguist-generated=true
|
||||
coverage/**/* linguist-generated=true
|
||||
|
|
28
README.md
28
README.md
|
@ -6,6 +6,10 @@ A great solution for complex multiprocess **Neural Networking** in Node.JS
|
|||
|
||||
**npm install node-ipc**
|
||||
|
||||
#### for commonjs or node <v14
|
||||
|
||||
set version to `<10.0.0` in your `pagage.json` for the node-ipc dep.
|
||||
|
||||
#### NPM Stats
|
||||
|
||||
npm info : [See npm trends and stats for node-ipc](http://npm-stat.com/charts.html?package=node-ipc&author=&from=&to=)
|
||||
|
@ -490,7 +494,8 @@ Sometimes you might need explicit and independent instances of node-ipc. Just fo
|
|||
|
||||
```javascript
|
||||
|
||||
const RawIPC=from 'node-ipc').IPC;
|
||||
import {IPCModule} from 'node-ipc';
|
||||
|
||||
const ipc=new RawIPC;
|
||||
const someOtherExplicitIPC=new RawIPC;
|
||||
|
||||
|
@ -525,7 +530,7 @@ The server is the process keeping a socket for IPC open. Multiple sockets can co
|
|||
|
||||
```javascript
|
||||
|
||||
var ipc=from 'node-ipc');
|
||||
import ipc from 'node-ipc';
|
||||
|
||||
ipc.config.id = 'world';
|
||||
ipc.config.retry= 1500;
|
||||
|
@ -562,7 +567,7 @@ The client connects to the servers socket for Inter Process Communication. The s
|
|||
|
||||
```javascript
|
||||
|
||||
var ipc=from 'node-ipc');
|
||||
import ipc from 'node-ipc';
|
||||
|
||||
ipc.config.id = 'hello';
|
||||
ipc.config.retry= 1500;
|
||||
|
@ -608,7 +613,7 @@ This is the most basic example which will work for both local and remote UDP Soc
|
|||
|
||||
```javascript
|
||||
|
||||
var ipc=from '../../../node-ipc');
|
||||
import ipc from 'node-ipc';
|
||||
|
||||
ipc.config.id = 'world';
|
||||
ipc.config.retry= 1500;
|
||||
|
@ -803,10 +808,13 @@ Writing explicit buffers, int types, doubles, floats etc. as well as big endian
|
|||
|
||||
```javascript
|
||||
|
||||
const fs = from 'fs');
|
||||
const ipc=from '../../../node-ipc');
|
||||
const cpuCount = from 'os').cpus().length;
|
||||
const cluster = from 'cluster');
|
||||
import fs from 'fs';
|
||||
import ipc from 'node-ipc';
|
||||
import {cpus} from 'os';
|
||||
import cluster from 'cluster';
|
||||
|
||||
const cpuCount=cpus().length;
|
||||
|
||||
const socketPath='/tmp/ipc.sock';
|
||||
|
||||
ipc.config.unlink = false;
|
||||
|
@ -842,8 +850,8 @@ Writing explicit buffers, int types, doubles, floats etc. as well as big endian
|
|||
|
||||
```javascript
|
||||
|
||||
const fs = from 'fs');
|
||||
const ipc = from '../../node-ipc');
|
||||
import fs from 'fs';
|
||||
import ipc from 'node-ipc';
|
||||
|
||||
const socketPath = '/tmp/ipc.sock';
|
||||
|
||||
|
|
26
coverage/index.html
generated
26
coverage/index.html
generated
|
@ -23,30 +23,30 @@
|
|||
<div class='clearfix'>
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">79.65% </span>
|
||||
<span class="strong">79.52% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>900/1130</span>
|
||||
<span class='fraction'>893/1123</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">67.9% </span>
|
||||
<span class="strong">68.1% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>110/162</span>
|
||||
<span class='fraction'>111/163</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">84.62% </span>
|
||||
<span class="strong">84.91% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>44/52</span>
|
||||
<span class='fraction'>45/53</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">79.65% </span>
|
||||
<span class="strong">79.52% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>900/1130</span>
|
||||
<span class='fraction'>893/1123</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -78,13 +78,13 @@
|
|||
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
||||
</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="24" class="abs high">24/24</td>
|
||||
<td data-value="17" class="abs high">17/17</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="3" class="abs high">3/3</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="2" class="abs high">2/2</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="1" class="abs high">1/1</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="24" class="abs high">24/24</td>
|
||||
<td data-value="17" class="abs high">17/17</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -155,7 +155,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="prettify.js"></script>
|
||||
|
|
26
coverage/lcov-report/index.html
generated
26
coverage/lcov-report/index.html
generated
|
@ -23,30 +23,30 @@
|
|||
<div class='clearfix'>
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">79.65% </span>
|
||||
<span class="strong">79.52% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>900/1130</span>
|
||||
<span class='fraction'>893/1123</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">67.9% </span>
|
||||
<span class="strong">68.1% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>110/162</span>
|
||||
<span class='fraction'>111/163</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">84.62% </span>
|
||||
<span class="strong">84.91% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>44/52</span>
|
||||
<span class='fraction'>45/53</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">79.65% </span>
|
||||
<span class="strong">79.52% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>900/1130</span>
|
||||
<span class='fraction'>893/1123</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -78,13 +78,13 @@
|
|||
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
||||
</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="24" class="abs high">24/24</td>
|
||||
<td data-value="17" class="abs high">17/17</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="3" class="abs high">3/3</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="2" class="abs high">2/2</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="1" class="abs high">1/1</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="24" class="abs high">24/24</td>
|
||||
<td data-value="17" class="abs high">17/17</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -155,7 +155,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="prettify.js"></script>
|
||||
|
|
2
coverage/lcov-report/node-ipc/dao/client.js.html
generated
2
coverage/lcov-report/node-ipc/dao/client.js.html
generated
|
@ -838,7 +838,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/lcov-report/node-ipc/dao/index.html
generated
2
coverage/lcov-report/node-ipc/dao/index.html
generated
|
@ -110,7 +110,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -1261,7 +1261,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -262,7 +262,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -166,7 +166,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -97,7 +97,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/lcov-report/node-ipc/helpers/index.html
generated
2
coverage/lcov-report/node-ipc/helpers/index.html
generated
|
@ -95,7 +95,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
18
coverage/lcov-report/node-ipc/index.html
generated
18
coverage/lcov-report/node-ipc/index.html
generated
|
@ -25,28 +25,28 @@
|
|||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>24/24</span>
|
||||
<span class='fraction'>17/17</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
<span class='fraction'>3/3</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>1/1</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>24/24</span>
|
||||
<span class='fraction'>17/17</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -78,13 +78,13 @@
|
|||
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
||||
</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="24" class="abs high">24/24</td>
|
||||
<td data-value="17" class="abs high">17/17</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="3" class="abs high">3/3</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="2" class="abs high">2/2</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="1" class="abs high">1/1</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="24" class="abs high">24/24</td>
|
||||
<td data-value="17" class="abs high">17/17</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
@ -95,7 +95,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../prettify.js"></script>
|
||||
|
|
43
coverage/lcov-report/node-ipc/node-ipc.js.html
generated
43
coverage/lcov-report/node-ipc/node-ipc.js.html
generated
|
@ -25,28 +25,28 @@
|
|||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>24/24</span>
|
||||
<span class='fraction'>17/17</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
<span class='fraction'>3/3</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>1/1</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>24/24</span>
|
||||
<span class='fraction'>17/17</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -74,29 +74,15 @@
|
|||
<a name='L15'></a><a href='#L15'>15</a>
|
||||
<a name='L16'></a><a href='#L16'>16</a>
|
||||
<a name='L17'></a><a href='#L17'>17</a>
|
||||
<a name='L18'></a><a href='#L18'>18</a>
|
||||
<a name='L19'></a><a href='#L19'>19</a>
|
||||
<a name='L20'></a><a href='#L20'>20</a>
|
||||
<a name='L21'></a><a href='#L21'>21</a>
|
||||
<a name='L22'></a><a href='#L22'>22</a>
|
||||
<a name='L23'></a><a href='#L23'>23</a>
|
||||
<a name='L24'></a><a href='#L24'>24</a>
|
||||
<a name='L25'></a><a href='#L25'>25</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">7x</span>
|
||||
<a name='L18'></a><a href='#L18'>18</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
|
@ -110,17 +96,10 @@
|
|||
class IPCModule extends IPC{
|
||||
constructor(){
|
||||
super();
|
||||
//include IPC to make extensible
|
||||
Object.defineProperty(
|
||||
this,
|
||||
'IPC',
|
||||
{
|
||||
enumerable:true,
|
||||
writable:false,
|
||||
value:IPC
|
||||
}
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
IPC=IPC;
|
||||
}
|
||||
|
||||
const singleton=new IPCModule;
|
||||
|
@ -136,7 +115,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../prettify.js"></script>
|
||||
|
|
|
@ -1075,7 +1075,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:26 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
40
coverage/lcov.info
generated
40
coverage/lcov.info
generated
|
@ -1,9 +1,11 @@
|
|||
TN:
|
||||
SF:node-ipc.js
|
||||
FN:4,IPCModule
|
||||
FNF:1
|
||||
FNH:1
|
||||
FN:9,<instance_members_initializer>
|
||||
FNF:2
|
||||
FNH:2
|
||||
FNDA:15,IPCModule
|
||||
FNDA:15,<instance_members_initializer>
|
||||
DA:1,7
|
||||
DA:2,7
|
||||
DA:3,7
|
||||
|
@ -11,29 +13,23 @@ DA:4,7
|
|||
DA:5,15
|
||||
DA:6,15
|
||||
DA:7,15
|
||||
DA:8,15
|
||||
DA:9,15
|
||||
DA:10,15
|
||||
DA:11,15
|
||||
DA:12,15
|
||||
DA:13,15
|
||||
DA:14,15
|
||||
DA:15,15
|
||||
DA:16,15
|
||||
DA:8,7
|
||||
DA:9,7
|
||||
DA:10,7
|
||||
DA:11,7
|
||||
DA:12,7
|
||||
DA:13,7
|
||||
DA:14,7
|
||||
DA:15,7
|
||||
DA:16,7
|
||||
DA:17,7
|
||||
DA:18,7
|
||||
DA:19,7
|
||||
DA:20,7
|
||||
DA:21,7
|
||||
DA:22,7
|
||||
DA:23,7
|
||||
DA:24,7
|
||||
LF:24
|
||||
LH:24
|
||||
LF:17
|
||||
LH:17
|
||||
BRDA:1,0,0,7
|
||||
BRDA:4,1,0,15
|
||||
BRF:2
|
||||
BRH:2
|
||||
BRDA:9,2,0,15
|
||||
BRF:3
|
||||
BRH:3
|
||||
end_of_record
|
||||
TN:
|
||||
SF:dao\client.js
|
||||
|
|
2
coverage/node-ipc/dao/client.js.html
generated
2
coverage/node-ipc/dao/client.js.html
generated
|
@ -838,7 +838,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/node-ipc/dao/index.html
generated
2
coverage/node-ipc/dao/index.html
generated
|
@ -110,7 +110,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/node-ipc/dao/socketServer.js.html
generated
2
coverage/node-ipc/dao/socketServer.js.html
generated
|
@ -1261,7 +1261,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/node-ipc/entities/Defaults.js.html
generated
2
coverage/node-ipc/entities/Defaults.js.html
generated
|
@ -262,7 +262,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/node-ipc/entities/EventParser.js.html
generated
2
coverage/node-ipc/entities/EventParser.js.html
generated
|
@ -166,7 +166,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/node-ipc/entities/index.html
generated
2
coverage/node-ipc/entities/index.html
generated
|
@ -110,7 +110,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/node-ipc/helpers/delay.js.html
generated
2
coverage/node-ipc/helpers/delay.js.html
generated
|
@ -97,7 +97,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/node-ipc/helpers/index.html
generated
2
coverage/node-ipc/helpers/index.html
generated
|
@ -95,7 +95,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
18
coverage/node-ipc/index.html
generated
18
coverage/node-ipc/index.html
generated
|
@ -25,28 +25,28 @@
|
|||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>24/24</span>
|
||||
<span class='fraction'>17/17</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
<span class='fraction'>3/3</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>1/1</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>24/24</span>
|
||||
<span class='fraction'>17/17</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -78,13 +78,13 @@
|
|||
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
||||
</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="24" class="abs high">24/24</td>
|
||||
<td data-value="17" class="abs high">17/17</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="3" class="abs high">3/3</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="2" class="abs high">2/2</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="1" class="abs high">1/1</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="24" class="abs high">24/24</td>
|
||||
<td data-value="17" class="abs high">17/17</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
@ -95,7 +95,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../prettify.js"></script>
|
||||
|
|
43
coverage/node-ipc/node-ipc.js.html
generated
43
coverage/node-ipc/node-ipc.js.html
generated
|
@ -25,28 +25,28 @@
|
|||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>24/24</span>
|
||||
<span class='fraction'>17/17</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
<span class='fraction'>3/3</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>1/1</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>24/24</span>
|
||||
<span class='fraction'>17/17</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -74,29 +74,15 @@
|
|||
<a name='L15'></a><a href='#L15'>15</a>
|
||||
<a name='L16'></a><a href='#L16'>16</a>
|
||||
<a name='L17'></a><a href='#L17'>17</a>
|
||||
<a name='L18'></a><a href='#L18'>18</a>
|
||||
<a name='L19'></a><a href='#L19'>19</a>
|
||||
<a name='L20'></a><a href='#L20'>20</a>
|
||||
<a name='L21'></a><a href='#L21'>21</a>
|
||||
<a name='L22'></a><a href='#L22'>22</a>
|
||||
<a name='L23'></a><a href='#L23'>23</a>
|
||||
<a name='L24'></a><a href='#L24'>24</a>
|
||||
<a name='L25'></a><a href='#L25'>25</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">7x</span>
|
||||
<a name='L18'></a><a href='#L18'>18</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
<span class="cline-any cline-yes">7x</span>
|
||||
|
@ -110,17 +96,10 @@
|
|||
class IPCModule extends IPC{
|
||||
constructor(){
|
||||
super();
|
||||
//include IPC to make extensible
|
||||
Object.defineProperty(
|
||||
this,
|
||||
'IPC',
|
||||
{
|
||||
enumerable:true,
|
||||
writable:false,
|
||||
value:IPC
|
||||
}
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
IPC=IPC;
|
||||
}
|
||||
|
||||
const singleton=new IPCModule;
|
||||
|
@ -136,7 +115,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../prettify.js"></script>
|
||||
|
|
2
coverage/node-ipc/services/IPC.js.html
generated
2
coverage/node-ipc/services/IPC.js.html
generated
|
@ -1075,7 +1075,7 @@ export {
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
2
coverage/node-ipc/services/index.html
generated
2
coverage/node-ipc/services/index.html
generated
|
@ -95,7 +95,7 @@
|
|||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage generated by
|
||||
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
||||
at Sun Jul 04 2021 09:13:38 GMT-0700 (Pacific Daylight Time)
|
||||
at Wed Jul 07 2021 13:15:27 GMT-0700 (Pacific Daylight Time)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
|
|
1
coverage/tmp/coverage-10204-1625688926597-0.json
generated
Normal file
1
coverage/tmp/coverage-10204-1625688926597-0.json
generated
Normal file
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-10984-1625415208338-0.json
generated
1
coverage/tmp/coverage-10984-1625415208338-0.json
generated
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-14780-1625688926570-0.json
generated
Normal file
1
coverage/tmp/coverage-14780-1625688926570-0.json
generated
Normal file
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-16520-1625415210357-0.json
generated
1
coverage/tmp/coverage-16520-1625415210357-0.json
generated
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-21088-1625415217437-0.json
generated
1
coverage/tmp/coverage-21088-1625415217437-0.json
generated
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-21508-1625688925550-0.json
generated
Normal file
1
coverage/tmp/coverage-21508-1625688925550-0.json
generated
Normal file
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-22300-1625688918490-0.json
generated
Normal file
1
coverage/tmp/coverage-22300-1625688918490-0.json
generated
Normal file
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-22840-1625415218466-0.json
generated
1
coverage/tmp/coverage-22840-1625415218466-0.json
generated
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-3668-1625688919532-0.json
generated
Normal file
1
coverage/tmp/coverage-3668-1625688919532-0.json
generated
Normal file
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-5288-1625688922546-0.json
generated
Normal file
1
coverage/tmp/coverage-5288-1625688922546-0.json
generated
Normal file
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-8236-1625415218492-0.json
generated
1
coverage/tmp/coverage-8236-1625415218492-0.json
generated
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-8604-1625415214442-0.json
generated
1
coverage/tmp/coverage-8604-1625415214442-0.json
generated
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-8624-1625688916452-0.json
generated
Normal file
1
coverage/tmp/coverage-8624-1625688916452-0.json
generated
Normal file
File diff suppressed because one or more lines are too long
1
coverage/tmp/coverage-9996-1625415211397-0.json
generated
1
coverage/tmp/coverage-9996-1625415211397-0.json
generated
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
const fs = from 'fs');
|
||||
const ipc = from '../../node-ipc');
|
||||
import fs from 'fs';
|
||||
import ipc from '../../node-ipc';
|
||||
|
||||
const socketPath = '/tmp/ipc.sock';
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
const fs = from 'fs');
|
||||
import ipc from '../../../node-ipc.js';
|
||||
const cpuCount = from 'os').cpus().length;
|
||||
const cluster = from 'cluster');
|
||||
import fs from 'fs';
|
||||
import {cpus} from 'os';
|
||||
import cluster from 'cluster';
|
||||
|
||||
const cpuCount=cpus().length;
|
||||
const socketPath = '/tmp/ipc.sock';
|
||||
|
||||
ipc.config.unlink = false;
|
||||
|
|
13
node-ipc.js
13
node-ipc.js
|
@ -3,17 +3,10 @@ import IPC from './services/IPC.js';
|
|||
class IPCModule extends IPC{
|
||||
constructor(){
|
||||
super();
|
||||
//include IPC to make extensible
|
||||
Object.defineProperty(
|
||||
this,
|
||||
'IPC',
|
||||
{
|
||||
enumerable:true,
|
||||
writable:false,
|
||||
value:IPC
|
||||
}
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
IPC=IPC;
|
||||
}
|
||||
|
||||
const singleton=new IPCModule;
|
||||
|
|
1053
package-lock.json
generated
1053
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "node-ipc",
|
||||
"version": "10.0.1",
|
||||
"version": "10.0.2",
|
||||
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.",
|
||||
"type": "module",
|
||||
"main": "node-ipc.js",
|
||||
|
|
Loading…
Reference in a new issue