Socket
Socket
Sign inDemoInstall

thread-stream

Package Overview
Dependencies
1
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.0 to 2.7.0

test/pkg/index.js

4

lib/worker.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc