🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

sipware

Package Overview
Dependencies
Maintainers
1
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sipware - npm Package Compare versions

Comparing version

to
0.5.8

25

lib/router.js

@@ -20,3 +20,11 @@ const debug = require('debug') ('sipware:router')

// relaying
// incoming
this.$ins = [];
this.ins = this.createChain([() => {}]);
// outgoing
this.$outs = [];
this.outs = this.createChain([() => {}]);
// relay
this.$relays = [];

@@ -141,3 +149,16 @@ this.relays = this.createChain([() => {}]);

// relay is separate chain
in(ins) {
var chain = this.$ins;
this.$ins.push(ins.bind(this));
this.ins = this.createChain(chain);
}
out(out) {
var chain = this.$outs;
this.$outs.push(out.bind(this));
this.outs = this.createChain(chain);
}
relay(relay) {

@@ -144,0 +165,0 @@ var chain = this.$relays;

2

package.json

@@ -67,3 +67,3 @@ {

"optionalDependencies": {},
"version": "0.5.7",
"version": "0.5.8",
"directories": {

@@ -70,0 +70,0 @@ "lib": "lib"