New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 2.0.1 to 2.1.0

14

builders/AbstractBuilder.js

@@ -104,3 +104,3 @@ "use strict";

_a.trys.push([8, 11, , 12]);
return [4 /*yield*/, this.runStep('beforePublish', '', this.beforePublish)];
return [4 /*yield*/, this.runStep('beforePublish', 'running beforePublish', this.beforePublish)];
case 9:

@@ -185,3 +185,3 @@ _a.sent();

_a.trys.push([1, 4, , 5]);
return [4 /*yield*/, this.runStep('beforePublish', '', this.beforePublish)];
return [4 /*yield*/, this.runStep('beforePublish', 'running beforePublish', this.beforePublish)];
case 2:

@@ -199,3 +199,3 @@ _a.sent();

_a.trys.push([5, 7, , 8]);
return [4 /*yield*/, this.runStep('afterPublish', '', this.afterPublish)];
return [4 /*yield*/, this.runStep('afterPublish', 'running afterPublish', this.afterPublish)];
case 6:

@@ -228,11 +228,11 @@ _a.sent();

_a.trys.push([1, 7, , 8]);
return [4 /*yield*/, this.runStep('beforeVerifyPullRequest', '', this.beforeVerifyPullRequest)];
return [4 /*yield*/, this.runStep('beforeVerifyPullRequest', 'running beforeVerifyPullRequest', this.beforeVerifyPullRequest)];
case 2:
_a.sent();
if (!(this.env.pullRequestBranch === 'release')) return [3 /*break*/, 4];
return [4 /*yield*/, this.runStep('verifyRelease', '', this.verifyRelease)];
return [4 /*yield*/, this.runStep('verifyRelease', 'verifying release', this.verifyRelease)];
case 3:
_a.sent();
return [3 /*break*/, 6];
case 4: return [4 /*yield*/, this.runStep('verifyNonRelease', '', this.verifyNonRelease)];
case 4: return [4 /*yield*/, this.runStep('verifyNonRelease', 'verifying non-release', this.verifyNonRelease)];
case 5:

@@ -247,3 +247,3 @@ _a.sent();

_a.trys.push([8, 10, , 11]);
return [4 /*yield*/, this.runStep('afterVerifyPullRequest', '', this.afterVerifyPullRequest)];
return [4 /*yield*/, this.runStep('afterVerifyPullRequest', 'running afterVerifyPullRequest', this.afterVerifyPullRequest)];
case 9:

@@ -250,0 +250,0 @@ _a.sent();

@@ -9,2 +9,3 @@ "use strict";

var Util_1 = require("../Util");
var services_1 = require("../services");
var AbstractBuilder_1 = require("./AbstractBuilder");

@@ -20,2 +21,5 @@ var NPMBuilder = /** @class */ (function (_super) {

var mocha = new Mocha();
if (_this.env.ci === services_1.CI.TRAVIS) {
mocha.useColors(true);
}
mocha.addFile('build/test/index.js');

@@ -22,0 +26,0 @@ mocha.run(function (failures) {

{
"name": "@ioffice/tc-builder",
"version": "2.0.1",
"version": "2.1.0",
"description": "iOFFICE TeamCity Builder",

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

@@ -5,2 +5,3 @@ "use strict";

var Util_1 = require("../Util");
var colors = require("colors");
var IO = /** @class */ (function () {

@@ -67,2 +68,5 @@ function IO(env) {

this.log("travis_fold:start:" + name);
if (desc) {
this.log(colors.yellow(desc));
}
}

@@ -113,3 +117,8 @@ else {

}
Util_1.util.writeJSON(data, fileName);
if (data.errors.length === 0 && data.warnings.length === 0) {
// remove file since there is no content?
}
else {
Util_1.util.writeJSON(data, fileName);
}
};

@@ -116,0 +125,0 @@ IO.warnings = [];

@@ -53,3 +53,2 @@ interface IField {

protected createAttachment(): Partial<IAttachment>;
private createMessage;
private sendMessage;

@@ -56,0 +55,0 @@ }

@@ -19,3 +19,3 @@ "use strict";

return tslib_1.__awaiter(this, void 0, void 0, function () {
var attachment, message_1, promises, err_1;
var attachment_1, promises, err_1;
var _this = this;

@@ -31,7 +31,6 @@ return tslib_1.__generator(this, function (_a) {

_a.trys.push([1, 3, , 4]);
attachment = this.createAttachment();
message_1 = this.createMessage(attachment);
attachment_1 = this.createAttachment();
promises = this.env.slackChannels.map(function (item) {
var _a = item.split('#'), token = _a[0], channel = _a[1];
return _this.sendMessage(token, channel, message_1);
return _this.sendMessage(token, channel, attachment_1);
});

@@ -126,3 +125,3 @@ return [4 /*yield*/, Promise.all(promises)];

title_link: this.getTitleLink(),
text: "The _" + buildType + "_ build for the `" + buildBranch + "` branch " + statusMessage,
text: "The _" + buildType + "_ build for the *" + buildBranch + "* branch " + statusMessage,
fields: this.getFields(),

@@ -132,10 +131,8 @@ actions: this.getActions(),

};
AbstractSlack.prototype.createMessage = function (attachment) {
return {
AbstractSlack.prototype.sendMessage = function (token, channel, attachment) {
var body = {
channel: channel,
'as_user': true,
'attachments': [attachment],
};
};
AbstractSlack.prototype.sendMessage = function (token, channel, body) {
body['channel'] = channel;
var options = {

@@ -142,0 +139,0 @@ method: 'POST',

@@ -25,2 +25,3 @@ "use strict";

_a.sent();
console['log']('Success');
return [3 /*break*/, 4];

@@ -27,0 +28,0 @@ case 3:

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