just-bash 2.11.14 → 2.11.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -315,11 +315,14 @@ function getBlockedGlobals() {
315
315
  }
316
316
 
317
317
  // src/security/defense-in-depth-box.ts
318
- import { AsyncLocalStorage } from "node:async_hooks";
319
318
  var IS_BROWSER = typeof __BROWSER__ !== "undefined" && __BROWSER__;
320
319
  var AsyncLocalStorageClass = null;
321
320
  if (!IS_BROWSER) {
322
- AsyncLocalStorageClass = AsyncLocalStorage;
321
+ try {
322
+ const { AsyncLocalStorage } = __require("node:async_hooks");
323
+ AsyncLocalStorageClass = AsyncLocalStorage;
324
+ } catch {
325
+ }
323
326
  }
324
327
  var executionContext = !IS_BROWSER && AsyncLocalStorageClass ? new AsyncLocalStorageClass() : null;
325
328