33
44import { AppConfigurationClient , ConfigurationSetting , ConfigurationSettingId , GetConfigurationSettingOptions , GetConfigurationSettingResponse , ListConfigurationSettingsOptions , featureFlagPrefix , isFeatureFlag } from "@azure/app-configuration" ;
55import { isRestError } from "@azure/core-rest-pipeline" ;
6- import { AzureAppConfiguration , ConfigurationObjectConstructionOptions } from "./AzureAppConfiguration" ;
7- import { AzureAppConfigurationOptions } from "./AzureAppConfigurationOptions" ;
8- import { IKeyValueAdapter } from "./IKeyValueAdapter" ;
9- import { JsonKeyValueAdapter } from "./JsonKeyValueAdapter" ;
10- import { DEFAULT_REFRESH_INTERVAL_IN_MS , MIN_REFRESH_INTERVAL_IN_MS } from "./RefreshOptions" ;
11- import { Disposable } from "./common/disposable" ;
12- import { base64Helper , jsonSorter } from "./common/utils" ;
6+ import { AzureAppConfiguration , ConfigurationObjectConstructionOptions } from "./AzureAppConfiguration.js " ;
7+ import { AzureAppConfigurationOptions } from "./AzureAppConfigurationOptions.js " ;
8+ import { IKeyValueAdapter } from "./IKeyValueAdapter.js " ;
9+ import { JsonKeyValueAdapter } from "./JsonKeyValueAdapter.js " ;
10+ import { DEFAULT_REFRESH_INTERVAL_IN_MS , MIN_REFRESH_INTERVAL_IN_MS } from "./RefreshOptions.js " ;
11+ import { Disposable } from "./common/disposable.js " ;
12+ import { base64Helper , jsonSorter } from "./common/utils.js " ;
1313import {
1414 FEATURE_FLAGS_KEY_NAME ,
1515 FEATURE_MANAGEMENT_KEY_NAME ,
@@ -30,11 +30,11 @@ import {
3030 VARIANT_KEY_NAME ,
3131 VARIANTS_KEY_NAME ,
3232 CONFIGURATION_VALUE_KEY_NAME
33- } from "./featureManagement/constants" ;
34- import { AzureKeyVaultKeyValueAdapter } from "./keyvault/AzureKeyVaultKeyValueAdapter" ;
35- import { RefreshTimer } from "./refresh/RefreshTimer" ;
36- import { getConfigurationSettingWithTrace , listConfigurationSettingsWithTrace , requestTracingEnabled } from "./requestTracing/utils" ;
37- import { KeyFilter , LabelFilter , SettingSelector } from "./types" ;
33+ } from "./featureManagement/constants.js " ;
34+ import { AzureKeyVaultKeyValueAdapter } from "./keyvault/AzureKeyVaultKeyValueAdapter.js " ;
35+ import { RefreshTimer } from "./refresh/RefreshTimer.js " ;
36+ import { getConfigurationSettingWithTrace , listConfigurationSettingsWithTrace , requestTracingEnabled } from "./requestTracing/utils.js " ;
37+ import { KeyFilter , LabelFilter , SettingSelector } from "./types.js " ;
3838
3939type PagedSettingSelector = SettingSelector & {
4040 /**
@@ -87,7 +87,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
8787 this . #options = options ;
8888
8989 // Enable request tracing if not opt-out
90- this . #requestTracingEnabled = requestTracingEnabled ( ) ;
90+ this . #requestTracingEnabled = options ?. requestTracingOptions ?. enabled ?? requestTracingEnabled ( ) ;
9191
9292 if ( options ?. trimKeyPrefixes ) {
9393 this . #sortedTrimKeyPrefixes = [ ...options . trimKeyPrefixes ] . sort ( ( a , b ) => b . localeCompare ( a ) ) ;
@@ -164,19 +164,19 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
164164 return this . #configMap. size ;
165165 }
166166
167- entries ( ) : IterableIterator < [ string , any ] > {
167+ entries ( ) : MapIterator < [ string , any ] > {
168168 return this . #configMap. entries ( ) ;
169169 }
170170
171- keys ( ) : IterableIterator < string > {
171+ keys ( ) : MapIterator < string > {
172172 return this . #configMap. keys ( ) ;
173173 }
174174
175- values ( ) : IterableIterator < any > {
175+ values ( ) : MapIterator < any > {
176176 return this . #configMap. values ( ) ;
177177 }
178178
179- [ Symbol . iterator ] ( ) : IterableIterator < [ string , any ] > {
179+ [ Symbol . iterator ] ( ) : MapIterator < [ string , any ] > {
180180 return this . #configMap[ Symbol . iterator ] ( ) ;
181181 }
182182 // #endregion
0 commit comments