Socket
Socket
Sign inDemoInstall

async-local-storage

Package Overview
Dependencies
3
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

3

index.js

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

2

package.json
{
"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": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc