@contrast/scopes
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -21,8 +21,7 @@ /* | ||
module.exports = function(deps) { | ||
const sources = new AsyncLocalStorage(); | ||
const instrumentation = new AsyncLocalStorage(); | ||
const sources = new AsyncLocalStorage(); | ||
// If not enabled or no store then we are NOT locked - not opt-in | ||
instrumentation.isLocked = function() { | ||
const store = instrumentation.getStore(); | ||
return store ? store.lock : false; | ||
return !!instrumentation.getStore()?.lock; | ||
}; | ||
@@ -29,0 +28,0 @@ |
{ | ||
"name": "@contrast/scopes", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
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
2
29464
13
757