@tracerbench/spawn
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
44446
6
1
4
+ Addeddebug@^4.1.1
+ Addedcross-spawn@7.0.3(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedexeca@2.1.0(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedis-stream@2.0.1(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedmimic-fn@2.1.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addednpm-run-path@3.1.0(transitive)
+ Addedonetime@5.1.2(transitive)
+ Addedp-finally@2.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedstrip-final-newline@2.0.0(transitive)
+ Addedwhich@2.0.2(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removedexeca@1.0.0(transitive)
- Removedget-stream@4.1.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removednice-try@1.0.5(transitive)
- Removednpm-run-path@2.0.2(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedstrip-eof@1.0.0(transitive)
- Removedwhich@1.3.1(transitive)
Updatedexeca@^2.0.2