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 3
3
4
4
export { AzureAppConfiguration } from "./AzureAppConfiguration.js" ;
5
5
export { Disposable } from "./common/disposable.js" ;
6
- export { load , loadFromCdn } from "./load.js" ;
6
+ export { load } from "./load.js" ;
7
7
export { KeyFilter , LabelFilter } from "./types.js" ;
8
8
export { VERSION } from "./version.js" ;
Original file line number Diff line number Diff line change @@ -82,23 +82,6 @@ export async function load(
82
82
}
83
83
}
84
84
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
-
102
85
function instanceOfTokenCredential ( obj : unknown ) {
103
86
return obj && typeof obj === "object" && "getToken" in obj && typeof obj . getToken === "function" ;
104
87
}
You can’t perform that action at this time.
0 commit comments