@catladder/cli 0.0.0-pipeline-variables-cd7d8402 → 0.0.0-pipeline-variables-2b3f7186

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.
@@ -41220,7 +41220,7 @@ exports.readConfigSync = readConfigSync;
41220
41220
 
41221
41221
  exports.__esModule = true;
41222
41222
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
41223
- exports.PIPELINE_IMAGE_TAG = "pipeline-variables-cd7d8402" || 0;
41223
+ exports.PIPELINE_IMAGE_TAG = "pipeline-variables-2b3f7186" || 0;
41224
41224
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
41225
41225
 
41226
41226
  /***/ }),
@@ -43494,16 +43494,16 @@ var writeEnvVarsIntoJSONFileScript = function (vars, filename) {
43494
43494
  value = _b[1];
43495
43495
  // we use yaml block literal to preserve newlines so we don't need to escape anything
43496
43496
  // then we indent each line of the value
43497
- return "printf \"%s: |\n%s\n\" \"".concat(key, "\" \"$(printf %s ").concat(bashEscape(value), " | sed 's/^/ /')\" >> ").concat(filename);
43497
+ return "printf \"%s: |\n%s\n\" \"".concat(key, "\" \"$(printf %s \"").concat(bashEscape(value), "\" | sed 's/^/ /')\" >> ").concat(filename);
43498
43498
  })), false);
43499
43499
  return result;
43500
43500
  };
43501
43501
  var bashEscape = function (value) {
43502
43502
  if (value instanceof BashExpression_1.BashExpression) {
43503
- return "\"".concat(value.toString(), "\""); // simply wrap it in double quotes is ok
43503
+ return value.toString(); // no need to escape bash expressions, as we want them to evaluate
43504
43504
  }
43505
- // non-bash-expressions should interpreted literally, so we put them in single quotes, but we need to escape single quotes
43506
- return "'".concat(value.replace(/'/g, "'\\''"), "'");
43505
+ // we wrap it in double quotes, so we need to escape them
43506
+ return value.replace(/"/g, '\\"');
43507
43507
  };
43508
43508
 
43509
43509
  /***/ }),
@@ -356152,7 +356152,7 @@ exports.readConfigSync = readConfigSync;
356152
356152
 
356153
356153
  exports.__esModule = true;
356154
356154
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
356155
- exports.PIPELINE_IMAGE_TAG = "pipeline-variables-cd7d8402" || 0;
356155
+ exports.PIPELINE_IMAGE_TAG = "pipeline-variables-2b3f7186" || 0;
356156
356156
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
356157
356157
 
356158
356158
  /***/ }),
@@ -358426,16 +358426,16 @@ var writeEnvVarsIntoJSONFileScript = function (vars, filename) {
358426
358426
  value = _b[1];
358427
358427
  // we use yaml block literal to preserve newlines so we don't need to escape anything
358428
358428
  // then we indent each line of the value
358429
- return "printf \"%s: |\n%s\n\" \"".concat(key, "\" \"$(printf %s ").concat(bashEscape(value), " | sed 's/^/ /')\" >> ").concat(filename);
358429
+ return "printf \"%s: |\n%s\n\" \"".concat(key, "\" \"$(printf %s \"").concat(bashEscape(value), "\" | sed 's/^/ /')\" >> ").concat(filename);
358430
358430
  })), false);
358431
358431
  return result;
358432
358432
  };
358433
358433
  var bashEscape = function (value) {
358434
358434
  if (value instanceof BashExpression_1.BashExpression) {
358435
- return "\"".concat(value.toString(), "\""); // simply wrap it in double quotes is ok
358435
+ return value.toString(); // no need to escape bash expressions, as we want them to evaluate
358436
358436
  }
358437
- // non-bash-expressions should interpreted literally, so we put them in single quotes, but we need to escape single quotes
358438
- return "'".concat(value.replace(/'/g, "'\\''"), "'");
358437
+ // we wrap it in double quotes, so we need to escape them
358438
+ return value.replace(/"/g, '\\"');
358439
358439
  };
358440
358440
 
358441
358441
  /***/ }),
package/package.json CHANGED
@@ -52,7 +52,7 @@
52
52
  }
53
53
  ],
54
54
  "license": "MIT",
55
- "version": "0.0.0-pipeline-variables-cd7d8402",
55
+ "version": "0.0.0-pipeline-variables-2b3f7186",
56
56
  "scripts": {
57
57
  "lint": "eslint \"src/**/*.ts\"",
58
58
  "lint:fix": "eslint \"src/**/*.ts\" --fix",
@@ -74,7 +74,7 @@
74
74
  "ts-node": "^10.9.1"
75
75
  },
76
76
  "devDependencies": {
77
- "@catladder/pipeline": "0.0.0-pipeline-variables-cd7d8402",
77
+ "@catladder/pipeline": "0.0.0-pipeline-variables-2b3f7186",
78
78
  "@gitbeaker/rest": "^39.28.0",
79
79
  "@kubernetes/client-node": "^0.16.2",
80
80
  "@tsconfig/node14": "^1.0.1",