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

flexus-net

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flexus-net - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

14

net.js

@@ -15,2 +15,16 @@ var isChromeApp = typeof chrome == 'object' && typeof chrome.runtime == 'object' && typeof chrome.runtime.id == 'string';

console.warn('flexus-net not implemented in browser')
var chromenet = require('chrome-net');
// It's better to have the noop shim of net API in place than letting other modules crash.
// For example http-node inherits net.Server and would throw error without this.
function noop() {}
module.exports = {
connect: noop,
createConnection: noop,
createServer: noop,
Server: noop,
Socket: noop,
isIP: chromenet.isIP,
isIPv4: chromenet.isIPv4,
isIPv6: chromenet.isIPv6
};
}

2

package.json
{
"name": "flexus-net",
"version": "2.0.4",
"version": "2.0.5",
"description": "truly multiplatform wrapper for node net module",

@@ -5,0 +5,0 @@ "author": "Mike Kovařík <kenr.mk@gmail.com>",

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