fix for windows posix sockets

This commit is contained in:
RIAEvangelist 2016-12-21 19:34:53 -08:00
parent c899df2f42
commit eda84a4093
14 changed files with 15 additions and 15 deletions

View File

@ -80,7 +80,7 @@ function connect(){
if (process.platform ==='win32' && !client.path.startsWith('\\\\.\\pipe\\')){
options.path = options.path.replace(/^\//, '');
options.path = options.path.replace(/\//g, '-');
options.path= `\\\\.\\pipe\\${path}`;
options.path= `\\\\.\\pipe\\${options.path}`;
}
client.socket = net.connect(options);

View File

@ -1,6 +1,6 @@
{
"name": "node-ipc",
"version": "8.10.0",
"version": "8.10.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": {

File diff suppressed because one or more lines are too long

View File

@ -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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="prettify.js"></script>

View File

@ -631,7 +631,7 @@ function connect(){
<span class="missing-if-branch" title="if path not taken" >I</span>if (process.platform ==='win32' &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >!client.path.startsWith('\\\\.\\pipe\\'))</span>{
<span class="cstat-no" title="statement not covered" > options.path = options.path.replace(/^\//, '');</span>
<span class="cstat-no" title="statement not covered" > options.path = options.path.replace(/\//g, '-');</span>
<span class="cstat-no" title="statement not covered" > options.path= `\\\\.\\pipe\\${path}`;</span>
<span class="cstat-no" title="statement not covered" > options.path= `\\\\.\\pipe\\${options.path}`;</span>
}
&nbsp;
client.socket = net.connect(options);
@ -808,7 +808,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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View File

@ -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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View File

@ -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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View File

@ -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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View File

@ -277,7 +277,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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View File

@ -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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View File

@ -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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../prettify.js"></script>

View File

@ -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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../prettify.js"></script>

View File

@ -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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View File

@ -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 Wed Dec 21 2016 17:00:59 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Wed Dec 21 2016 19:34:21 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>