@pnpm/fetching.binary-fetcher 1102.0.4 → 1102.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @pnpm/fetching.binary-fetcher
2
2
 
3
+ ## 1102.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Republished every package: the tarballs published by the v11.13.1 through v11.16.0 releases were missing most of their compiled files due to a packing bug [#13164](https://github.com/pnpm/pnpm/issues/13164).
8
+
9
+ - Updated dependencies:
10
+ - @pnpm/error@1100.1.0
11
+ - @pnpm/fetching.fetcher-base@1100.2.4
12
+ - @pnpm/fetching.types@1100.0.3
13
+ - @pnpm/store.index@1100.2.2
14
+
15
+ ## 1102.0.5
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies:
20
+ - @pnpm/fetching.fetcher-base@1100.2.3
21
+
3
22
  ## 1102.0.4
4
23
 
5
24
  ### Patch Changes
package/lib/index.d.ts ADDED
@@ -0,0 +1,38 @@
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/fetching.binary-fetcher",
3
- "version": "1102.0.4",
3
+ "version": "1102.0.6",
4
4
  "description": "A fetcher for binary archives",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -27,10 +27,10 @@
27
27
  "!*.map"
28
28
  ],
29
29
  "dependencies": {
30
- "@pnpm/error": "1100.0.1",
31
- "@pnpm/fetching.fetcher-base": "1100.2.2",
32
- "@pnpm/fetching.types": "1100.0.2",
33
- "@pnpm/store.index": "1100.2.1",
30
+ "@pnpm/error": "1100.1.0",
31
+ "@pnpm/fetching.fetcher-base": "1100.2.4",
32
+ "@pnpm/fetching.types": "1100.0.3",
33
+ "@pnpm/store.index": "1100.2.2",
34
34
  "adm-zip": "^0.6.0",
35
35
  "is-subdir": "^2.0.0",
36
36
  "rename-overwrite": "^7.0.1",
@@ -38,11 +38,11 @@
38
38
  "tempy": "3.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@pnpm/worker": "^1100.2.5"
41
+ "@pnpm/worker": "^1100.2.7"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@jest/globals": "30.4.1",
45
- "@pnpm/fetching.binary-fetcher": "1102.0.4",
45
+ "@pnpm/fetching.binary-fetcher": "1102.0.6",
46
46
  "@types/adm-zip": "^0.5.8",
47
47
  "@types/ssri": "^7.1.5",
48
48
  "tempy": "3.0.0"