@jspm/generator
Version:
Package Import Map Generation Tool
18 lines (17 loc) • 782 B
TypeScript
import { LatestPackageTarget } from "../install/package.js";
import { ExactPackage } from "../install/package.js";
import { Resolver } from "../trace/resolver.js";
export declare const supportedLayers: string[];
export declare function pkgToUrl(pkg: ExactPackage, layer: string): Promise<`${string}/`>;
export declare function configure(config: any): void;
export declare function parseUrlPkg(url: string): {
pkg: {
registry: string;
name: string;
version: string;
};
layer: string;
subpath: any;
};
export declare function resolveLatestTarget(this: Resolver, target: LatestPackageTarget, layer: string, parentUrl: string): Promise<ExactPackage | null>;
export declare function fetchVersions(this: Resolver, name: string): Promise<string[]>;