Socket
Socket
Sign inDemoInstall

tsc-watch

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsc-watch - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

0

example/main.js
setInterval(() => console.log(Math.random()), 1000);
setInterval(() => console.log(Math.random()), 1000);

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ const psTree = require('ps-tree');

2

package.json
{
"name": "tsc-watch",
"version": "1.0.7",
"version": "1.0.8",
"description": "The TypeScirpt compiler with onSuccess command",

@@ -5,0 +5,0 @@ "main": "tsc-watch.js",

@@ -0,0 +0,0 @@ # The TypeScript compiler with `--watch` and a new onSuccess argument

@@ -20,3 +20,5 @@ #!/usr/bin/env node

let firstSuccessProcess = null;
let firstSuccessProcessExited = null;
let successProcess = null;
let successProcessExited = null;

@@ -68,2 +70,3 @@ function color(line) {

promises.push(killer(firstSuccessProcess).then(() => firstSuccessProcess = null));
promises.push(firstSuccessProcessExited.then(() => firstSuccessProcessExited = null));
}

@@ -73,2 +76,3 @@

promises.push(killer(successProcess).then(() => successProcess = null));
promises.push(successProcessExited.then(() => successProcessExited = null));
}

@@ -130,4 +134,14 @@

firstSuccessProcess = runCommand(onFirstSuccessCommand);
firstSuccessProcessExited = new Promise(resolve => {
firstSuccessProcess.on('exit', code => {
resolve(code);
});
});
} else if (onSuccessCommand) {
successProcess = runCommand(onSuccessCommand);
successProcessExited = new Promise(resolve => {
successProcess.on('exit', code => {
resolve(code);
});
});
}

@@ -134,0 +148,0 @@ });

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