Skip to content

Commit

Permalink
context: upgrade to async-listener@0.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
othiym23 committed Jul 29, 2014
1 parent 6680691 commit ad12dd4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
### v3.1.0 (2014-07-28):

* Updated to use `async-listener@0.4.7` to pick up bug fixes.

### v3.0.0 (2013-12-14):

* Removed the notion of a "default" or "global" context per namespace. It only
Expand Down
14 changes: 6 additions & 8 deletions context.js
Expand Up @@ -162,14 +162,12 @@ function create(name) {
assert.ok(name, "namespace must be given a name!");

var namespace = new Namespace(name);
namespace.id = process.addAsyncListener(
function () { return namespace.active; },
{
before : function (context, domain) { if (domain) namespace.enter(domain); },
after : function (context, domain) { if (domain) namespace.exit(domain); },
error : function (domain) { if (domain) namespace.exit(domain); }
}
);
namespace.id = process.addAsyncListener({
create : function () { return namespace.active; },
before : function (context, storage) { if (storage) namespace.enter(storage); },
after : function (context, storage) { if (storage) namespace.exit(storage); },
error : function (storage) { if (storage) namespace.exit(storage); }
});

namespaces[name] = namespace;
return namespace;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
"tap": "~0.4.2"
},
"optionalDependencies": {
"async-listener": "0.4.5"
"async-listener": "0.4.7"
},
"dependencies": {
"emitter-listener": "1.0.1"
Expand Down

0 comments on commit ad12dd4

Please sign in to comment.