Skip to content

Commit d573c31

Browse files
Revert "New API to load from CDN endpoint (#106)"
This reverts commit 6dae81a.
1 parent 173e890 commit d573c31

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/load.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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-
10285
function instanceOfTokenCredential(obj: unknown) {
10386
return obj && typeof obj === "object" && "getToken" in obj && typeof obj.getToken === "function";
10487
}

0 commit comments

Comments
 (0)