@esm.sh/import-map 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esm.sh/import-map",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A import map parser and resolver.",
5
5
  "type": "module",
6
6
  "main": "dist/import-map.mjs",
@@ -19,7 +19,7 @@ export function parseImportMapFromJson(json: string, baseURL?: string): ImportMa
19
19
  export function parseImportMapFromHtml(html: string, baseURL?: string): ImportMap;
20
20
 
21
21
  /** Resolve the specifier with the import map. */
22
- export function resolve(importMap: ImportMap, specifier: string, containingFile: string): string;
22
+ export function resolve(importMap: ImportMap, specifier: string, containingFile: string): [url: string, ok: boolean];
23
23
 
24
24
  /** Check if current browser supports import maps. */
25
25
  export function isSupportImportMap(): boolean;