Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

continuation-local-storage

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

continuation-local-storage - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

.eslintrc

4

CHANGELOG.md

@@ -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 @@

14

context.js

@@ -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();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc