buildkite-graph
Advanced tools
Comparing version
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -87,3 +87,2 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mapToObject = exports.exitStatusPredicate = exports.Chainable = exports.LabeledStep = exports.BranchLimitedStep = exports.Step = void 0; | ||
var ow_1 = __importDefault(require("ow")); | ||
@@ -116,3 +115,3 @@ var lodash_sortby_1 = __importDefault(require("lodash.sortby")); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -206,3 +205,4 @@ }); | ||
: _this.always || undefined, | ||
}); }), 'step']); | ||
}); }), | ||
'step']); | ||
/* eslint-disable @typescript-eslint/camelcase */ | ||
@@ -261,3 +261,3 @@ return [2 /*return*/, { | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -264,0 +264,0 @@ }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Conditional = void 0; | ||
var Conditional = /** @class */ (function () { | ||
@@ -5,0 +4,0 @@ function Conditional(guarded) { |
@@ -53,3 +53,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Pipeline = exports.serializers = exports.TriggerStep = exports.Plugin = exports.CommandStep = exports.Command = exports.TextField = exports.SelectField = exports.Option = exports.BlockStep = exports.Conditional = exports.Step = void 0; | ||
var slugify_1 = __importDefault(require("@sindresorhus/slugify")); | ||
@@ -65,18 +64,18 @@ var key_value_1 = require("./key_value"); | ||
var base_1 = require("./base"); | ||
Object.defineProperty(exports, "Step", { enumerable: true, get: function () { return base_1.Step; } }); | ||
exports.Step = base_1.Step; | ||
var conditional_1 = require("./conditional"); | ||
Object.defineProperty(exports, "Conditional", { enumerable: true, get: function () { return conditional_1.Conditional; } }); | ||
exports.Conditional = conditional_1.Conditional; | ||
var block_1 = require("./steps/block"); | ||
Object.defineProperty(exports, "BlockStep", { enumerable: true, get: function () { return block_1.BlockStep; } }); | ||
exports.BlockStep = block_1.BlockStep; | ||
var fields_1 = require("./steps/block/fields"); | ||
Object.defineProperty(exports, "Option", { enumerable: true, get: function () { return fields_1.Option; } }); | ||
Object.defineProperty(exports, "SelectField", { enumerable: true, get: function () { return fields_1.SelectField; } }); | ||
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return fields_1.TextField; } }); | ||
exports.Option = fields_1.Option; | ||
exports.SelectField = fields_1.SelectField; | ||
exports.TextField = fields_1.TextField; | ||
var command_1 = require("./steps/command"); | ||
Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return command_1.Command; } }); | ||
Object.defineProperty(exports, "CommandStep", { enumerable: true, get: function () { return command_1.CommandStep; } }); | ||
exports.Command = command_1.Command; | ||
exports.CommandStep = command_1.CommandStep; | ||
var plugins_1 = require("./steps/command/plugins"); | ||
Object.defineProperty(exports, "Plugin", { enumerable: true, get: function () { return plugins_1.Plugin; } }); | ||
exports.Plugin = plugins_1.Plugin; | ||
var trigger_1 = require("./steps/trigger"); | ||
Object.defineProperty(exports, "TriggerStep", { enumerable: true, get: function () { return trigger_1.TriggerStep; } }); | ||
exports.TriggerStep = trigger_1.TriggerStep; | ||
exports.serializers = { | ||
@@ -169,4 +168,3 @@ DotSerializer: dot_1.DotSerializer, | ||
return __awaiter(this, void 0, void 0, function () { | ||
var newOpts, _a, _b; | ||
var _c; | ||
var newOpts, _a, _b, _c; | ||
return __generator(this, function (_d) { | ||
@@ -183,11 +181,11 @@ switch (_d.label) { | ||
}; | ||
_c = {}; | ||
_a = {}; | ||
return [4 /*yield*/, this.env.toJson()]; | ||
case 1: | ||
_c.env = _d.sent(); | ||
_b = (_a = Promise).all; | ||
_a.env = _d.sent(); | ||
_c = (_b = Promise).all; | ||
return [4 /*yield*/, this.toList(newOpts)]; | ||
case 2: return [4 /*yield*/, _b.apply(_a, [(_d.sent()).map(function (s) { return s.toJson(newOpts); })])]; | ||
case 3: return [2 /*return*/, (_c.steps = _d.sent(), | ||
_c)]; | ||
case 2: return [4 /*yield*/, _c.apply(_b, [(_d.sent()).map(function (s) { return s.toJson(newOpts); })])]; | ||
case 3: return [2 /*return*/, (_a.steps = _d.sent(), | ||
_a)]; | ||
} | ||
@@ -194,0 +192,0 @@ }); |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -56,3 +56,2 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.KeyValueImpl = void 0; | ||
var ow_1 = __importDefault(require("ow")); | ||
@@ -59,0 +58,0 @@ var base_1 = require("./base"); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -68,4 +49,10 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DotSerializer = void 0; | ||
var graphviz = __importStar(require("graphviz")); | ||
@@ -72,0 +59,0 @@ var __1 = require("../"); |
@@ -39,3 +39,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.JsonSerializer = void 0; | ||
var JsonSerializer = /** @class */ (function () { | ||
@@ -42,0 +41,0 @@ function JsonSerializer(opts) { |
@@ -39,3 +39,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StructuralSerializer = void 0; | ||
var StructuralSerializer = /** @class */ (function () { | ||
@@ -42,0 +41,0 @@ function StructuralSerializer() { |
@@ -13,21 +13,2 @@ "use strict"; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -69,4 +50,10 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.YamlSerializer = void 0; | ||
var jsyaml = __importStar(require("js-yaml")); | ||
@@ -73,0 +60,0 @@ var json_1 = require("./json"); |
@@ -73,3 +73,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sortedSteps = void 0; | ||
var topological_sort_1 = __importDefault(require("topological-sort")); | ||
@@ -76,0 +75,0 @@ var unwrapSteps_1 = require("./unwrapSteps"); |
@@ -50,3 +50,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sortedWithBlocks = void 0; | ||
var sortedSteps_1 = require("./sortedSteps"); | ||
@@ -53,0 +52,0 @@ var conditional_1 = require("./conditional"); |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -67,3 +67,2 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BlockStep = void 0; | ||
var ow_1 = __importDefault(require("ow")); | ||
@@ -88,4 +87,3 @@ var base_1 = require("../base"); | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
var _c; | ||
var _a, _b, _c; | ||
return __generator(this, function (_d) { | ||
@@ -92,0 +90,0 @@ switch (_d.label) { |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -87,3 +87,2 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FieldsImpl = exports.SelectField = exports.Option = exports.TextField = void 0; | ||
var ow_1 = __importDefault(require("ow")); | ||
@@ -176,4 +175,3 @@ var base_1 = require("../../base"); | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
var _c; | ||
var _a, _b, _c; | ||
return __generator(this, function (_d) { | ||
@@ -180,0 +178,0 @@ switch (_d.label) { |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -98,3 +98,2 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CommandStep = exports.Command = void 0; | ||
var ow_1 = __importDefault(require("ow")); | ||
@@ -194,3 +193,3 @@ var key_value_1 = require("../key_value"); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -204,3 +203,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -212,3 +211,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -237,3 +236,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -331,4 +330,3 @@ }); | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
var _c; | ||
var _a, _b, _c; | ||
return __generator(this, function (_d) { | ||
@@ -341,9 +339,12 @@ switch (_d.label) { | ||
_b = [__assign.apply(void 0, _a.concat([(_d.sent())]))]; | ||
_c = { command: transformCommand(this.command) }; | ||
return [4 /*yield*/, this.env.toJson()]; | ||
case 2: return [4 /*yield*/, this.retry.toJson()]; | ||
case 2: | ||
_c.env = _d.sent(), _c.parallelism = this.parallelism, _c.concurrency = this.concurrency, _c.concurrency_group = this.concurrencyGroup, _c.concurrency_method = this.concurrencyMethod, _c.artifact_paths = this._artifactPaths.size | ||
? Array.from(this._artifactPaths) | ||
: undefined, _c.agents = this.agents.size ? base_1.mapToObject(this.agents) : undefined, _c.timeout_in_minutes = this.timeout, _c.plugins = plugins_1.transformPlugins(this.plugins), _c.soft_fail = transformSoftFail(this._softFail), _c.skip = this._skip ? transformSkipValue(this._skip) : undefined; | ||
return [4 /*yield*/, this.retry.toJson()]; | ||
case 3: | ||
/* eslint-disable @typescript-eslint/camelcase */ | ||
return [2 /*return*/, __assign.apply(void 0, _b.concat([(_c = { command: transformCommand(this.command) }, _c.env = _d.sent(), _c.parallelism = this.parallelism, _c.concurrency = this.concurrency, _c.concurrency_group = this.concurrencyGroup, _c.concurrency_method = this.concurrencyMethod, _c.artifact_paths = this._artifactPaths.size | ||
? Array.from(this._artifactPaths) | ||
: undefined, _c.agents = this.agents.size ? base_1.mapToObject(this.agents) : undefined, _c.timeout_in_minutes = this.timeout, _c.plugins = plugins_1.transformPlugins(this.plugins), _c.soft_fail = transformSoftFail(this._softFail), _c.skip = this._skip ? transformSkipValue(this._skip) : undefined, _c.retry = _d.sent(), _c)]))]; | ||
return [2 /*return*/, __assign.apply(void 0, _b.concat([(_c.retry = _d.sent(), _c)]))]; | ||
} | ||
@@ -350,0 +351,0 @@ }); |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -40,3 +40,2 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PluginsImpl = exports.transformPlugins = exports.Plugin = void 0; | ||
var ow_1 = __importDefault(require("ow")); | ||
@@ -43,0 +42,0 @@ var base_1 = require("../../base"); |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -87,3 +87,2 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RetryImpl = void 0; | ||
var ow_1 = __importDefault(require("ow")); | ||
@@ -90,0 +89,0 @@ var base_1 = require("../../base"); |
@@ -6,3 +6,3 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -64,3 +64,2 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TriggerStep = void 0; | ||
var index_1 = require("../index"); | ||
@@ -89,3 +88,3 @@ var base_1 = require("../base"); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -103,4 +102,3 @@ }); | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
var _c; | ||
var _a, _b, _c; | ||
return __generator(this, function (_d) { | ||
@@ -107,0 +105,0 @@ switch (_d.label) { |
@@ -39,3 +39,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BuildImpl = void 0; | ||
var key_value_1 = require("../../key_value"); | ||
@@ -42,0 +41,0 @@ var BuildImpl = /** @class */ (function () { |
@@ -39,3 +39,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WaitStep = void 0; | ||
var WaitStep = /** @class */ (function () { | ||
@@ -42,0 +41,0 @@ function WaitStep(continueOnFailure) { |
@@ -50,3 +50,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.unwrapSteps = void 0; | ||
var conditional_1 = require("./conditional"); | ||
@@ -53,0 +52,0 @@ function unwrapSteps(steps, cache) { |
{ | ||
"name": "buildkite-graph", | ||
"version": "5.3.4", | ||
"version": "5.3.5", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
151934
-3.57%43
-8.51%3047
-3.27%