async-local-storage
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -74,2 +74,5 @@ const asyncHooks = require('async_hooks'); | ||
function getCurrentId() { | ||
if (asyncHooks.executionAsyncId) { | ||
return asyncHooks.executionAsyncId(); | ||
} | ||
return asyncHooks.currentId() || currentId; | ||
@@ -76,0 +79,0 @@ } |
{ | ||
"name": "async-local-storage", | ||
"description": "Get the value like thread-local storage in threaded programming", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"author": "Tree Xie <vicansocanbico@gmail.com>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
14892
387