@mongosh/node-runtime-worker-thread
Advanced tools
Comparing version 0.8.3 to 0.9.0
@@ -7,5 +7,5 @@ /// <reference types="node" /> | ||
export declare class ChildProcessEvaluationListener { | ||
exposedListener: Exposed<Required<RuntimeEvaluationListener>>; | ||
exposedListener: Exposed<Required<Omit<RuntimeEvaluationListener, 'onLoad'>>>; | ||
constructor(workerRuntime: WorkerRuntime, childProcess: ChildProcess); | ||
terminate(): void; | ||
} |
{ | ||
"name": "@mongosh/node-runtime-worker-thread", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"description": "MongoDB shell runtime that lives in a worker thread", | ||
@@ -40,7 +40,7 @@ "homepage": "https://github.com/mongodb-js/mongosh", | ||
"dependencies": { | ||
"@mongosh/browser-runtime-core": "0.8.3", | ||
"@mongosh/browser-runtime-electron": "0.8.3", | ||
"@mongosh/service-provider-core": "0.8.3", | ||
"@mongosh/service-provider-server": "0.8.3", | ||
"@mongosh/types": "0.8.3", | ||
"@mongosh/browser-runtime-core": "0.9.0", | ||
"@mongosh/browser-runtime-electron": "0.9.0", | ||
"@mongosh/service-provider-core": "0.9.0", | ||
"@mongosh/service-provider-server": "0.9.0", | ||
"@mongosh/types": "0.9.0", | ||
"bson": "^4.2.3", | ||
@@ -50,3 +50,3 @@ "interruptor": "^1.0.1", | ||
}, | ||
"gitHead": "074ca99cb2761198041089e6d8bf01a8c8ffabc7" | ||
"gitHead": "be8b2a857c1a6ea05ec598273c68b4703d7c5a54" | ||
} |
@@ -7,3 +7,3 @@ import { ChildProcess } from 'child_process'; | ||
export class ChildProcessEvaluationListener { | ||
exposedListener: Exposed<Required<RuntimeEvaluationListener>>; | ||
exposedListener: Exposed<Required<Omit<RuntimeEvaluationListener, 'onLoad'>>>; | ||
@@ -10,0 +10,0 @@ constructor(workerRuntime: WorkerRuntime, childProcess: ChildProcess) { |
@@ -18,3 +18,2 @@ /* istanbul ignore file */ | ||
import { SHARE_ENV, Worker } from 'worker_threads'; | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
@@ -26,9 +25,3 @@ import { exposeAll, createCaller } from './rpc'; | ||
const workerProcess = new Worker( | ||
// It's fine in this use-case: this process is spawned so we are not blocking | ||
// anything in the main process | ||
// eslint-disable-next-line no-sync | ||
fs.readFileSync(workerRuntimeSrcPath, 'utf8'), | ||
{ env: SHARE_ENV, eval: true } | ||
); | ||
const workerProcess = new Worker(workerRuntimeSrcPath, { env: SHARE_ENV }); | ||
@@ -35,0 +28,0 @@ // We expect the amount of listeners to be more than the default value of 10 but |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
3827241
4
13306
+ Added@mongosh/async-rewriter@0.9.0(transitive)
+ Added@mongosh/autocomplete@0.9.0(transitive)
+ Added@mongosh/browser-runtime-core@0.9.0(transitive)
+ Added@mongosh/browser-runtime-electron@0.9.0(transitive)
+ Added@mongosh/errors@0.9.0(transitive)
+ Added@mongosh/history@0.9.0(transitive)
+ Added@mongosh/i18n@0.9.0(transitive)
+ Added@mongosh/service-provider-core@0.9.0(transitive)
+ Added@mongosh/service-provider-server@0.9.0(transitive)
+ Added@mongosh/shell-api@0.9.0(transitive)
+ Added@mongosh/shell-evaluator@0.9.0(transitive)
+ Added@mongosh/types@0.9.0(transitive)
- Removed@mongosh/async-rewriter@0.8.3(transitive)
- Removed@mongosh/autocomplete@0.8.3(transitive)
- Removed@mongosh/browser-runtime-core@0.8.3(transitive)
- Removed@mongosh/browser-runtime-electron@0.8.3(transitive)
- Removed@mongosh/errors@0.8.3(transitive)
- Removed@mongosh/history@0.8.3(transitive)
- Removed@mongosh/i18n@0.8.3(transitive)
- Removed@mongosh/service-provider-core@0.8.3(transitive)
- Removed@mongosh/service-provider-server@0.8.3(transitive)
- Removed@mongosh/shell-api@0.8.3(transitive)
- Removed@mongosh/shell-evaluator@0.8.3(transitive)
- Removed@mongosh/types@0.8.3(transitive)
Updated@mongosh/types@0.9.0