chrome-net
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -793,4 +793,3 @@ /*global chrome */ | ||
Socket.prototype._onReceive = function (data) { | ||
// assuming buffer is browser implementation (`buffer` package on npm) | ||
var buffer = Buffer._augment(new Uint8Array(data)) | ||
var buffer = new Buffer(data) | ||
var offset = this.bytesRead | ||
@@ -1077,3 +1076,3 @@ | ||
function ignoreLastError () { | ||
chrome.runtime.lastError // call the getter function | ||
void chrome.runtime.lastError // call the getter function | ||
} | ||
@@ -1080,0 +1079,0 @@ |
{ | ||
"name": "chrome-net", | ||
"description": "Use the Node `net` API in Chrome Apps", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)", | ||
@@ -10,3 +10,4 @@ "bugs": { | ||
"contributors": [ | ||
"John Hiesey <john@hiesey.com>" | ||
"John Hiesey <john@hiesey.com>", | ||
"Jan Schär <jscissr@gmail.com>" | ||
], | ||
@@ -17,3 +18,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"browserify": "^12.0.1", | ||
"browserify": "^13.0.0", | ||
"chrome-dgram": "^2.0.6", | ||
@@ -20,0 +21,0 @@ "envify": "^3.2.0", |
@@ -5,8 +5,6 @@ # 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) | ||
This module lets you use the Node.js [net](http://nodejs.org/api/net.html) (TCP) API in [Chrome Packaged Apps](http://developer.chrome.com/apps/about_apps.html). | ||
This module lets you use the Node.js [net](https://nodejs.org/api/net.html) (TCP) API in [Chrome Packaged Apps](https://developer.chrome.com/apps/about_apps). | ||
Instead of learning the quirks of Chrome's `chrome.sockets` API for networking in Chrome Apps just **use the higher-level node API you're familiar with**. Then, compile your code with [browserify](https://github.com/substack/node-browserify) and you're all set! | ||
This module is used by [webtorrent](https://github.com/feross/webtorrent). | ||
## install | ||
@@ -64,10 +62,10 @@ | ||
See nodejs.org for full API documentation: [net](http://nodejs.org/api/net.html) | ||
See nodejs.org for full API documentation: [net](https://nodejs.org/api/net.html) | ||
## contribute | ||
To run tests, use `npm test`. The tests will run TCP and UDP servers and launch a few different Chrome Packaged Apps with browserified client code. The tests currently require Chrome Canary on Mac. If you're on Windows or Linux, feel free to send a pull request to fix this limitation. | ||
To run tests, use `npm test`. The tests will run TCP and UDP servers and launch a few different Chrome Packaged Apps with browserified client code. The tests currently require Chrome on Windows or Chrome Canary on Mac. If you're on Linux, feel free to send a pull request to fix this limitation. | ||
## license | ||
MIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org) & John Hiesey. | ||
MIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org), John Hiesey & Jan Schär. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
19
305110
9196
70