Comparing version 0.2.1 to 0.2.2
@@ -6,4 +6,11 @@ declare class UrlBuilder { | ||
provider: string; | ||
/** | ||
* Get the fastest provider name. | ||
* If none of the providers returns a valid response within `timeout`, an error will be thrown. | ||
*/ | ||
getFastestProvider(timeout?: number, path?: string): Promise<string>; | ||
findFastestProvider(timeout?: number): Promise<string>; | ||
/** | ||
* Set the current provider to the fastest provider found by `getFastestProvider`. | ||
*/ | ||
findFastestProvider(timeout?: number, path?: string): Promise<string>; | ||
setProvider(name: string, factory: ((path: string) => string) | null): void; | ||
@@ -10,0 +17,0 @@ getFullUrl(path: string, provider?: string): string; |
{ | ||
"name": "npm2url", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Convert an NPM package import into a CDN URL.", | ||
@@ -5,0 +5,0 @@ "repository": "gera2ld/npm2url", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2
8241
6
149