@pnpm/fetcher-base
Advanced tools
Comparing version 14.0.2 to 15.0.0
import { type Resolution, type GitResolution, type DirectoryResolution } from '@pnpm/resolver-base'; | ||
import type { DeferredManifestPromise, Cafs, FilesIndex } from '@pnpm/cafs-types'; | ||
import { type DeferredManifestPromise, type Cafs } from '@pnpm/cafs-types'; | ||
import { type DependencyManifest } from '@pnpm/types'; | ||
export interface PkgNameVersion { | ||
name?: string; | ||
version?: string; | ||
} | ||
export interface FetchOptions { | ||
manifest?: DeferredManifestPromise; | ||
filesIndexFile: string; | ||
lockfileDir: string; | ||
onStart?: (totalSize: number | null, attempt: number) => void; | ||
onProgress?: (downloaded: number) => void; | ||
readManifest?: boolean; | ||
pkg: PkgNameVersion; | ||
} | ||
export type FetchFunction<FetcherResolution = Resolution, Options = FetchOptions, Result = FetchResult> = (cafs: Cafs, resolution: FetcherResolution, opts: Options) => Promise<Result>; | ||
export type FetchResult = { | ||
local?: false; | ||
filesIndex: FilesIndex; | ||
} | { | ||
local: true; | ||
export interface FetchResult { | ||
local?: boolean; | ||
manifest?: DependencyManifest; | ||
filesIndex: Record<string, string>; | ||
}; | ||
} | ||
export interface GitFetcherOptions { | ||
manifest?: DeferredManifestPromise; | ||
readManifest?: boolean; | ||
filesIndexFile: string; | ||
pkg?: PkgNameVersion; | ||
} | ||
export type GitFetcher = FetchFunction<GitResolution, GitFetcherOptions, { | ||
filesIndex: FilesIndex; | ||
filesIndex: Record<string, string>; | ||
manifest?: DependencyManifest; | ||
}>; | ||
@@ -23,0 +31,0 @@ export interface DirectoryFetcherOptions { |
{ | ||
"name": "@pnpm/fetcher-base", | ||
"version": "14.0.2", | ||
"version": "15.0.0", | ||
"description": "Types for pnpm-compatible fetchers", | ||
@@ -32,4 +32,4 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/cafs-types": "2.0.0", | ||
"@pnpm/fetcher-base": "14.0.2" | ||
"@pnpm/cafs-types": "3.0.0", | ||
"@pnpm/fetcher-base": "15.0.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "exports": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5302
61