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

@ioffice/tc-builder

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ioffice/tc-builder - npm Package Compare versions

Comparing version 1.2.1-beta.1805041405 to 1.2.1-beta.1805041520

6

Compiler.js

@@ -223,6 +223,10 @@ "use strict";

};
var sample = message.references[0];
var failed = message.count > messageMap[type];
var needsReadjustment = message.count < messageMap[type];
failureStatus.needsReadjustment = failureStatus.needsReadjustment || needsReadjustment;
if (message.references[0].message.category === 'error') {
if (!sample) {
// There are no errors for this type ...
}
else if (sample.message.category === 'error') {
failureStatus.errorCounter -= message.count;

@@ -229,0 +233,0 @@ failureStatus.errorException = failureStatus.errorException || failed;

39

Formatter.js

@@ -131,3 +131,4 @@ "use strict";

if (failed) {
buf.push(msg[2].toString().red + " found, " + msg[3].toString().yellow + " allowed\n");
var allowed = msg[3] === -1 ? '' : ", " + msg[3].toString().yellow + " allowed";
buf.push(msg[2].toString().red + " found" + allowed + "\n");
}

@@ -142,15 +143,2 @@ else if (warn) {

}
function _formatSummary(buf, messages) {
var size = 0;
messages.forEach(function (msg) {
if (msg[0].length > size) {
size = msg[0].length;
}
});
messages.forEach(function (msg) {
buf.push(' ');
buf.push(align(msg[0], 'l', size).gray);
buf.push(" " + msg[1] + "\n");
});
}
function formatCIResults(byMessage, listLimit) {

@@ -193,24 +181,21 @@ if (listLimit === void 0) { listLimit = 5; }

}
var types = Object.keys(projectStatus.exceptions).sort();
var allTypes = Array.from(new Set(Object.keys(projectResults.byMessage).concat(Object.keys(projectStatus.exceptions)))).sort();
var messages = [];
types.forEach(function (type) {
allTypes.forEach(function (type) {
var exception = projectStatus.exceptions[type];
messages.push([exception.failed, exception.type, exception.found, exception.allowed]);
if (exception) {
messages.push([exception.failed, exception.type, exception.found, exception.allowed]);
}
else {
messages.push([true, type, projectResults.byMessage[type].count, -1]);
}
});
_formatExceptions(buffer, messages);
var exceptions = messages.length ? 'EXCEPTIONS:'.magenta + "\n\n" + buffer.join('') : '';
var exceptions = messages.length ? 'STATS:'.magenta + "\n\n" + buffer.join('') : '';
buffer.length = 0;
var allTypes = Object.keys(projectResults.byMessage).sort();
var stats = [];
allTypes.forEach(function (type) {
stats.push([type, projectResults.byMessage[type].count]);
});
_formatSummary(buffer, stats);
var statsMsg = 'STATS:'.cyan + "\n\n" + buffer.join('');
buffer.length = 0;
if (projectStatus.status === Interfaces_1.ExitCode.NEEDS_READJUSTMENT) {
return exceptions + "\n\nPlease update 'package.json' to save our progress.\n";
}
return allMessages + "\n\n" + statsMsg + "\n\n" + exceptions;
return allMessages + "\n\n" + exceptions;
}
exports.formatProjectResults = formatProjectResults;
{
"name": "@ioffice/tc-builder",
"version": "1.2.1-beta.1805041405",
"version": "1.2.1-beta.1805041520",
"description": "iOFFICE TeamCity Builder",

@@ -5,0 +5,0 @@ "main": "index.js",

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