thread-stream
Advanced tools
Comparing version 2.6.0 to 2.7.0
@@ -47,4 +47,6 @@ 'use strict' | ||
worker = realRequire(decodeURIComponent(filename.replace('file://', ''))) | ||
} else if (error.code === undefined) { | ||
} else if (error.code === undefined || error.code === 'ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING') { | ||
// When bundled with pkg, an undefined error is thrown when called with realImport | ||
// When bundled with pkg and using node v20, an ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING error is thrown when called with realImport | ||
// More info at: https://github.com/pinojs/thread-stream/issues/143 | ||
worker = realRequire(decodeURIComponent(filename.replace(process.platform === 'win32' ? 'file:///' : 'file://', ''))) | ||
@@ -51,0 +53,0 @@ } else { |
{ | ||
"name": "thread-stream", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"description": "A streaming way to send data to a Node.js Worker Thread", | ||
@@ -13,2 +13,3 @@ "main": "index.js", | ||
"@types/tap": "^15.0.0", | ||
"@yao-pkg/pkg": "^5.11.5", | ||
"desm": "^1.3.0", | ||
@@ -26,5 +27,5 @@ "fastbench": "^1.0.1", | ||
"scripts": { | ||
"test": "standard && npm run transpile && tap test/*.test.*js && tap --ts test/*.test.*ts", | ||
"test": "standard && npm run transpile && tap \"test/**/*.test.*js\" && tap --ts test/*.test.*ts", | ||
"test:ci": "standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts", | ||
"test:ci:js": "tap --no-check-coverage --coverage-report=lcovonly \"test/**/*.test.*js\"", | ||
"test:ci:js": "tap --no-check-coverage --timeout=120 --coverage-report=lcovonly \"test/**/*.test.*js\"", | ||
"test:ci:ts": "tap --ts --no-check-coverage --coverage-report=lcovonly \"test/**/*.test.*ts\"", | ||
@@ -31,0 +32,0 @@ "test:yarn": "npm run transpile && tap \"test/**/*.test.js\" --no-check-coverage", |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
69500
56
2011
13
20
2