Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mux-demux

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mux-demux - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

test/msg-pack.js

7

index.js
var es = require('event-stream')
function MuxDemux (opts) {
if('function' === typeof opts)
opts = {wrapper: opts}

@@ -86,3 +88,6 @@ function createID() {

var outer = es.connect(es.split(), es.parse(), md, es.stringify())
var outer = (
opts && opts.wrapper ? opts.wrapper(md) :
es.pipeline(es.split(), es.parse(), md, es.stringify())
)

@@ -89,0 +94,0 @@ if(md !== outer)

4

package.json
{
"name": "mux-demux",
"version": "2.0.0",
"version": "2.1.0",
"description": "",

@@ -11,3 +11,3 @@ "homepage": "http://github.com/dominictarr/mux-demux",

"dependencies": {
"event-stream": "~2.1.8"
"event-stream": "~2.2"
},

@@ -14,0 +14,0 @@ "scripts": {

var es = require('event-stream')
var a = require('assertions')
module.exports =
module.exports =
function consistent(test) {

@@ -39,1 +39,2 @@ test = test || a.deepEqual

}

@@ -12,2 +12,4 @@ /*

module.exports = function (wrapper) {
function randomNumberStream (max, count) {

@@ -207,1 +209,6 @@ count = count || 20

})();
}
if(!module.parent)
module.exports()

@@ -5,5 +5,7 @@ var a = require('assertions')

var A = new MuxDemux()
var B = new MuxDemux()
module.exports = function (wrapper) {
var A = new MuxDemux(wrapper)
var B = new MuxDemux(wrapper)
var connected, closed, ended, _hi

@@ -48,1 +50,6 @@

a.ok(!ended)
}
if(!module.parent)
module.exports()

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc