Socket
Socket
Sign inDemoInstall

chrome-net

Package Overview
Dependencies
3
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.1 to 2.4.2

16

index.js

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

/*global chrome */
/**

@@ -135,3 +137,5 @@ * net

/*eslint-disable no-unused-vars*/
var options
/*eslint-enable no-unused-vars*/

@@ -215,3 +219,2 @@ if (is.isFunction(arguments[0])) {

})
})

@@ -326,3 +329,2 @@ })

inherits(Socket, stream.Duplex)

@@ -452,6 +454,6 @@

Socket.prototype.connect = function () {
var args = normalizeConnectArgs(arguments)
var self = this
var self = this
var args = normalizeConnectArgs(arguments)
var options = args[0]
var cb = args[1]
var cb = args[1]

@@ -478,4 +480,4 @@ if (self._connecting)

if (result < 0) {
self.destroy(new Error('Socket ' + self.id + ' connect error ' + result
+ ': ' + chrome.runtime.lastError.message))
self.destroy(new Error('Socket ' + self.id + ' connect error ' + result +
': ' + chrome.runtime.lastError.message))
return

@@ -482,0 +484,0 @@ }

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

@@ -24,2 +24,3 @@ "bugs": {

"portfinder": "0.x",
"standard": "^2.7.1",
"tape": "^3.4.0",

@@ -46,4 +47,4 @@ "through": "2.x"

"scripts": {
"test": "tape test/*.js"
"test": "standard && tape test/*.js"
}
}

@@ -1,4 +0,4 @@

/* global chrome */
/*global chrome */
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.runtime.onLaunched.addListener(function () {
chrome.app.window.create('window.html', {

@@ -9,3 +9,3 @@ 'bounds': {

}
});
});
})
})

@@ -20,3 +20,3 @@ var net = require('../../')

client.connect(PORT,'127.0.0.1')
client.connect(PORT, '127.0.0.1')
client.write('beep')

@@ -28,3 +28,2 @@

// streaming

@@ -31,0 +30,0 @@ // var through = require('through')

@@ -29,3 +29,2 @@ var net = require('../../')

// streaming

@@ -35,2 +34,2 @@ // var through = require('through')

// console.log(bops.to(data))
// }))
// }))

@@ -46,2 +46,2 @@ var dgram = require('chrome-dgram')

server.listen(LISTEN_PORT)
server.listen(LISTEN_PORT)

@@ -24,3 +24,3 @@ var net = require('../../')

client.write(new Buffer('|beep|').slice(1,5))
client.write(new Buffer('|beep|').slice(1, 5))

@@ -31,3 +31,2 @@ // TODO:

// streaming

@@ -34,0 +33,0 @@ // var through = require('through')

@@ -8,3 +8,3 @@ var browserify = require('browserify')

var CHROME = process.env.CHROME||'/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary'
var CHROME = process.env.CHROME || '/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary'
var BUNDLE_PATH = path.join(__dirname, 'chrome-app/bundle.js')

@@ -29,4 +29,4 @@

// chrome 40.0.2188.2 won't open extensions without absolute path.
var app = path.join(__dirname, '..','test/chrome-app');
var command = CHROME + ' --load-and-launch-app='+app;
var app = path.join(__dirname, '..', 'test/chrome-app')
var command = CHROME + ' --load-and-launch-app=' + app
var env = { cwd: path.join(__dirname, '..') }

@@ -33,0 +33,0 @@

@@ -38,2 +38,2 @@ var chromeNet = require('../')

t.end()
})
})

@@ -51,3 +51,2 @@ var async = require('async')

})
} else if (message.toString() === 'end') {

@@ -63,2 +62,2 @@ t.pass('Client stream ended correctly')

})
})
})

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

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