@catladder/cli 0.0.0-main-3bc751ca → 0.0.0-main-2d148325

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4475,33 +4475,53 @@ exports.createWorkspaceContext = createWorkspaceContext;
4475
4475
  /***/ }),
4476
4476
 
4477
4477
  /***/ 7827:
4478
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
4478
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
4479
4479
 
4480
4480
  "use strict";
4481
4481
 
4482
+ var __read = (this && this.__read) || function (o, n) {
4483
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
4484
+ if (!m) return o;
4485
+ var i = m.call(o), r, ar = [], e;
4486
+ try {
4487
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
4488
+ }
4489
+ catch (error) { e = { error: error }; }
4490
+ finally {
4491
+ try {
4492
+ if (r && !r.done && (m = i["return"])) m.call(i);
4493
+ }
4494
+ finally { if (e) throw e.error; }
4495
+ }
4496
+ return ar;
4497
+ };
4482
4498
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4483
4499
  exports.getBuildInfoVariables = void 0;
4484
4500
  var BashExpression_1 = __nccwpck_require__(2376);
4485
4501
  var bashExpressionPerPipelineType_1 = __nccwpck_require__(612);
4486
- var BUILD_TIME = {
4487
- default: "unknown-build-time",
4488
- gitlab: new BashExpression_1.BashExpression("$CI_JOB_STARTED_AT"),
4489
- };
4490
- var BUILD_ID = {
4491
- default: new BashExpression_1.BashExpression("$(git describe --tags 2>/dev/null || git rev-parse HEAD)"),
4492
- };
4493
- var CURRENT_VERSION = {
4494
- default: new BashExpression_1.BashExpression(
4495
- // because we do shallow fetch, we need to ask the origin
4496
- "$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags\\/v//'); [ -z \"$tag\" ] && echo \"0.0.0\" || echo \"$tag\")"),
4502
+ var BUILD_VARIABLES = {
4503
+ BUILD_INFO_BUILD_ID: {
4504
+ default: new BashExpression_1.BashExpression("$(git describe --tags 2>/dev/null || git rev-parse HEAD)"),
4505
+ },
4506
+ BUILD_INFO_BUILD_TIME: {
4507
+ default: "unknown-build-time",
4508
+ gitlab: new BashExpression_1.BashExpression("$CI_JOB_STARTED_AT"),
4509
+ },
4510
+ BUILD_INFO_CURRENT_VERSION: {
4511
+ default: new BashExpression_1.BashExpression(
4512
+ // because we do shallow fetch, we need to ask the origin
4513
+ "$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags\\/v//'); [ -z \"$tag\" ] && echo \"0.0.0\" || echo \"$tag\")"),
4514
+ },
4497
4515
  };
4498
4516
  var getBuildInfoVariables = function (ctx) {
4499
4517
  var pipelineType = ctx.pipelineType;
4500
- return {
4501
- BUILD_INFO_BUILD_ID: (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(BUILD_ID, pipelineType),
4502
- BUILD_INFO_BUILD_TIME: (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(BUILD_TIME, pipelineType),
4503
- BUILD_INFO_CURRENT_VERSION: (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(CURRENT_VERSION, pipelineType),
4504
- };
4518
+ return Object.fromEntries(Object.entries(BUILD_VARIABLES).map(function (_a) {
4519
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
4520
+ return [
4521
+ key,
4522
+ (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(value, pipelineType),
4523
+ ];
4524
+ }));
4505
4525
  };
4506
4526
  exports.getBuildInfoVariables = getBuildInfoVariables;
4507
4527
  //# sourceMappingURL=getBuildInfoVariables.js.map
@@ -11956,33 +11956,53 @@ exports.createWorkspaceContext = createWorkspaceContext;
11956
11956
  /***/ }),
11957
11957
 
11958
11958
  /***/ 17827:
11959
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
11959
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
11960
11960
 
11961
11961
  "use strict";
11962
11962
 
11963
+ var __read = (this && this.__read) || function (o, n) {
11964
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
11965
+ if (!m) return o;
11966
+ var i = m.call(o), r, ar = [], e;
11967
+ try {
11968
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
11969
+ }
11970
+ catch (error) { e = { error: error }; }
11971
+ finally {
11972
+ try {
11973
+ if (r && !r.done && (m = i["return"])) m.call(i);
11974
+ }
11975
+ finally { if (e) throw e.error; }
11976
+ }
11977
+ return ar;
11978
+ };
11963
11979
  Object.defineProperty(exports, "__esModule", ({ value: true }));
11964
11980
  exports.getBuildInfoVariables = void 0;
11965
11981
  var BashExpression_1 = __nccwpck_require__(42376);
11966
11982
  var bashExpressionPerPipelineType_1 = __nccwpck_require__(90612);
11967
- var BUILD_TIME = {
11968
- default: "unknown-build-time",
11969
- gitlab: new BashExpression_1.BashExpression("$CI_JOB_STARTED_AT"),
11970
- };
11971
- var BUILD_ID = {
11972
- default: new BashExpression_1.BashExpression("$(git describe --tags 2>/dev/null || git rev-parse HEAD)"),
11973
- };
11974
- var CURRENT_VERSION = {
11975
- default: new BashExpression_1.BashExpression(
11976
- // because we do shallow fetch, we need to ask the origin
11977
- "$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags\\/v//'); [ -z \"$tag\" ] && echo \"0.0.0\" || echo \"$tag\")"),
11983
+ var BUILD_VARIABLES = {
11984
+ BUILD_INFO_BUILD_ID: {
11985
+ default: new BashExpression_1.BashExpression("$(git describe --tags 2>/dev/null || git rev-parse HEAD)"),
11986
+ },
11987
+ BUILD_INFO_BUILD_TIME: {
11988
+ default: "unknown-build-time",
11989
+ gitlab: new BashExpression_1.BashExpression("$CI_JOB_STARTED_AT"),
11990
+ },
11991
+ BUILD_INFO_CURRENT_VERSION: {
11992
+ default: new BashExpression_1.BashExpression(
11993
+ // because we do shallow fetch, we need to ask the origin
11994
+ "$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags\\/v//'); [ -z \"$tag\" ] && echo \"0.0.0\" || echo \"$tag\")"),
11995
+ },
11978
11996
  };
11979
11997
  var getBuildInfoVariables = function (ctx) {
11980
11998
  var pipelineType = ctx.pipelineType;
11981
- return {
11982
- BUILD_INFO_BUILD_ID: (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(BUILD_ID, pipelineType),
11983
- BUILD_INFO_BUILD_TIME: (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(BUILD_TIME, pipelineType),
11984
- BUILD_INFO_CURRENT_VERSION: (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(CURRENT_VERSION, pipelineType),
11985
- };
11999
+ return Object.fromEntries(Object.entries(BUILD_VARIABLES).map(function (_a) {
12000
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
12001
+ return [
12002
+ key,
12003
+ (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(value, pipelineType),
12004
+ ];
12005
+ }));
11986
12006
  };
11987
12007
  exports.getBuildInfoVariables = getBuildInfoVariables;
11988
12008
  //# sourceMappingURL=getBuildInfoVariables.js.map
@@ -1,7 +1,5 @@
1
1
  import { BashExpression } from "../bash/BashExpression";
2
2
  import type { EnvironmentContext } from "../types/environmentContext";
3
3
  export declare const getBuildInfoVariables: (ctx: EnvironmentContext) => {
4
- BUILD_INFO_BUILD_ID: string | BashExpression;
5
- BUILD_INFO_BUILD_TIME: string | BashExpression;
6
- BUILD_INFO_CURRENT_VERSION: string | BashExpression;
4
+ [k: string]: string | BashExpression;
7
5
  };
@@ -1,27 +1,47 @@
1
1
  "use strict";
2
+ var __read = (this && this.__read) || function (o, n) {
3
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
4
+ if (!m) return o;
5
+ var i = m.call(o), r, ar = [], e;
6
+ try {
7
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
8
+ }
9
+ catch (error) { e = { error: error }; }
10
+ finally {
11
+ try {
12
+ if (r && !r.done && (m = i["return"])) m.call(i);
13
+ }
14
+ finally { if (e) throw e.error; }
15
+ }
16
+ return ar;
17
+ };
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.getBuildInfoVariables = void 0;
4
20
  var BashExpression_1 = require("../bash/BashExpression");
5
21
  var bashExpressionPerPipelineType_1 = require("../bash/bashExpressionPerPipelineType");
6
- var BUILD_TIME = {
7
- default: "unknown-build-time",
8
- gitlab: new BashExpression_1.BashExpression("$CI_JOB_STARTED_AT"),
9
- };
10
- var BUILD_ID = {
11
- default: new BashExpression_1.BashExpression("$(git describe --tags 2>/dev/null || git rev-parse HEAD)"),
12
- };
13
- var CURRENT_VERSION = {
14
- default: new BashExpression_1.BashExpression(
15
- // because we do shallow fetch, we need to ask the origin
16
- "$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags\\/v//'); [ -z \"$tag\" ] && echo \"0.0.0\" || echo \"$tag\")"),
22
+ var BUILD_VARIABLES = {
23
+ BUILD_INFO_BUILD_ID: {
24
+ default: new BashExpression_1.BashExpression("$(git describe --tags 2>/dev/null || git rev-parse HEAD)"),
25
+ },
26
+ BUILD_INFO_BUILD_TIME: {
27
+ default: "unknown-build-time",
28
+ gitlab: new BashExpression_1.BashExpression("$CI_JOB_STARTED_AT"),
29
+ },
30
+ BUILD_INFO_CURRENT_VERSION: {
31
+ default: new BashExpression_1.BashExpression(
32
+ // because we do shallow fetch, we need to ask the origin
33
+ "$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags\\/v//'); [ -z \"$tag\" ] && echo \"0.0.0\" || echo \"$tag\")"),
34
+ },
17
35
  };
18
36
  var getBuildInfoVariables = function (ctx) {
19
37
  var pipelineType = ctx.pipelineType;
20
- return {
21
- BUILD_INFO_BUILD_ID: (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(BUILD_ID, pipelineType),
22
- BUILD_INFO_BUILD_TIME: (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(BUILD_TIME, pipelineType),
23
- BUILD_INFO_CURRENT_VERSION: (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(CURRENT_VERSION, pipelineType),
24
- };
38
+ return Object.fromEntries(Object.entries(BUILD_VARIABLES).map(function (_a) {
39
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
40
+ return [
41
+ key,
42
+ (0, bashExpressionPerPipelineType_1.getBashExpressionPerPipelineType)(value, pipelineType),
43
+ ];
44
+ }));
25
45
  };
26
46
  exports.getBuildInfoVariables = getBuildInfoVariables;
27
47
  //# sourceMappingURL=getBuildInfoVariables.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBuildInfoVariables.js","sourceRoot":"","sources":["../../../../../pipeline/src/context/getBuildInfoVariables.ts"],"names":[],"mappings":";;;AAAA,yDAAwD;AAExD,uFAAyF;AAIzF,IAAM,UAAU,GAAkC;IAChD,OAAO,EAAE,oBAAoB;IAC7B,MAAM,EAAE,IAAI,+BAAc,CAAC,oBAAoB,CAAC;CACjD,CAAC;AAEF,IAAM,QAAQ,GAAkC;IAC9C,OAAO,EAAE,IAAI,+BAAc,CACzB,0DAA0D,CAC3D;CACF,CAAC;AACF,IAAM,eAAe,GAAkC;IACrD,OAAO,EAAE,IAAI,+BAAc;IACzB,yDAAyD;IACzD,kLAA0K,CAC3K;CACF,CAAC;AAEK,IAAM,qBAAqB,GAAG,UAAC,GAAuB;IACnD,IAAA,YAAY,GAAK,GAAG,aAAR,CAAS;IAE7B,OAAO;QACL,mBAAmB,EAAE,IAAA,gEAAgC,EACnD,QAAQ,EACR,YAAY,CACb;QACD,qBAAqB,EAAE,IAAA,gEAAgC,EACrD,UAAU,EACV,YAAY,CACb;QACD,0BAA0B,EAAE,IAAA,gEAAgC,EAC1D,eAAe,EACf,YAAY,CACb;KACF,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,qBAAqB,yBAiBhC"}
1
+ {"version":3,"file":"getBuildInfoVariables.js","sourceRoot":"","sources":["../../../../../pipeline/src/context/getBuildInfoVariables.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,yDAAwD;AAExD,uFAAyF;AAGzF,IAAM,eAAe,GAAG;IACtB,mBAAmB,EAAE;QACnB,OAAO,EAAE,IAAI,+BAAc,CACzB,0DAA0D,CAC3D;KACF;IACD,qBAAqB,EAAE;QACrB,OAAO,EAAE,oBAAoB;QAC7B,MAAM,EAAE,IAAI,+BAAc,CAAC,oBAAoB,CAAC;KACjD;IACD,0BAA0B,EAAE;QAC1B,OAAO,EAAE,IAAI,+BAAc;QACzB,yDAAyD;QACzD,kLAA0K,CAC3K;KACF;CAGF,CAAC;AAEK,IAAM,qBAAqB,GAAG,UAAC,GAAuB;IACnD,IAAA,YAAY,GAAK,GAAG,aAAR,CAAS;IAE7B,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,UAAC,EAAY;YAAZ,KAAA,aAAY,EAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QAAM,OAAA;YACpD,GAAG;YACH,IAAA,gEAAgC,EAAC,KAAK,EAAE,YAAY,CAAC;SACtD;IAHqD,CAGrD,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,qBAAqB,yBAShC"}
@@ -7,9 +7,6 @@ export type SecretEnvVar = {
7
7
  hidden?: boolean;
8
8
  };
9
9
  declare const getBasePredefinedVariables: (ctx: EnvironmentContext) => {
10
- BUILD_INFO_BUILD_ID?: string | import("../bash/BashExpression").BashExpression;
11
- BUILD_INFO_BUILD_TIME?: string | import("../bash/BashExpression").BashExpression;
12
- BUILD_INFO_CURRENT_VERSION?: string | import("../bash/BashExpression").BashExpression;
13
10
  ENV_SHORT: string;
14
11
  APP_DIR: string;
15
12
  ENV_TYPE: "stage" | "dev" | "review" | "prod" | "local";