Permalink
Browse files

add compatibility with node v0.8.x - maintaining support for >= 0.6.13

  • Loading branch information...
1 parent 30ad382 commit 4423471c3709aa181d961ab8428c321269d3a169 Dane Springmeyer committed Jun 28, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −2 package.json
  2. +0 −2 src/node_zipfile.cpp
View
@@ -1,6 +1,6 @@
{
"name" : "zipfile",
- "version" : "0.3.1",
+ "version" : "0.3.2",
"main" : "./lib/index.js",
"description" : "C++ library for handling zipfiles in node",
"keywords" : ["zipfile", "uncompress", "unzip", "zlib"],
@@ -27,7 +27,7 @@
"examples" : "examples",
"src": "src"
},
- "engines" : { "node": ">=0.6.0 <0.7" },
+ "engines" : { "node": ">= 0.6.13 && < 0.9.0" },
"scripts" : {
"install" : "node-waf configure build",
"test" : "make test"
View
@@ -218,7 +218,6 @@ Handle<Value> ZipFile::readFile(const Arguments& args) {
closure->name = name;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(args[args.Length()-1]));
uv_queue_work(uv_default_loop(), &closure->request, Work_ReadFile, Work_AfterReadFile);
- uv_ref(uv_default_loop());
zf->Ref();
return Undefined();
}
@@ -292,7 +291,6 @@ void ZipFile::Work_AfterReadFile(uv_work_t* req) {
}
zip_close(closure->za);
closure->zf->Unref();
- uv_unref(uv_default_loop());
closure->cb.Dispose();
delete closure;
}

0 comments on commit 4423471

Please sign in to comment.