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.0.34 to 0.0.35

2

package.json

@@ -17,3 +17,3 @@ {

},
"version": "0.0.34"
"version": "0.0.35"
}

@@ -25,2 +25,29 @@ import * as child_process from 'child_process';

static async waitForPort(port: number, ms = 5000) {
const start = Date.now();
while ((Date.now() - start) < ms) {
try {
await new Promise((res, rej) => {
try {
const sock = net.createConnection(port, 'localhost', (err: any, succ: any) => {
if (err) {
rej(err);
} else {
sock.destroy();
res(succ);
}
});
sock.on('error', rej);
} catch (e) {
rej(e);
}
});
return;
} catch (e) {
await new Promise(res => setTimeout(res, 50));
}
}
throw new Error('Could not acquire port');
}
private cmd: string = 'docker';

@@ -114,29 +141,2 @@ private _proc: CommonProcess;

async waitForPort(port: number, ms = 5000) {
const start = Date.now();
while ((Date.now() - start) < ms) {
try {
await new Promise((res, rej) => {
try {
const sock = net.createConnection(port, 'localhost', (err: any, succ: any) => {
if (err) {
rej(err);
} else {
sock.destroy();
res(succ);
}
});
sock.on('error', rej);
} catch (e) {
rej(e);
}
});
return;
} catch (e) {
await new Promise(res => setTimeout(res, 50));
}
}
throw new Error('Could not acquire port');
}
getFlags(extra?: string[]) {

@@ -143,0 +143,0 @@ const flags = [];

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