@@ -538,7 +538,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
538538 return response ;
539539 }
540540
541- async #parseFeatureFlag( setting : ConfigurationSetting < string > ) : Promise < any > {
541+ async #parseFeatureFlag( setting : ConfigurationSetting < string > ) : Promise < any > {
542542 const rawFlag = setting . value ;
543543 if ( rawFlag === undefined ) {
544544 throw new Error ( "The value of configuration setting cannot be undefined." ) ;
@@ -597,13 +597,13 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
597597 const hashBuffer = await crypto . subtle . digest ( "SHA-256" , data ) ;
598598 const hashArray = new Uint8Array ( hashBuffer ) ;
599599 const base64String = btoa ( String . fromCharCode ( ...hashArray ) ) ;
600- const base64urlString = base64String . replace ( / \+ / g, '-' ) . replace ( / \/ / g, '_' ) . replace ( / = + $ / , '' ) ;
601- return base64urlString
600+ const base64urlString = base64String . replace ( / \+ / g, "-" ) . replace ( / \/ / g, "_" ) . replace ( / = + $ / , "" ) ;
601+ return base64urlString ;
602602 }
603603 // In Node.js, use the crypto module's hash function
604604 else {
605605 const hash = crypto . createHash ( "sha256" ) . update ( data ) . digest ( ) ;
606- return hash . toString ( "base64url" )
606+ return hash . toString ( "base64url" ) ;
607607 }
608608 }
609609
@@ -657,4 +657,4 @@ function getValidFeatureFlagSelectors(selectors?: SettingSelector[]): SettingSel
657657 } else {
658658 return getValidSelectors ( selectors ) ;
659659 }
660- }
660+ }
0 commit comments