chrome-net
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -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() |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
8
182240
5376