Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/exec

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/exec - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

4

package.json

@@ -30,4 +30,4 @@ {

},
"version": "0.3.10",
"gitHead": "268ba21b7baabf2650421828f15603ffad7374e9"
"version": "0.3.11",
"gitHead": "a00705e43a736686278b69b58225d49d970ad1cb"
}

@@ -68,2 +68,3 @@ import * as child_process from 'child_process';

public tty: boolean = false;
public daemon: boolean = false;

@@ -83,3 +84,3 @@ public volumes: { [key: string]: string } = {};

]).join(' ');
const [proc, prom] = ExecUtil.spawn(cmd, { shell: false });
const [proc, prom] = ExecUtil.spawn(cmd, { shell: this.tty });
if (op !== 'run' && op !== 'exec') {

@@ -125,2 +126,7 @@ prom.catch(e => { this.evict = true; });

addEnvVars(vars: { [key: string]: string }) {
Object.assign(this.env, vars);
return this;
}
addVolume(local: string, container: string) {

@@ -151,2 +157,7 @@ this.volumes[local] = container;

setDaemon(on: boolean) {
this.daemon = on;
return this;
}
getFlags(extra?: string[]) {

@@ -169,2 +180,5 @@ const flags = [];

}
if (this.daemon) {
flags.push('-d');
}
for (const k of Object.keys(this.volumes)) {

@@ -171,0 +185,0 @@ flags.push('-v', `${k}:${this.volumes[k]}`);

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