fast-npm-meta 0.4.1 → 0.4.2

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +4 -1
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -30,6 +30,9 @@ interface PackageError {
30
30
  error: string;
31
31
  }
32
32
  type MaybeError<T> = T | PackageError;
33
+ interface PackageManifestError extends PackageError {
34
+ lastSynced: number;
35
+ }
33
36
  interface ResolvedPackageVersion {
34
37
  name: string;
35
38
  version: string | null;
@@ -119,4 +122,4 @@ declare const NPM_REGISTRY = "https://registry.npmjs.org/";
119
122
  */
120
123
  declare function pickRegistry(scope: string | null | undefined, npmConfigs: Record<string, unknown>, defaultRegistry?: string): string;
121
124
 
122
- export { type FetchOptions, type GetLatestVersionOptions, type GetVersionsOptions, type InferGetLatestVersionResult, type InferGetVersionsResult, NPM_REGISTRY, type PackageManifest, type ResolvedPackageVersion, defaultOptions, getLatestVersion, getLatestVersionBatch, getVersions, getVersionsBatch, pickRegistry };
125
+ export { type Engines, type FetchOptions, type GetLatestVersionOptions, type GetVersionsOptions, type InferGetLatestVersionResult, type InferGetVersionsResult, type MaybeError, NPM_REGISTRY, type PackageError, type PackageManifest, type PackageManifestError, type PackageVersionMeta, type PackageVersionsInfo, type PackageVersionsInfoWithMetadata, type ResolvedPackageVersion, type ResolvedPackageVersionWithMetadata, defaultOptions, getLatestVersion, getLatestVersionBatch, getVersions, getVersionsBatch, pickRegistry };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fast-npm-meta",
3
3
  "type": "module",
4
- "version": "0.4.1",
4
+ "version": "0.4.2",
5
5
  "description": "Get npm package metadata",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",