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

multiserver

Package Overview
Dependencies
Maintainers
19
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiserver - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

package.json
{
"name": "multiserver",
"description": "write a server which works over many protocols at once, or connect to the same",
"version": "3.0.0",
"version": "3.0.1",
"homepage": "https://github.com/dominictarr/multiserver",

@@ -6,0 +6,0 @@ "repository": {

@@ -6,2 +6,6 @@ var net

function isString(s) {
return 'string' == typeof s
}
var toPull = require('stream-to-pull-stream')

@@ -20,3 +24,4 @@ var scopes = require('multiserver-scopes')

var port = opts.port || Math.floor(49152 + (65535 - 49152 + 1) * Math.random())
var host = opts.host || opts.scope && scopes.host(opts.scope) || 'localhost'
//does this actually need to set host from the scope here?
var host = opts.host || (isString(opts.scope) && scopes.host(opts.scope)) || 'localhost'
var scope = opts.scope || 'device'

@@ -23,0 +28,0 @@ // FIXME: does this even work anymore?

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