@tahminator/pipeline 1.0.52-beta.a3f32dee → 1.0.52-beta.e6fc2fa6

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.
@@ -47,19 +47,23 @@ export class LocalWorkspacePulumiClientStrategy {
47
47
  return stdout
48
48
  .split("\n")
49
49
  .map((line) => {
50
- if (!line) {
51
- return line;
52
- }
53
50
  const trimmed = line.trimStart();
54
51
  const symbol = trimmed.startsWith("+-") ? "!"
55
52
  : trimmed.startsWith("+") ? "+"
56
53
  : trimmed.startsWith("-") ? "-"
57
- : trimmed.startsWith("~") ? "!"
54
+ : trimmed.startsWith("~") ? "~"
58
55
  : null;
59
56
  if (!symbol) {
60
57
  return line;
61
58
  }
62
- return symbol + line.slice(1);
59
+ const firstNonWhitespaceIndex = line.search(/\S/);
60
+ if (firstNonWhitespaceIndex === -1) {
61
+ return line;
62
+ }
63
+ const markerLength = trimmed.startsWith("+-") ? 2 : 1;
64
+ return (line.slice(0, firstNonWhitespaceIndex) +
65
+ symbol +
66
+ line.slice(firstNonWhitespaceIndex + markerLength));
63
67
  })
64
68
  .join("\n");
65
69
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "author": "Tahmid Ahmed",
5
5
  "description": "A collection of Bun shell scripts that can be re-used in various CICD pipelines.",
6
- "version": "1.0.52-beta.a3f32dee",
6
+ "version": "1.0.52-beta.e6fc2fa6",
7
7
  "repository": {
8
8
  "url": "git+https://github.com/tahminator/pipeline.git"
9
9
  },