@pnpm/installing.package-requester 1101.0.2 → 1101.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.
@@ -9,7 +9,7 @@ import gfs from '@pnpm/fs.graceful-fs';
9
9
  import { logger } from '@pnpm/logger';
10
10
  import { resolvePlatformSelector, selectPlatformVariant, } from '@pnpm/resolving.resolver-base';
11
11
  import { normalizeBundledManifest, } from '@pnpm/store.cafs';
12
- import { gitHostedStoreIndexKey, storeIndexKey } from '@pnpm/store.index';
12
+ import { pickStoreIndexKey } from '@pnpm/store.index';
13
13
  import { calcMaxWorkers, readPkgFromCafs as _readPkgFromCafs, } from '@pnpm/worker';
14
14
  import { familySync } from 'detect-libc';
15
15
  import { loadJsonFile } from 'load-json-file';
@@ -225,29 +225,19 @@ async function resolveAndFetch(ctx, wantedDependency, options) {
225
225
  function getFilesIndexFilePath(ctx, opts) {
226
226
  const targetRelative = depPathToFilename(opts.pkg.id, ctx.virtualStoreDirMaxLength);
227
227
  const target = path.join(ctx.storeDir, targetRelative);
228
- if (opts.pkg.resolution.integrity) {
229
- return {
230
- target,
231
- filesIndexFile: storeIndexKey(opts.pkg.resolution.integrity, opts.pkg.id),
232
- resolution: opts.pkg.resolution,
233
- };
234
- }
228
+ const built = !opts.ignoreScripts;
235
229
  let resolution;
236
230
  if (opts.pkg.resolution.type === 'variations') {
237
231
  resolution = findResolution(opts.pkg.resolution.variants, opts.supportedArchitectures);
238
- if (resolution.integrity) {
239
- return {
240
- target,
241
- filesIndexFile: storeIndexKey(resolution.integrity, opts.pkg.id),
242
- resolution,
243
- };
244
- }
245
232
  }
246
233
  else {
247
234
  resolution = opts.pkg.resolution;
248
235
  }
249
- const filesIndexFile = gitHostedStoreIndexKey(opts.pkg.id, { built: !opts.ignoreScripts });
250
- return { filesIndexFile, target, resolution };
236
+ return {
237
+ target,
238
+ filesIndexFile: pickStoreIndexKey(resolution, opts.pkg.id, { built }),
239
+ resolution,
240
+ };
251
241
  }
252
242
  function findResolution(resolutionVariants, supportedArchitectures) {
253
243
  const selector = resolvePlatformSelector(supportedArchitectures, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/installing.package-requester",
3
- "version": "1101.0.2",
3
+ "version": "1101.0.4",
4
4
  "description": "Concurrent downloader of npm-compatible packages",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -26,32 +26,32 @@
26
26
  "!*.map"
27
27
  ],
28
28
  "dependencies": {
29
- "detect-libc": "^2.0.3",
29
+ "detect-libc": "^2.1.2",
30
30
  "load-json-file": "^7.0.1",
31
31
  "p-defer": "^4.0.1",
32
- "p-limit": "^7.1.0",
33
- "p-queue": "^9.1.0",
32
+ "p-limit": "^7.3.0",
33
+ "p-queue": "^9.2.0",
34
34
  "promise-share": "^2.0.0",
35
35
  "ramda": "npm:@pnpm/ramda@0.28.1",
36
- "semver": "^7.7.2",
36
+ "semver": "^7.7.4",
37
37
  "ssri": "13.0.1",
38
38
  "@pnpm/config.package-is-installable": "1100.0.3",
39
39
  "@pnpm/deps.path": "1100.0.2",
40
- "@pnpm/fetching.fetcher-base": "1100.1.1",
41
40
  "@pnpm/core-loggers": "1100.0.1",
42
- "@pnpm/fetching.pick-fetcher": "1100.0.4",
43
41
  "@pnpm/error": "1100.0.0",
44
- "@pnpm/hooks.types": "1100.0.4",
45
- "@pnpm/fs.graceful-fs": "1100.1.0",
46
- "@pnpm/store.cafs": "1100.1.1",
47
- "@pnpm/store.controller-types": "1100.0.4",
48
- "@pnpm/resolving.resolver-base": "1100.1.1",
49
- "@pnpm/store.index": "1100.0.0",
50
- "@pnpm/types": "1101.0.0"
42
+ "@pnpm/fetching.fetcher-base": "1100.1.2",
43
+ "@pnpm/fetching.pick-fetcher": "1100.0.5",
44
+ "@pnpm/hooks.types": "1100.0.5",
45
+ "@pnpm/resolving.resolver-base": "1100.1.2",
46
+ "@pnpm/store.cafs": "1100.1.2",
47
+ "@pnpm/store.controller-types": "1100.0.5",
48
+ "@pnpm/store.index": "1100.1.0",
49
+ "@pnpm/types": "1101.0.0",
50
+ "@pnpm/fs.graceful-fs": "1100.1.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@pnpm/logger": ">=1001.0.0 <1002.0.0",
54
- "@pnpm/worker": "^1100.1.1"
53
+ "@pnpm/logger": "^1001.0.1",
54
+ "@pnpm/worker": "^1100.1.3"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@jest/globals": "30.3.0",
@@ -63,12 +63,12 @@
63
63
  "delay": "^7.0.0",
64
64
  "normalize-path": "^3.0.0",
65
65
  "tempy": "3.0.0",
66
- "@pnpm/installing.package-requester": "1101.0.2",
66
+ "@pnpm/installing.package-requester": "1101.0.4",
67
+ "@pnpm/installing.client": "1100.0.12",
67
68
  "@pnpm/logger": "1100.0.0",
68
69
  "@pnpm/store.cafs-types": "1100.0.1",
69
- "@pnpm/installing.client": "1100.0.7",
70
- "@pnpm/store.create-cafs-store": "1100.0.4",
71
70
  "@pnpm/test-fixtures": "1100.0.0",
71
+ "@pnpm/store.create-cafs-store": "1100.0.5",
72
72
  "@pnpm/testing.mock-agent": "1100.0.2"
73
73
  },
74
74
  "engines": {