Skip to content

Commit

Permalink
add compatibility with node v0.8.x - maintaining support for >= 0.6.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Jun 28, 2012
1 parent 30ad382 commit 4423471
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
@@ -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"],
Expand All @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions src/node_zipfile.cpp
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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.