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.25 to 1.0.26

4

CHANGELOG.md
# @gilamran/tsc-watch CHANGELOG
## v1.0.25 - 20/07/2018
* Fixed hadErrors check (Thanks to @tombousso)
## v1.0.26 - 20/07/2018
* Fixed several issues with hadErrors check (Thanks to @tombousso)

@@ -6,0 +6,0 @@ ## v1.0.24 - 20/07/2018

#!/usr/bin/env node
'use strict';

@@ -76,40 +77,4 @@

function killAllProcesses(emitSuccess, emitFail) {
killAllSuccessProcesses().then(() => {
if (emitSuccess) {
Signal.emitSuccess();
}
if (firstTime && onFirstSuccessCommand) {
firstTime = false;
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);
});
});
}
});
killFailureProcess().then(() => {
if (emitFail) {
Signal.emitFail();
}
if (onFailureCommand) {
failureProcess = runCommand(onFailureCommand);
failureProcessExited = new Promise(resolve => {
failureProcess.on('exit', code => {
resolve(code);
});
});
}
});
function killAllProcesses() {
return Promise.all([killAllSuccessProcesses(), killFailureProcess()]);
}

@@ -184,3 +149,34 @@

if (compilationComplete) {
killAllProcesses(hadErrors === false, hadErrors === true);
killAllProcesses()
.then(() => {
if (hadErrors) {
Signal.emitFail();
if (onFailureCommand) {
failureProcess = runCommand(onFailureCommand);
failureProcessExited = new Promise(resolve => {
failureProcess.on('exit', code => {
resolve(code);
});
});
}
} else {
Signal.emitSuccess();
if (firstTime && onFirstSuccessCommand) {
firstTime = false;
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);
});
});
}
}
});
}

@@ -200,3 +196,3 @@ });

tscProcess.on('exit', () => killAllProcesses(false, false));
process.on('SIGTERM', () => tscProcess.kill(0));
tscProcess.on('exit', () => killAllProcesses());
process.on('SIGTERM', () => tscProcess.kill(0));
{
"name": "tsc-watch",
"version": "1.0.25",
"version": "1.0.26",
"description": "The TypeScript compiler with onSuccess command",

@@ -5,0 +5,0 @@ "scripts": {

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