File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change 33
44export { AzureAppConfiguration } from "./AzureAppConfiguration.js" ;
55export { Disposable } from "./common/disposable.js" ;
6- export { load , loadFromCdn } from "./load.js" ;
6+ export { load } from "./load.js" ;
77export { KeyFilter , LabelFilter } from "./types.js" ;
88export { VERSION } from "./version.js" ;
Original file line number Diff line number Diff line change @@ -82,23 +82,6 @@ export async function load(
8282 }
8383}
8484
85- /**
86- * Loads the data from a CDN and returns an instance of AzureAppConfiguration.
87- * @param cdnEndpoint The URL to the CDN.
88- * @param appConfigOptions Optional parameters.
89- */
90- export async function loadFromCdn ( cdnEndpoint : URL | string , options ?: AzureAppConfigurationOptions ) : Promise < AzureAppConfiguration > ;
91-
92- export async function loadFromCdn (
93- cdnEndpoint : string | URL ,
94- appConfigOptions ?: AzureAppConfigurationOptions
95- ) : Promise < AzureAppConfiguration > {
96- const emptyTokenCredential : TokenCredential = {
97- getToken : async ( ) => ( { token : "" , expiresOnTimestamp : 0 } )
98- } ;
99- return await load ( cdnEndpoint , emptyTokenCredential , appConfigOptions ) ;
100- }
101-
10285function instanceOfTokenCredential ( obj : unknown ) {
10386 return obj && typeof obj === "object" && "getToken" in obj && typeof obj . getToken === "function" ;
10487}
You can’t perform that action at this time.
0 commit comments