Comparing version 9.1.1 to 9.1.2
@@ -8,8 +8,4 @@ 'use strict'; | ||
fs = require('fs'), | ||
Queue = require('js-queue'); | ||
let Events = require('event-pubsub/es5'); | ||
if(process.version[1]>4){ | ||
Queue = require('js-queue'), | ||
Events = require('event-pubsub'); | ||
} | ||
@@ -48,3 +44,3 @@ let eventParser = new EventParser(); | ||
if(this.config.rawBuffer){ | ||
message=new Buffer(type,this.config.encoding); | ||
message=Buffer.from(type,this.config.encoding); | ||
}else{ | ||
@@ -214,3 +210,3 @@ message=eventParser.format(message); | ||
'data', | ||
new Buffer(data,client.config.encoding) | ||
Buffer.from(data,client.config.encoding) | ||
); | ||
@@ -217,0 +213,0 @@ if(!client.config.sync){ |
@@ -8,8 +8,4 @@ 'use strict'; | ||
EventParser = require('../entities/EventParser.js'), | ||
Message = require('js-message'); | ||
let Events = require('event-pubsub/es5'); | ||
if(process.version[1]>4){ | ||
Message = require('js-message'), | ||
Events = require('event-pubsub'); | ||
} | ||
@@ -82,3 +78,3 @@ let eventParser = new EventParser(); | ||
this.log(this.config.encoding) | ||
message=new Buffer(type,this.config.encoding); | ||
message=Buffer.from(type,this.config.encoding); | ||
}else{ | ||
@@ -113,3 +109,3 @@ message=eventParser.format(message); | ||
if(this.config.rawBuffer){ | ||
message=new Buffer(type,this.config.encoding); | ||
message=Buffer.from(type,this.config.encoding); | ||
}else{ | ||
@@ -162,3 +158,3 @@ message=eventParser.format(message); | ||
if(this.config.rawBuffer){ | ||
data=new Buffer(data,this.config.encoding); | ||
data=Buffer.from(data,this.config.encoding); | ||
this.publish( | ||
@@ -172,7 +168,7 @@ 'data', | ||
if(!this.ipcBuffer){ | ||
this.ipcBuffer=''; | ||
if(!sock.ipcBuffer){ | ||
sock.ipcBuffer=''; | ||
} | ||
data=(this.ipcBuffer+=data); | ||
data=(sock.ipcBuffer+=data); | ||
@@ -184,3 +180,3 @@ if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){ | ||
this.ipcBuffer=''; | ||
sock.ipcBuffer=''; | ||
@@ -253,3 +249,3 @@ data=eventParser.parse(data); | ||
if(this.config.rawSocket){ | ||
data=new Buffer(msg,this.config.encoding); | ||
data=Buffer.from(msg,this.config.encoding); | ||
}else{ | ||
@@ -388,3 +384,3 @@ data=msg.toString(); | ||
function UDPWrite(message,socket){ | ||
let data=new Buffer(message, this.config.encoding); | ||
let data=Buffer.from(message, this.config.encoding); | ||
this.server.send( | ||
@@ -391,0 +387,0 @@ data, |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ const fs = require('fs'); |
@@ -0,0 +0,0 @@ const fs = require('fs'); |
@@ -24,3 +24,3 @@ 'use strict'; | ||
//make a 6 byte buffer for example | ||
const myBuffer=new Buffer(6).fill(0); | ||
const myBuffer=Buffer.alloc(6).fill(0); | ||
@@ -27,0 +27,0 @@ myBuffer.writeUInt16BE(0x02,0); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ # Using TLS and SSL for Secure node-ipc |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -0,0 +0,0 @@ const ipc=require('../../../node-ipc'); |
@@ -1,27 +0,21 @@ | ||
# DON'T BE A DICK PUBLIC LICENSE | ||
MIT License | ||
> Version 1, December 2009 | ||
Copyright (c) 2020 Brandon Nozaki Miller | ||
> Copyright (C) 2009 Philip Sturgeon <email@philsturgeon.co.uk> | ||
Everyone is permitted to copy and distribute verbatim or modified | ||
copies of this license document, and changing it is allowed as long | ||
as the name is changed. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
> DON'T BE A DICK PUBLIC LICENSE | ||
> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
1. Do whatever you like with the original work, just don't be a dick. | ||
Being a dick includes - but is not limited to - the following instances: | ||
1a. Outright copyright infringement - Don't just copy this and change the name. | ||
1b. Selling the unmodified original with no work done what-so-ever, that's REALLY being a dick. | ||
1c. Modifying the original work to contain hidden harmful content. That would make you a PROPER dick. | ||
2. If you become rich through modifications, related works/services, or supporting the original work, | ||
share the love. Only a dick would make loads off this work and not buy the original work's | ||
creator(s) a pint. | ||
3. Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes | ||
you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
@@ -0,0 +0,0 @@ 'use strict'; |
{ | ||
"name": "node-ipc", | ||
"version": "9.1.1", | ||
"version": "9.1.2", | ||
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.", | ||
@@ -10,8 +10,8 @@ "main": "node-ipc.js", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"node": ">=8.0.0" | ||
}, | ||
"dependencies": { | ||
"event-pubsub": "4.3.0", | ||
"js-message": "1.0.5", | ||
"js-queue": "2.0.0" | ||
"js-message": "1.0.6", | ||
"js-queue": "2.0.2" | ||
}, | ||
@@ -56,3 +56,3 @@ "devDependencies": { | ||
"author": "Brandon Nozaki Miller", | ||
"license": "DBAD", | ||
"license": "MIT", | ||
"repository": { | ||
@@ -59,0 +59,0 @@ "type": "git", |
node-ipc | ||
================ | ||
**v10.x development underway. This includes an apache 2.0 licence** | ||
*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. | ||
@@ -101,2 +103,3 @@ | ||
rawBuffer : false, | ||
delimiter : '\f', | ||
sync : false, | ||
@@ -125,3 +128,3 @@ silent : false, | ||
|----------|---------------| | ||
| appspace | used for Unix Socket (Unix Domain Socket) namespacing. If not set specifically, the Unix Domain Socket will combine the socketRoot, appspace, and id to form the Unix Socket Path for creation or binding. This is available incase you have many apps running on your system, you may have several sockets with the same id, but if you change the appspace, you will still have app specic unique sockets.| | ||
| appspace | used for Unix Socket (Unix Domain Socket) namespacing. If not set specifically, the Unix Domain Socket will combine the socketRoot, appspace, and id to form the Unix Socket Path for creation or binding. This is available in case you have many apps running on your system, you may have several sockets with the same id, but if you change the appspace, you will still have app specic unique sockets.| | ||
| socketRoot| the directory in which to create or bind to a Unix Socket | | ||
@@ -133,2 +136,3 @@ | id | the id of this socket or service | | ||
| rawBuffer| if true, data will be sent and received as a raw node ` Buffer ` __NOT__ an ` Object ` as JSON. This is great for Binary or hex IPC, and communicating with other processes in languages like C and C++ | | ||
| delimiter| the delimiter at the end of each data packet. | | ||
| sync | synchronous requests. Clients will not send new requests until the server answers. | | ||
@@ -468,3 +472,3 @@ | silent | turn on/off logging default is false which means logging is on | | ||
|-----------|------------| | ||
|start| start serving need top call ` serve ` or ` serveNet ` first to set up the server | | ||
|start| start serving need to call ` serve ` or ` serveNet ` first to set up the server | | ||
|stop| close the server and stop serving | | ||
@@ -762,3 +766,3 @@ | ||
//make a 6 byte buffer for example | ||
const myBuffer=new Buffer(6).fill(0); | ||
const myBuffer=Buffer.alloc(6).fill(0); | ||
@@ -765,0 +769,0 @@ //fill the first 2 bytes with a 16 bit (2 byte) short unsigned int |
@@ -0,0 +0,0 @@ 'use strict'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
134696
0
0
100
881
64
2688
+ Addedjs-message@1.0.6(transitive)
+ Addedjs-queue@2.0.2(transitive)
- Removedjs-message@1.0.5(transitive)
- Removedjs-queue@2.0.0(transitive)
Updatedjs-message@1.0.6
Updatedjs-queue@2.0.2