Compare commits

...

24 Commits

Author SHA1 Message Date
Brandon Nozaki Miller 088a1ca4d5
Update README.md 2022-03-18 01:46:25 -07:00
Brandon Nozaki Miller b78969d045
Added sponsor badge 2021-12-10 15:27:38 -08:00
Brandon Nozaki Miller 9bbd515473
clarifying v10+ includes 2021-12-08 08:32:38 -08:00
Brandon Nozaki Miller 6f265d9cb0
clarified es6 vs commonjs import 2021-12-07 09:58:18 -08:00
Brandon Nozaki Miller 7a614ce9be
Merge pull request #219 from tripodsgames/cjs
V10 cjs compatibility.
2021-09-15 11:18:48 -07:00
tripodsgames 083546305f
Fix ESM and Commonjs compatibility. 2021-09-15 11:06:48 -03:00
André Antônio Posso da Silva 98c6fc8140
Update README.md
Improvements to README.
2021-09-15 10:54:49 -03:00
Brandon Nozaki Miller 486c3138d2
updating version for cjs support 2021-09-15 06:38:43 -07:00
tripodsgames 144178f021
Fixed deprecated prepublish script. 2021-09-14 21:31:03 -03:00
tripodsgames dfc8554352
Update gitignore. 2021-09-14 21:29:17 -03:00
tripodsgames 86292a2bab
Update readme. 2021-09-14 21:27:45 -03:00
tripodsgames de80f537ef
Set target to cjs. 2021-09-14 21:26:08 -03:00
tripodsgames ad4a033888
Use esbuild to build commonjs code. 2021-09-14 21:20:10 -03:00
Brandon Nozaki Miller 624625693e
Merge pull request #210 from Mirdukkk/master
fix(readme): fix typo
2021-07-28 17:13:11 -07:00
Mirdukkk 09ca809512
fix(readme): fix typo 2021-07-14 16:03:42 +03:00
Brandon a5939c1a8a prepping for 10.0.2 patch 2021-07-07 13:16:21 -07:00
Brandon ec0969ee83 merge prep for 10.0.2 patch pub 2021-07-07 13:13:45 -07:00
Brandon Nozaki Miller 2bacbd72f2 patch rev for slight change to main file 2021-07-07 20:11:27 +00:00
Brandon Nozaki Miller f35940636e updated cluster docs 2021-07-07 20:10:40 +00:00
Brandon Nozaki Miller 64fef8b3a5 fixing docs 2021-07-07 19:59:31 +00:00
Brandon Nozaki Miller dd7335a2c6
do not use coverage dir to determine language 2021-07-04 12:00:13 -07:00
Brandon Nozaki Miller 73cc089d54 fixed test file capitolization for linux systems 2021-07-04 16:23:34 +00:00
Brandon Nozaki Miller f89a1812ef capitolization od UDP files 2021-07-04 16:22:28 +00:00
Brandon Nozaki Miller 0a9d04099a spelling break so git will detect capitolization 2021-07-04 16:21:50 +00:00
51 changed files with 177 additions and 189 deletions

2
.gitattributes vendored
View File

@ -1 +1 @@
spec/**/* linguist-generated=true
coverage/**/* linguist-generated=true

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/node_modules/
/nbproject
npm-debug.log
node-ipc.cjs

View File

@ -1,10 +1,31 @@
Thanks for all the free pizza, and thanks to all the police that showed up to SWAT me. They were really nice fellas.
node-ipc
================
[![Sponsor RIAEvangelist to help development of node-ipc](https://img.shields.io/static/v1?label=Sponsor%20Me%20On%20Github&message=%E2%9D%A4&logo=GitHub&link=https://github.com/sponsors/RIAEvangelist)](https://github.com/sponsors/RIAEvangelist)
*a nodejs module for local and remote Inter Process Communication* with full support for Linux, Mac and Windows. It also supports all forms of socket communication from low level unix and windows sockets to UDP and secure TLS and TCP sockets.
A great solution for complex multiprocess **Neural Networking** in Node.JS
**npm install node-ipc**
`npm install node-ipc`
#### for node <v14
`npm install node-ipc@^9.0.0`
#### including v10 or greater into your code
```js
//es6
import ipc from 'node-ipc'
//commonjs
const ipc = require('node-ipc').default;
```
#### NPM Stats
@ -490,7 +511,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 +547,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 +584,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 +630,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,11 +825,14 @@ 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');
const socketPath = '/tmp/ipc.sock';
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 +867,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
View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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
}
)
&nbsp;
}
&nbsp;
IPC=IPC;
}
&nbsp;
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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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
View File

@ -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

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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
}
)
&nbsp;
}
&nbsp;
IPC=IPC;
}
&nbsp;
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 00:17:42 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>

View File

@ -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 00:17:42 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>

View File

@ -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 00:17:42 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>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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';

View File

@ -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;

View File

@ -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;

8
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "node-ipc",
"version": "10.0.0",
"version": "10.0.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -164,6 +164,12 @@
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
},
"esbuild": {
"version": "0.12.28",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.12.28.tgz",
"integrity": "sha512-pZ0FrWZXlvQOATlp14lRSk1N9GkeJ3vLIwOcUoo3ICQn9WNR4rWoNi81pbn6sC1iYUy7QPqNzI3+AEzokwyVcA==",
"dev": true
},
"escalade": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",

View File

@ -1,9 +1,14 @@
{
"name": "node-ipc",
"version": "10.0.1",
"version": "10.1.0",
"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",
"main": "node-ipc.cjs",
"module": "node-ipc.js",
"exports": {
"import": "./node-ipc.js",
"require": "./node-ipc.cjs"
},
"directories": {
"example": "example"
},
@ -18,12 +23,14 @@
},
"devDependencies": {
"c8": "^7.7.3",
"esbuild": "^0.12.28",
"lcov2badge": "^0.1.2",
"node-cmd": "^4.0.0",
"node-http-server": "^8.1.4",
"vanilla-test": "^1.4.8"
},
"scripts": {
"prepare": "esbuild node-ipc.js --bundle --format=cjs --target=es2018 --platform=node --outfile=node-ipc.cjs",
"test": "npm i && c8 -r lcov -r html node test/CI.js && c8 report && node ./lcov.js",
"coverage": "echo 'See your coverage report at http://localhost:8080' && node-http-server port=8080 root=./coverage/"
},
@ -59,4 +66,4 @@
"url": "https://github.com/RIAEvangelist/node-ipc/issues"
},
"homepage": "http://riaevangelist.github.io/node-ipc/"
}
}