Skip to content

Commit 58cecef

Browse files
committed
feat: save the latest retrived configuration
1 parent ad876a4 commit 58cecef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/parameters/src/AppConfigProvider.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class AppConfigProvider extends BaseProvider {
1515
private application?: string;
1616
private environment?: string;
1717
private token: string | undefined;
18+
private latestConfiguration: string | undefined;
1819

1920
/**
2021
* It initializes the AppConfigProvider class with an optional set of options like region: 'us-west-1'.
@@ -77,7 +78,11 @@ class AppConfigProvider extends BaseProvider {
7778
const utf8decoder = new TextDecoder();
7879
const value = configuration ? utf8decoder.decode(configuration) : undefined;
7980

80-
return value;
81+
if (value) {
82+
this.latestConfiguration = value;
83+
}
84+
85+
return this.latestConfiguration;
8186
}
8287

8388
/**

0 commit comments

Comments
 (0)