@pnpm/fetching.binary-fetcher 1102.0.3 → 1102.0.4
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 +6 -0
- package/package.json +4 -4
- package/lib/index.d.ts +0 -38
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/fetching.binary-fetcher",
|
|
3
|
-
"version": "1102.0.
|
|
3
|
+
"version": "1102.0.4",
|
|
4
4
|
"description": "A fetcher for binary archives",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"@pnpm/fetching.fetcher-base": "1100.2.2",
|
|
32
32
|
"@pnpm/fetching.types": "1100.0.2",
|
|
33
33
|
"@pnpm/store.index": "1100.2.1",
|
|
34
|
-
"adm-zip": "^0.
|
|
34
|
+
"adm-zip": "^0.6.0",
|
|
35
35
|
"is-subdir": "^2.0.0",
|
|
36
36
|
"rename-overwrite": "^7.0.1",
|
|
37
37
|
"ssri": "13.0.1",
|
|
38
38
|
"tempy": "3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@pnpm/worker": "^1100.2.
|
|
41
|
+
"@pnpm/worker": "^1100.2.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@jest/globals": "30.4.1",
|
|
45
|
-
"@pnpm/fetching.binary-fetcher": "1102.0.
|
|
45
|
+
"@pnpm/fetching.binary-fetcher": "1102.0.4",
|
|
46
46
|
"@types/adm-zip": "^0.5.8",
|
|
47
47
|
"@types/ssri": "^7.1.5",
|
|
48
48
|
"tempy": "3.0.0"
|
package/lib/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { BinaryFetcher, FetchFunction } from '@pnpm/fetching.fetcher-base';
|
|
2
|
-
import type { FetchFromRegistry } from '@pnpm/fetching.types';
|
|
3
|
-
import type { StoreIndex } from '@pnpm/store.index';
|
|
4
|
-
export interface CreateBinaryFetcherOptions {
|
|
5
|
-
fetch: FetchFromRegistry;
|
|
6
|
-
fetchFromRemoteTarball: FetchFunction;
|
|
7
|
-
storeIndex: StoreIndex;
|
|
8
|
-
offline?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Per-package-name regex sources (compatible with `new RegExp(pattern)`) matching file
|
|
11
|
-
* paths inside the downloaded archive that should be skipped during extraction.
|
|
12
|
-
* The lookup key is `pkg.name`. For zip archives, paths are matched relative to the
|
|
13
|
-
* archive's top-level directory (i.e. after the `prefix` has been stripped).
|
|
14
|
-
*/
|
|
15
|
-
archiveFilters?: Record<string, string>;
|
|
16
|
-
}
|
|
17
|
-
export declare function createBinaryFetcher(ctx: CreateBinaryFetcherOptions): {
|
|
18
|
-
binary: BinaryFetcher;
|
|
19
|
-
};
|
|
20
|
-
export interface AssetInfo {
|
|
21
|
-
url: string;
|
|
22
|
-
integrity: string;
|
|
23
|
-
basename: string;
|
|
24
|
-
/**
|
|
25
|
-
* Regex matched against each zip entry's path relative to the archive's top-level basename.
|
|
26
|
-
* Matching entries are skipped during extraction.
|
|
27
|
-
*/
|
|
28
|
-
ignoreEntry?: RegExp;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Downloads and unpacks a zip file containing a binary asset.
|
|
32
|
-
*
|
|
33
|
-
* @param fetchFromRegistry - Function to fetch resources from registry
|
|
34
|
-
* @param assetInfo - Information about the binary asset
|
|
35
|
-
* @param targetDir - Directory where the binary asset should be installed
|
|
36
|
-
* @throws {PnpmError} When integrity verification fails or extraction fails
|
|
37
|
-
*/
|
|
38
|
-
export declare function downloadAndUnpackZip(fetchFromRegistry: FetchFromRegistry, assetInfo: AssetInfo, targetDir: string): Promise<void>;
|