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

gulp-tsb

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-tsb - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

34

lib/builder.js

@@ -125,2 +125,3 @@ 'use strict';

var dependentFiles = [];
var newLastBuildVersion = new Map();
for (var _i = 0, _a = host.getScriptFileNames(); _i < _a.length; _i++) {

@@ -136,2 +137,3 @@ var fileName = _a[_i];

var semanticCheckInfo = new Map();
var seenAsDependentFile = new Set();
function workOnNext() {

@@ -142,2 +144,4 @@ var promise;

if (token.isCancellationRequested()) {
_log('[CANCEL]', '>>This compile run was cancelled<<');
newLastBuildVersion.clear();
resolve();

@@ -154,4 +158,4 @@ return;

}
// remeber when this was build
lastBuildVersion[fileName] = host.getScriptVersion(fileName);
// remember when this was build
newLastBuildVersion.set(fileName, host.getScriptVersion(fileName));
// remeber the signature

@@ -211,11 +215,17 @@ if (value.signature && lastDtsHash[fileName] !== value.signature) {

fileName = dependentFiles.pop();
var value = semanticCheckInfo.get(fileName);
if (value === 0) {
// already validated successfully -> look at dependents next
host.collectDependents(fileName, dependentFiles);
while (fileName && seenAsDependentFile.has(fileName)) {
fileName = dependentFiles.pop();
}
else if (typeof value === 'undefined') {
// first validate -> look at dependents next
dependentFiles.push(fileName);
toBeCheckedSemantically.push(fileName);
if (fileName) {
seenAsDependentFile.add(fileName);
var value = semanticCheckInfo.get(fileName);
if (value === 0) {
// already validated successfully -> look at dependents next
host.collectDependents(fileName, dependentFiles);
}
else if (typeof value === 'undefined') {
// first validate -> look at dependents next
dependentFiles.push(fileName);
toBeCheckedSemantically.push(fileName);
}
}

@@ -239,2 +249,6 @@ }

}).then(function () {
// store the build versions to not rebuilt the next time
newLastBuildVersion.forEach(function (value, key) {
lastBuildVersion[key] = value;
});
// print old errors and keep them

@@ -241,0 +255,0 @@ utils.collections.forEach(oldErrors, function (entry) {

{
"name": "gulp-tsb",
"version": "1.5.0",
"version": "1.5.1",
"author": "Johannes Rieken <johannes.rieken@gmail.com>",

@@ -5,0 +5,0 @@ "description": "A gulp plugin for very fast TypeScript compilation.",

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