Socket
Socket
Sign inDemoInstall

chrome-net

Package Overview
Dependencies
1
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.0 to 3.3.1

41

index.js

@@ -1,2 +0,2 @@

/*global chrome */
/* global chrome */
'use strict'

@@ -163,3 +163,4 @@

'Server.connections property is deprecated.'),
configurable: true, enumerable: false
configurable: true,
enumerable: false
})

@@ -289,18 +290,18 @@

var listen = () => chrome.sockets.tcpServer.listen(this.id, this._host,
this._port, this._backlog,
(result) => {
// callback may be after close
if (this.id !== socketId) {
ignoreLastError()
return
}
if (result !== 0 && isAny6) {
ignoreLastError()
this._host = '0.0.0.0' // try IPv4
isAny6 = false
return listen()
}
this._port, this._backlog,
(result) => {
// callback may be after close
if (this.id !== socketId) {
ignoreLastError()
return
}
if (result !== 0 && isAny6) {
ignoreLastError()
this._host = '0.0.0.0' // try IPv4
isAny6 = false
return listen()
}
this._onListen(result)
})
this._onListen(result)
})
listen()

@@ -786,3 +787,3 @@ })

if (sendInfo.resultCode < 0) {
this.destroy(exceptionWithHostPort(sendInfo.resultCode, 'write', this.remoteAddress, this.remotePort), callback)
this._destroy(exceptionWithHostPort(sendInfo.resultCode, 'write', this.remoteAddress, this.remotePort), callback)
} else {

@@ -1005,3 +1006,3 @@ this._unrefTimer()

chrome.sockets.tcp.setKeepAlive(this.id, !!enable, ~~(initialDelay / 1000),
chromeCallbackWrap(callback))
chromeCallbackWrap(callback))

@@ -1119,3 +1120,3 @@ return this

// This prevents "Unchecked runtime.lastError" errors
// This prevents "Unchecked runtime.lastError" errors
function ignoreLastError () {

@@ -1122,0 +1123,0 @@ void chrome.runtime.lastError // call the getter function

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

@@ -17,3 +17,3 @@ "bugs": {

"devDependencies": {
"browserify": "^13.0.0",
"browserify": "^14.0.0",
"chrome-dgram": "^2.0.6",

@@ -24,3 +24,3 @@ "envify": "^3.2.0",

"run-auto": "^2.0.0",
"standard": "^7.1.2",
"standard": "*",
"tape": "^4.0.0",

@@ -27,0 +27,0 @@ "through": "2.x"

@@ -1,3 +0,10 @@

# chrome-net [![npm](https://img.shields.io/npm/v/chrome-net.svg)](https://npmjs.org/package/chrome-net) [![downloads](https://img.shields.io/npm/dm/chrome-net.svg)](https://npmjs.org/package/chrome-net)
# chrome-net [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
[npm-image]: https://img.shields.io/npm/v/chrome-net.svg
[npm-url]: https://npmjs.org/package/chrome-net
[downloads-image]: https://img.shields.io/npm/dm/chrome-net.svg
[downloads-url]: https://npmjs.org/package/chrome-net
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[standard-url]: https://standardjs.com
### Use the Node `net` API in Chrome Apps

@@ -4,0 +11,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc