fast-npm-meta 0.4.4 → 0.4.6
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.mts +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ interface PackageVersionMeta {
|
|
|
13
13
|
time?: string;
|
|
14
14
|
engines?: Engines;
|
|
15
15
|
deprecated?: string;
|
|
16
|
+
provenance?: 'trustedPublisher' | boolean;
|
|
16
17
|
}
|
|
17
18
|
interface PackageVersionsInfo extends Pick<PackageManifest, 'name' | 'distTags' | 'lastSynced'> {
|
|
18
19
|
versions: string[];
|
|
@@ -128,4 +129,5 @@ declare const NPM_REGISTRY = "https://registry.npmjs.org/";
|
|
|
128
129
|
*/
|
|
129
130
|
declare function pickRegistry(scope: string | null | undefined, npmConfigs: Record<string, unknown>, defaultRegistry?: string): string;
|
|
130
131
|
|
|
131
|
-
export {
|
|
132
|
+
export { NPM_REGISTRY, defaultOptions, getLatestVersion, getLatestVersionBatch, getVersions, getVersionsBatch, pickRegistry };
|
|
133
|
+
export type { Engines, FetchOptions, GetLatestVersionOptions, GetVersionsOptions, InferGetLatestVersionResult, InferGetVersionsResult, MaybeError, PackageError, PackageManifest, PackageManifestError, PackageVersionMeta, PackageVersionsInfo, PackageVersionsInfoWithMetadata, ResolvedPackageVersion, ResolvedPackageVersionWithMetadata };
|