New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0.10 to 0.0.11

src/docker.ts

6

package.json

@@ -10,3 +10,5 @@ {

"@types/cross-spawn": "^6.0.0",
"cross-spawn": "^6.0.5"
"@types/rimraf": "^2.0.2",
"cross-spawn": "^6.0.5",
"rimraf": "^2.6.2"
},

@@ -20,3 +22,3 @@ "description": "",

},
"version": "0.0.10"
"version": "0.0.11"
}

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

export class ChildExecution<U extends ExecutionEvent = ExecutionEvent> extends Execution<U, child_process.ChildProcess> {
constructor(public command: string, public fork = false, public opts: ChildOptions = {}) {

@@ -39,2 +40,17 @@ super();

async waitForComplete() {
await this._init();
return new Promise((resolve, reject) => {
this._proc.on('close', () => {
resolve();
});
this._proc.on('exit', () => {
resolve();
});
this._proc.on('error', (err) => {
reject(err);
});
});
}
kill() {

@@ -41,0 +57,0 @@ if (this._proc) {

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

valid: boolean;
killed?: boolean;
}

@@ -17,0 +18,0 @@

@@ -47,3 +47,3 @@ import * as cp from 'child_process';

}
finish({ code: 1, stderr, stdout, message: `Execution timed out after: ${timeout} ms`, valid: false });
finish({ code: 1, stderr, stdout, message: `Execution timed out after: ${timeout} ms`, valid: false, killed: true });
}, timeout);

@@ -67,3 +67,3 @@ }

type WithOpts<T> = T & ExecutionOptions;
export type WithOpts<T> = T & ExecutionOptions;

@@ -70,0 +70,0 @@ export function spawn(cmdStr: string, options: WithOpts<cp.SpawnOptions> = {}): [cp.ChildProcess, Promise<ExecutionResult>] {

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