continuation-local-storage
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -0,1 +1,5 @@ | ||
### 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): | ||
@@ -2,0 +6,0 @@ |
@@ -165,10 +165,8 @@ 'use strict'; | ||
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); } | ||
}); | ||
@@ -175,0 +173,0 @@ namespaces[name] = namespace; |
{ | ||
"name": "continuation-local-storage", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "userland implementation of https://github.com/joyent/node/issues/5243", | ||
@@ -34,3 +34,3 @@ "main": "context.js", | ||
"optionalDependencies": { | ||
"async-listener": "0.4.5" | ||
"async-listener": "0.4.7" | ||
}, | ||
@@ -37,0 +37,0 @@ "dependencies": { |
@@ -17,5 +17,5 @@ 'use strict'; | ||
t.equal(blerg.message, "explicitly nonlocal exit", "got the expected exception"); | ||
t.notOk(namespace.get('outer'), "outer context should have been exited by throw"); | ||
t.ok(namespace.get('outer'), "outer context is still active"); | ||
t.notOk(namespace.get('inner'), "inner context should have been exited by throw"); | ||
t.equal(namespace._set.length, 0, "should be back to global state"); | ||
t.equal(namespace._set.length, 1, "should be back to outer state"); | ||
@@ -22,0 +22,0 @@ cls.destroyNamespace('test'); |
@@ -357,3 +357,7 @@ 'use strict'; | ||
t.equal(stats.mode.toString(8), '120777', "permissions should be as created"); | ||
t.equal( | ||
(stats.mode ^ process.umask()).toString(8), | ||
'120777', | ||
"permissions should be as created" | ||
); | ||
@@ -360,0 +364,0 @@ deleteLink(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92056
24
2055