Comparing version 7.0.0 to 7.0.1
@@ -26,12 +26,18 @@ "use strict"; | ||
if (detect_node_1.default && (currentIsLatestVersion || !newState.write)) { | ||
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires | ||
const AsyncLocalStorage = require('async_hooks').AsyncLocalStorage; | ||
const asyncLocalStorage = new AsyncLocalStorage(); | ||
newState = { | ||
...newState, | ||
...createNodeWriter_1.default(), | ||
asyncLocalStorage, | ||
}; | ||
try { | ||
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires | ||
const AsyncLocalStorage = require('async_hooks').AsyncLocalStorage; | ||
const asyncLocalStorage = new AsyncLocalStorage(); | ||
newState = { | ||
...newState, | ||
...createNodeWriter_1.default(), | ||
asyncLocalStorage, | ||
}; | ||
} | ||
catch (_a) { | ||
// eslint-disable-next-line no-console | ||
console.warn('async_hooks are unavailable; Roarr.child will not function as expected'); | ||
} | ||
} | ||
return newState; | ||
}; |
@@ -81,3 +81,3 @@ { | ||
"typings": "./dist/src/log.d.ts", | ||
"version": "7.0.0" | ||
"version": "7.0.1" | ||
} |
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
65205
1248