@tahminator/pipeline 1.0.46 → 1.0.47

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.
@@ -9,6 +9,8 @@ export declare class PulumiClient {
9
9
  private constructor();
10
10
  static create(args: PulumiClientCreateArgs): Promise<PulumiClient>;
11
11
  up(): Promise<UpResult>;
12
- preview(): Promise<PreviewResult>;
12
+ preview(opts: {
13
+ diff: boolean;
14
+ }): Promise<PreviewResult>;
13
15
  static parseChangeSumaryToPrettyTable(changeSummary: OpMap): string;
14
16
  }
@@ -34,8 +34,8 @@ export class PulumiClient {
34
34
  async up() {
35
35
  return this.strategy.up();
36
36
  }
37
- async preview() {
38
- return this.strategy.preview();
37
+ async preview(opts) {
38
+ return this.strategy.preview(opts);
39
39
  }
40
40
  static parseChangeSumaryToPrettyTable(changeSummary) {
41
41
  const entries = Object.entries(changeSummary).filter(([_, count]) => count > 0);
@@ -6,5 +6,7 @@ export declare class AzurePulumiClientStrategy implements IPulumiClientStrategy
6
6
  private constructor();
7
7
  static create(args: PulumiClientAzureStrategyArgs): Promise<AzurePulumiClientStrategy>;
8
8
  up(): Promise<UpResult>;
9
- preview(): Promise<PreviewResult>;
9
+ preview({ diff }: {
10
+ diff: boolean;
11
+ }): Promise<PreviewResult>;
10
12
  }
@@ -21,10 +21,11 @@ export class AzurePulumiClientStrategy {
21
21
  refresh: false,
22
22
  });
23
23
  }
24
- async preview() {
24
+ async preview({ diff }) {
25
25
  return this.stack.preview({
26
26
  color: "never",
27
27
  refresh: false,
28
+ diff,
28
29
  });
29
30
  }
30
31
  }
@@ -1,5 +1,7 @@
1
1
  import type { PreviewResult, UpResult } from "@pulumi/pulumi/automation";
2
2
  export interface IPulumiClientStrategy {
3
3
  up(): Promise<UpResult>;
4
- preview(): Promise<PreviewResult>;
4
+ preview(opts: {
5
+ diff: boolean;
6
+ }): Promise<PreviewResult>;
5
7
  }
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.46",
6
+ "version": "1.0.47",
7
7
  "repository": {
8
8
  "url": "git+https://github.com/tahminator/pipeline.git"
9
9
  },