Socket
Socket
Sign inDemoInstall

@tracerbench/spawn

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tracerbench/spawn - npm Package Compare versions

Comparing version 1.0.0-beta.4 to 1.0.0

4

dist/index.d.ts

@@ -1,3 +0,3 @@

export { default as default } from './spawn';
export * from '../types';
export { default } from "./spawn";
export * from "../types";
//# sourceMappingURL=index.d.ts.map

@@ -9,9 +9,9 @@ "use strict";

function spawn(executable, args, stdio = "ignore", transport = "pipe") {
debugCallback("spawn executable", executable);
debugCallback("spawn args", args);
const child = execa(executable, args, {
const opts = {
// disable buffer, pipe or drain
buffer: false,
stdio: stdioFor(stdio, transport),
});
};
debugCallback("execa(%o, %O, %O)", executable, args, opts);
const child = execa(executable, args, opts);
// even though the child promise is a promise of exit

@@ -18,0 +18,0 @@ // it rejects on being signalled

{
"name": "@tracerbench/spawn",
"version": "1.0.0-beta.4",
"version": "1.0.0",
"description": "High level spawn API for spawning process with a connection to the DevTools protocol.",

@@ -17,19 +17,20 @@ "license": "BSD-2-Clause",

"build:clean": "rm -rf dist && yarn run build",
"lint": "tslint -p tsconfig.json",
"prepare": "yarn run build"
},
"dependencies": {
"@tracerbench/message-transport": "^1.0.0-beta.2",
"execa": "^1.0.0",
"@tracerbench/message-transport": "^1.0.0",
"debug": "^4.1.1",
"execa": "^2.0.2",
"race-cancellation": "^0.4.1"
},
"devDependencies": {
"@types/execa": "^0.9.0",
"@types/node": "*",
"prettier": "^1.17.1",
"tslint": "^5.17.0",
"prettier": "^1.18.2",
"tslint": "^5.18.0",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1",
"typescript": "^3.5.1"
"typescript": "^3.5.2"
},
"gitHead": "f2a70d76e1e4817b51d1c3989c4f03d4c5d14994"
"gitHead": "542099111824b11d9409358214732a284cf4291d"
}

@@ -1,2 +0,2 @@

export { default as default } from './spawn';
export * from '../types';
export { default } from "./spawn";
export * from "../types";
import { AttachMessageTransport } from "@tracerbench/message-transport";
import newBufferSplitter from "./newBufferSplitter";

@@ -3,0 +4,0 @@ import newTaskQueue from "./newTaskQueue";

@@ -12,2 +12,3 @@ import { EventEmitter } from "events";

} from "race-cancellation";
import * as t from "../types";

@@ -14,0 +15,0 @@

import { ProcessWithPipeMessageTransport } from "../types";
import createPipeMessageTransport from "./newPipeMessageTransport";

@@ -3,0 +4,0 @@ import newProcess from "./newProcess";

import {
combineRaceCancellation,
RaceCancellation,
throwIfCancelled,
combineRaceCancellation,
} from "race-cancellation";
import { ProcessWithWebSocketUrl, Stdio } from "../types";
import newProcess from "./newProcess";

@@ -8,0 +10,0 @@ import newWebSocketUrlParser from "./newWebSocketUrlParser";

import { Transform, TransformCallback } from "stream";
import newBufferSplitter from "./newBufferSplitter";

@@ -3,0 +4,0 @@

import debug from "debug";
import execa = require("execa");
import * as t from "../types";
import newProcessWithPipeMessageTransport from "./newProcessWithPipeMessageTransport";

@@ -26,11 +28,11 @@ import newProcessWithWebSocketUrl from "./newProcessWithWebSocketUrl";

): t.TransportMapping[t.Transport] {
debugCallback("spawn executable", executable);
debugCallback("spawn args", args);
const child = execa(executable, args, {
const opts: execa.Options = {
// disable buffer, pipe or drain
buffer: false,
stdio: stdioFor(stdio, transport),
} as any);
};
debugCallback("execa(%o, %O, %O)", executable, args, opts);
const child = execa(executable, args, opts);
// even though the child promise is a promise of exit

@@ -55,3 +57,3 @@ // it rejects on being signalled

transport: "pipe" | "websocket",
) {
): readonly execa.StdioOption[] {
if (transport === "pipe") {

@@ -58,0 +60,0 @@ return [stdio, stdio, stdio, "pipe", "pipe"];

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc