FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bump to v0.2.1 with node v0.6.x support · mapbox/node-eio@72dcc25 · GitHub

This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Repository navigation

Commit 72dcc25

Browse files
Dane Springmeyer
committed
bump to v0.2.1 with node v0.6.x support
1 parent 0e61c14 commit 72dcc25

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "eio",
33
"description": "Control libeio from JavaScript",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"author": {
66
"name": "Development Seed",
77
"url": "http://developmentseed.org/",
88
"email": "info@developmentseed.org"
99
},
1010
"engines": {
11-
"node": ">=0.8.x"
11+
"node": ">= 0.6.13 && < 0.11.0"
1212
},
1313
"licenses": [{ "type": "BSD" }],
1414
"main": "./lib/eio",

‎src/eio.cc‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ using namespace node;
1111
#if NODE_VERSION_AT_LEAST(0, 9, 4)
1212
// do nothing
1313
#else
14-
#if NODE_VERSION_AT_LEAST(0, 8, 0)
15-
#define LIBUV_HAS_EV
16-
#else
17-
#define LIBUV_HAS_EV
18-
#include <eio.h>
19-
#endif
14+
#define LIBUV_HAS_EV
2015
#endif
2116

2217
Handle<Value> SetMinParallel(const Arguments& args) {

‎test/threads.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('threads', function() {
1818

1919
it('should allow access to usage', function() {
2020
var ver = process.versions.node;
21-
if (!parseInt(ver.split('.')[1],10) >= 9) {
21+
if (parseInt(ver.split('.')[1],10) < 9) {
2222
assert.ok(eio.usage().requests !== undefined);
2323
assert.ok(eio.usage().active !== undefined);
2424
assert.ok(eio.usage().pending !== undefined);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL