thread-stream
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -31,3 +31,3 @@ 'use strict' | ||
const FinalizationRegistry = global.FinalizationRegistry || class FakeFinalizationRegistry { | ||
class FakeFinalizationRegistry { | ||
register () {} | ||
@@ -38,3 +38,6 @@ | ||
const WeakRef = global.WeakRef || FakeWeakRef | ||
// Currently using FinalizationRegistry with code coverage breaks the world | ||
// Ref: https://github.com/nodejs/node/issues/49344 | ||
const FinalizationRegistry = process.env.NODE_V8_COVERAGE ? FakeFinalizationRegistry : global.FinalizationRegistry || FakeFinalizationRegistry | ||
const WeakRef = process.env.NODE_V8_COVERAGE ? FakeWeakRef : global.WeakRef || FakeWeakRef | ||
@@ -41,0 +44,0 @@ const registry = new FinalizationRegistry((worker) => { |
{ | ||
"name": "thread-stream", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "A streaming way to send data to a Node.js Worker Thread", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
65540
1875
19