@pnpm/fetching.fetcher-base 1100.2.2 → 1100.2.3
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/CHANGELOG.md +8 -0
- package/package.json +4 -4
- package/lib/index.d.ts +0 -70
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/fetching.fetcher-base",
|
|
3
|
-
"version": "1100.2.
|
|
3
|
+
"version": "1100.2.3",
|
|
4
4
|
"description": "Types for pnpm-compatible fetchers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"!*.map"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pnpm/resolving.resolver-base": "1100.5.
|
|
32
|
-
"@pnpm/types": "1101.
|
|
31
|
+
"@pnpm/resolving.resolver-base": "1100.5.3",
|
|
32
|
+
"@pnpm/types": "1101.5.0",
|
|
33
33
|
"@types/ssri": "^7.1.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@pnpm/fetching.fetcher-base": "1100.2.
|
|
36
|
+
"@pnpm/fetching.fetcher-base": "1100.2.3",
|
|
37
37
|
"@pnpm/store.cafs-types": "1100.0.1"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
package/lib/index.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { BinaryResolution, DirectoryResolution, GitResolution, Resolution } from '@pnpm/resolving.resolver-base';
|
|
2
|
-
import type { Cafs, FilesMap } from '@pnpm/store.cafs-types';
|
|
3
|
-
import type { AllowBuild, BundledManifest, DependencyManifest } from '@pnpm/types';
|
|
4
|
-
export interface PkgNameVersion {
|
|
5
|
-
name?: string;
|
|
6
|
-
version?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface FetchOptions {
|
|
9
|
-
allowBuild?: AllowBuild;
|
|
10
|
-
filesIndexFile: string;
|
|
11
|
-
lockfileDir: string;
|
|
12
|
-
onStart?: (totalSize: number | null, attempt: number) => void;
|
|
13
|
-
onProgress?: (downloaded: number) => void;
|
|
14
|
-
readManifest?: boolean;
|
|
15
|
-
pkg: PkgNameVersion;
|
|
16
|
-
appendManifest?: DependencyManifest;
|
|
17
|
-
/**
|
|
18
|
-
* Regex source (compatible with `new RegExp(pattern)`) matching file paths inside the
|
|
19
|
-
* downloaded archive that should be skipped during extraction. Honored by tarball fetchers.
|
|
20
|
-
*/
|
|
21
|
-
ignoreFilePattern?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ResolutionFetchContract {
|
|
24
|
-
/**
|
|
25
|
-
* Returns `true` when a resolution is missing data only this fetcher can supply, so
|
|
26
|
-
* callers must fetch before treating the resolution as complete.
|
|
27
|
-
*/
|
|
28
|
-
resolutionNeedsFetch?: (resolution: Resolution) => boolean;
|
|
29
|
-
}
|
|
30
|
-
export type FetchFunction<FetcherResolution = Resolution, Options = FetchOptions, Result = FetchResult> = ((cafs: Cafs, resolution: FetcherResolution, opts: Options) => Promise<Result>) & ResolutionFetchContract;
|
|
31
|
-
export interface FetchResult {
|
|
32
|
-
local?: boolean;
|
|
33
|
-
manifest?: BundledManifest;
|
|
34
|
-
filesMap: FilesMap;
|
|
35
|
-
requiresBuild: boolean;
|
|
36
|
-
integrity?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface GitFetcherOptions {
|
|
39
|
-
allowBuild?: AllowBuild;
|
|
40
|
-
readManifest?: boolean;
|
|
41
|
-
filesIndexFile: string;
|
|
42
|
-
pkg?: PkgNameVersion;
|
|
43
|
-
}
|
|
44
|
-
export interface GitFetcherResult {
|
|
45
|
-
filesMap: FilesMap;
|
|
46
|
-
manifest?: BundledManifest;
|
|
47
|
-
requiresBuild: boolean;
|
|
48
|
-
}
|
|
49
|
-
export type GitFetcher = FetchFunction<GitResolution, GitFetcherOptions, GitFetcherResult>;
|
|
50
|
-
export type BinaryFetcher = FetchFunction<BinaryResolution>;
|
|
51
|
-
export interface DirectoryFetcherOptions {
|
|
52
|
-
lockfileDir: string;
|
|
53
|
-
readManifest?: boolean;
|
|
54
|
-
}
|
|
55
|
-
export interface DirectoryFetcherResult {
|
|
56
|
-
local: true;
|
|
57
|
-
filesMap: FilesMap;
|
|
58
|
-
packageImportMethod: 'hardlink';
|
|
59
|
-
manifest?: DependencyManifest;
|
|
60
|
-
requiresBuild: boolean;
|
|
61
|
-
}
|
|
62
|
-
export type DirectoryFetcher = FetchFunction<DirectoryResolution, DirectoryFetcherOptions, DirectoryFetcherResult>;
|
|
63
|
-
export interface Fetchers {
|
|
64
|
-
localTarball: FetchFunction;
|
|
65
|
-
remoteTarball: FetchFunction;
|
|
66
|
-
gitHostedTarball: FetchFunction;
|
|
67
|
-
directory: DirectoryFetcher;
|
|
68
|
-
git: GitFetcher;
|
|
69
|
-
binary: BinaryFetcher;
|
|
70
|
-
}
|