Socket
Socket
Sign inDemoInstall

@mongosh/node-runtime-worker-thread

Package Overview
Dependencies
226
Maintainers
11
Versions
79
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.3 to 0.9.0

2

dist/child-process-evaluation-listener.d.ts

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

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