module-tsx 0.0.3 → 0.1.0

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/importmap.d.ts
1
+ //#region src/import-map.d.ts
2
2
  type ModuleSpecifierMap = Map<string, URL | null>;
3
3
  interface SpecifierResolutionRecord {
4
4
  serializedBaseURL: string;
@@ -78,6 +78,10 @@ declare class ModuleTSX extends EventTarget implements IModuleTSX {
78
78
  /** Add a new import map, merging it into the existing one per the spec.
79
79
  * Rules that conflict with already-resolved modules are silently dropped. */
80
80
  addImportMap(newImportMap: ImportMap): void;
81
+ /** Resolve a blob URL back to its original source URL. Returns undefined if not found. */
82
+ getSourceUrlByBlob(blobUrl: string): string | undefined;
83
+ /** Get the original source code that was compiled into a given blob URL. */
84
+ getOriginalSource(blobUrl: string): string | undefined;
81
85
  private emit;
82
86
  import(id: string, options?: any): Promise<any>;
83
87
  importCode(sourceUrl: string, code: string, options?: any): Promise<any>;