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

chrome-net

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-net - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

8

index.js

@@ -406,2 +406,5 @@ /**

self._connecting = false
self.ondata = null
self.onend = null

@@ -579,6 +582,8 @@ if (options.server) {

var buffer = new Buffer(new Uint8Array(data))
var offset = self.bytesRead
self.bytesRead += buffer.length
self._resetTimeout()
if (self.ondata) self.ondata(buffer, offset, self.bytesRead)
if (!self.push(buffer)) { // if returns false, then apply backpressure

@@ -592,2 +597,3 @@ chrome.sockets.tcp.setPaused(self.id, true)

if (resultCode === -100) {
if (self.onend) self.once('end', self.onend)
self.push(null)

@@ -594,0 +600,0 @@ self.destroy()

2

package.json
{
"name": "chrome-net",
"description": "Use the Node `net` API in Chrome Apps",
"version": "2.2.3",
"version": "2.2.4",
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)",

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

Sorry, the diff of this file is too big to display

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