pnpm 7.13.0 → 7.13.2

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.
Files changed (65) hide show
  1. package/dist/node_modules/.modules.yaml +3 -3
  2. package/dist/node_modules/.pnpm/lock.yaml +46 -44
  3. package/dist/node_modules/@npmcli/fs/lib/common/owner-sync.js +8 -4
  4. package/dist/node_modules/@npmcli/fs/lib/common/owner.js +8 -4
  5. package/dist/node_modules/@npmcli/fs/lib/index.js +1 -1
  6. package/dist/node_modules/@npmcli/fs/lib/mkdir.js +19 -0
  7. package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +4 -2
  8. package/dist/node_modules/@npmcli/fs/package.json +4 -4
  9. package/dist/node_modules/@npmcli/move-file/lib/index.js +16 -6
  10. package/dist/node_modules/@npmcli/move-file/package.json +3 -3
  11. package/dist/node_modules/are-we-there-yet/lib/tracker-group.js +1 -1
  12. package/dist/node_modules/are-we-there-yet/package.json +12 -13
  13. package/dist/node_modules/cacache/lib/content/read.js +1 -1
  14. package/dist/node_modules/cacache/lib/content/write.js +2 -0
  15. package/dist/node_modules/cacache/lib/entry-index.js +1 -0
  16. package/dist/node_modules/cacache/lib/get.js +1 -0
  17. package/dist/node_modules/cacache/package.json +2 -2
  18. package/dist/node_modules/ip/lib/ip.js +54 -59
  19. package/dist/node_modules/ip/package.json +1 -1
  20. package/dist/node_modules/lru-cache/index.js +21 -8
  21. package/dist/node_modules/lru-cache/package.json +3 -2
  22. package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +2 -0
  23. package/dist/node_modules/make-fetch-happen/package.json +1 -1
  24. package/dist/node_modules/minipass-fetch/lib/body.js +13 -11
  25. package/dist/node_modules/minipass-fetch/package.json +4 -3
  26. package/dist/node_modules/node-gyp/addon.gypi +5 -0
  27. package/dist/node_modules/node-gyp/gyp/.github/workflows/Python_tests.yml +3 -3
  28. package/dist/node_modules/node-gyp/gyp/.github/workflows/node-gyp.yml +5 -5
  29. package/dist/node_modules/node-gyp/gyp/.github/workflows/nodejs-windows.yml +2 -2
  30. package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +12 -0
  31. package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +9 -3
  32. package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +1 -1
  33. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +191 -26
  34. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +7 -4
  35. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2 -2
  36. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +7 -14
  37. package/dist/node_modules/node-gyp/gyp/setup.py +1 -1
  38. package/dist/node_modules/node-gyp/gyp/test_gyp.py +1 -0
  39. package/dist/node_modules/node-gyp/gyp/tools/pretty_gyp.py +1 -1
  40. package/dist/node_modules/node-gyp/lib/build.js +2 -0
  41. package/dist/node_modules/node-gyp/lib/configure.js +45 -4
  42. package/dist/node_modules/node-gyp/package.json +2 -2
  43. package/dist/node_modules/node-gyp/update-gyp.py +19 -1
  44. package/dist/node_modules/nopt/bin/nopt.js +41 -39
  45. package/dist/node_modules/nopt/lib/nopt.js +222 -148
  46. package/dist/node_modules/nopt/package.json +27 -8
  47. package/dist/node_modules/socks/.eslintrc.cjs +11 -0
  48. package/dist/node_modules/socks/build/client/socksclient.js +8 -6
  49. package/dist/node_modules/socks/build/client/socksclient.js.map +1 -1
  50. package/dist/node_modules/socks/build/common/receivebuffer.js.map +1 -1
  51. package/dist/node_modules/socks/build/common/util.js +0 -1
  52. package/dist/node_modules/socks/build/common/util.js.map +1 -1
  53. package/dist/node_modules/socks/build/index.js +5 -1
  54. package/dist/node_modules/socks/build/index.js.map +1 -1
  55. package/dist/node_modules/socks/package.json +12 -37
  56. package/dist/node_modules/unique-filename/{index.js → lib/index.js} +0 -1
  57. package/dist/node_modules/unique-filename/package.json +29 -8
  58. package/dist/node_modules/unique-slug/{index.js → lib/index.js} +2 -2
  59. package/dist/node_modules/unique-slug/package.json +28 -7
  60. package/dist/pnpm.cjs +690 -625
  61. package/package.json +5 -5
  62. package/dist/node_modules/@npmcli/fs/lib/common/file-url-to-path/index.js +0 -17
  63. package/dist/node_modules/@npmcli/fs/lib/common/file-url-to-path/polyfill.js +0 -121
  64. package/dist/node_modules/@npmcli/fs/lib/mkdir/index.js +0 -29
  65. package/dist/node_modules/@npmcli/fs/lib/mkdir/polyfill.js +0 -81
@@ -7,11 +7,11 @@ included:
7
7
  injectedDeps: {}
8
8
  layoutVersion: 5
9
9
  nodeLinker: hoisted
10
- packageManager: pnpm@7.12.2
10
+ packageManager: pnpm@7.13.1
11
11
  pendingBuilds:
12
- - /node-gyp/9.1.0
12
+ - /node-gyp/9.2.0
13
13
  - /encoding/0.1.13
14
- prunedAt: Mon, 03 Oct 2022 01:04:59 GMT
14
+ prunedAt: Wed, 05 Oct 2022 21:29:54 GMT
15
15
  publicHoistPattern:
16
16
  - '*eslint*'
17
17
  - '*prettier*'
@@ -1,10 +1,10 @@
1
1
  lockfileVersion: 5.4
2
2
 
3
3
  specifiers:
4
- node-gyp: ^9.1.0
4
+ node-gyp: ^9.2.0
5
5
 
6
6
  optionalDependencies:
7
- node-gyp: 9.1.0
7
+ node-gyp: 9.2.0
8
8
 
9
9
  packages:
10
10
 
@@ -13,8 +13,8 @@ packages:
13
13
  dev: false
14
14
  optional: true
15
15
 
16
- /@npmcli/fs/2.1.0:
17
- resolution: {integrity: sha512-DmfBvNXGaetMxj9LTp8NAN9vEidXURrf5ZTslQzEAi/6GbW+4yjaLFQc6Tue5cpZ9Frlk4OBo/Snf1Bh/S7qTQ==}
16
+ /@npmcli/fs/2.1.2:
17
+ resolution: {integrity: sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==}
18
18
  engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
19
19
  dependencies:
20
20
  '@gar/promisify': 1.1.3
@@ -22,8 +22,8 @@ packages:
22
22
  dev: false
23
23
  optional: true
24
24
 
25
- /@npmcli/move-file/2.0.0:
26
- resolution: {integrity: sha512-UR6D5f4KEGWJV6BGPH3Qb2EtgH+t+1XQ1Tt85c7qicN6cezzuHPdZwwAxqZr4JLtnQu0LZsTza/5gmNmSl8XLg==}
25
+ /@npmcli/move-file/2.0.1:
26
+ resolution: {integrity: sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==}
27
27
  engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
28
28
  dependencies:
29
29
  mkdirp: 1.0.4
@@ -84,9 +84,9 @@ packages:
84
84
  dev: false
85
85
  optional: true
86
86
 
87
- /are-we-there-yet/3.0.0:
88
- resolution: {integrity: sha512-0GWpv50YSOcLXaN6/FAKY3vfRbllXWV2xvfA/oKJF8pzFhWXPV+yjhJXDBbjscDYowv7Yw1A3uigpzn5iEGTyw==}
89
- engines: {node: ^12.13.0 || ^14.15.0 || >=16}
87
+ /are-we-there-yet/3.0.1:
88
+ resolution: {integrity: sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==}
89
+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
90
90
  dependencies:
91
91
  delegates: 1.0.0
92
92
  readable-stream: 3.6.0
@@ -113,17 +113,17 @@ packages:
113
113
  dev: false
114
114
  optional: true
115
115
 
116
- /cacache/16.1.1:
117
- resolution: {integrity: sha512-VDKN+LHyCQXaaYZ7rA/qtkURU+/yYhviUdvqEv2LT6QPZU8jpyzEkEVAcKlKLt5dJ5BRp11ym8lo3NKLluEPLg==}
116
+ /cacache/16.1.3:
117
+ resolution: {integrity: sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==}
118
118
  engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
119
119
  dependencies:
120
- '@npmcli/fs': 2.1.0
121
- '@npmcli/move-file': 2.0.0
120
+ '@npmcli/fs': 2.1.2
121
+ '@npmcli/move-file': 2.0.1
122
122
  chownr: 2.0.0
123
123
  fs-minipass: 2.1.0
124
124
  glob: 8.0.3
125
125
  infer-owner: 1.0.4
126
- lru-cache: 7.13.0
126
+ lru-cache: 7.14.0
127
127
  minipass: 3.3.4
128
128
  minipass-collect: 1.0.2
129
129
  minipass-flush: 1.0.5
@@ -134,7 +134,7 @@ packages:
134
134
  rimraf: 3.0.2
135
135
  ssri: 9.0.1
136
136
  tar: 6.1.11
137
- unique-filename: 1.1.1
137
+ unique-filename: 2.0.1
138
138
  transitivePeerDependencies:
139
139
  - bluebird
140
140
  dev: false
@@ -351,8 +351,8 @@ packages:
351
351
  dev: false
352
352
  optional: true
353
353
 
354
- /ip/1.1.8:
355
- resolution: {integrity: sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==}
354
+ /ip/2.0.0:
355
+ resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==}
356
356
  dev: false
357
357
  optional: true
358
358
 
@@ -380,26 +380,26 @@ packages:
380
380
  dev: false
381
381
  optional: true
382
382
 
383
- /lru-cache/7.13.0:
384
- resolution: {integrity: sha512-SNFKDOORR41fkWP3DXiIUvXvfzDRPg3bxD1+29iRyP2ZW+Njp2o6zhx9YkEpq1tbP0AEDNW2VBUedzDIxmNhdg==}
383
+ /lru-cache/7.14.0:
384
+ resolution: {integrity: sha512-EIRtP1GrSJny0dqb50QXRUNBxHJhcpxHC++M5tD7RYbvLLn5KVWKsbyswSSqDuU15UFi3bgTQIY8nhDMeF6aDQ==}
385
385
  engines: {node: '>=12'}
386
386
  dev: false
387
387
  optional: true
388
388
 
389
- /make-fetch-happen/10.1.8:
390
- resolution: {integrity: sha512-0ASJbG12Au6+N5I84W+8FhGS6iM8MyzvZady+zaQAu+6IOaESFzCLLD0AR1sAFF3Jufi8bxm586ABN6hWd3k7g==}
389
+ /make-fetch-happen/10.2.1:
390
+ resolution: {integrity: sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==}
391
391
  engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
392
392
  dependencies:
393
393
  agentkeepalive: 4.2.1
394
- cacache: 16.1.1
394
+ cacache: 16.1.3
395
395
  http-cache-semantics: 4.1.0
396
396
  http-proxy-agent: 5.0.0
397
397
  https-proxy-agent: 5.0.1
398
398
  is-lambda: 1.0.1
399
- lru-cache: 7.13.0
399
+ lru-cache: 7.14.0
400
400
  minipass: 3.3.4
401
401
  minipass-collect: 1.0.2
402
- minipass-fetch: 2.1.0
402
+ minipass-fetch: 2.1.2
403
403
  minipass-flush: 1.0.5
404
404
  minipass-pipeline: 1.2.4
405
405
  negotiator: 0.6.3
@@ -435,8 +435,8 @@ packages:
435
435
  dev: false
436
436
  optional: true
437
437
 
438
- /minipass-fetch/2.1.0:
439
- resolution: {integrity: sha512-H9U4UVBGXEyyWJnqYDCLp1PwD8XIkJ4akNHp1aGVI+2Ym7wQMlxDKi4IB4JbmyU+pl9pEs/cVrK6cOuvmbK4Sg==}
438
+ /minipass-fetch/2.1.2:
439
+ resolution: {integrity: sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==}
440
440
  engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
441
441
  dependencies:
442
442
  minipass: 3.3.4
@@ -511,8 +511,8 @@ packages:
511
511
  dev: false
512
512
  optional: true
513
513
 
514
- /node-gyp/9.1.0:
515
- resolution: {integrity: sha512-HkmN0ZpQJU7FLbJauJTHkHlSVAXlNGDAzH/VYFZGDOnFyn/Na3GlNJfkudmufOdS6/jNFhy88ObzL7ERz9es1g==}
514
+ /node-gyp/9.2.0:
515
+ resolution: {integrity: sha512-/+/YxGfIJOh/fnMsr4Ep0v6oOIjnO1BgLd2dcDspBX1spTkQU7xSIox5RdRE/2/Uq3ZwK8Z5swRIbMUmPlslmg==}
516
516
  engines: {node: ^12.22 || ^14.13 || >=16}
517
517
  hasBin: true
518
518
  requiresBuild: true
@@ -520,8 +520,8 @@ packages:
520
520
  env-paths: 2.2.1
521
521
  glob: 7.2.3
522
522
  graceful-fs: 4.2.10
523
- make-fetch-happen: 10.1.8
524
- nopt: 5.0.0
523
+ make-fetch-happen: 10.2.1
524
+ nopt: 6.0.0
525
525
  npmlog: 6.0.2
526
526
  rimraf: 3.0.2
527
527
  semver: 7.3.7
@@ -533,9 +533,9 @@ packages:
533
533
  dev: false
534
534
  optional: true
535
535
 
536
- /nopt/5.0.0:
537
- resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==}
538
- engines: {node: '>=6'}
536
+ /nopt/6.0.0:
537
+ resolution: {integrity: sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==}
538
+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
539
539
  hasBin: true
540
540
  dependencies:
541
541
  abbrev: 1.1.1
@@ -546,7 +546,7 @@ packages:
546
546
  resolution: {integrity: sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==}
547
547
  engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
548
548
  dependencies:
549
- are-we-there-yet: 3.0.0
549
+ are-we-there-yet: 3.0.1
550
550
  console-control-strings: 1.1.0
551
551
  gauge: 4.0.4
552
552
  set-blocking: 2.0.0
@@ -658,17 +658,17 @@ packages:
658
658
  dependencies:
659
659
  agent-base: 6.0.2
660
660
  debug: 4.3.4
661
- socks: 2.6.2
661
+ socks: 2.7.1
662
662
  transitivePeerDependencies:
663
663
  - supports-color
664
664
  dev: false
665
665
  optional: true
666
666
 
667
- /socks/2.6.2:
668
- resolution: {integrity: sha512-zDZhHhZRY9PxRruRMR7kMhnf3I8hDs4S3f9RecfnGxvcBHQcKcIH/oUcEWffsfl1XxdYlA7nnlGbbTvPz9D8gA==}
667
+ /socks/2.7.1:
668
+ resolution: {integrity: sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==}
669
669
  engines: {node: '>= 10.13.0', npm: '>= 3.0.0'}
670
670
  dependencies:
671
- ip: 1.1.8
671
+ ip: 2.0.0
672
672
  smart-buffer: 4.2.0
673
673
  dev: false
674
674
  optional: true
@@ -719,15 +719,17 @@ packages:
719
719
  dev: false
720
720
  optional: true
721
721
 
722
- /unique-filename/1.1.1:
723
- resolution: {integrity: sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==}
722
+ /unique-filename/2.0.1:
723
+ resolution: {integrity: sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==}
724
+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
724
725
  dependencies:
725
- unique-slug: 2.0.2
726
+ unique-slug: 3.0.0
726
727
  dev: false
727
728
  optional: true
728
729
 
729
- /unique-slug/2.0.2:
730
- resolution: {integrity: sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==}
730
+ /unique-slug/3.0.0:
731
+ resolution: {integrity: sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==}
732
+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
731
733
  dependencies:
732
734
  imurmurhash: 0.1.4
733
735
  dev: false
@@ -765,4 +767,4 @@ packages:
765
767
  optional: true
766
768
 
767
769
  time:
768
- /node-gyp/9.1.0: '2022-07-14T01:03:18.318Z'
770
+ /node-gyp/9.2.0: '2022-10-04T10:40:24.552Z'
@@ -1,6 +1,6 @@
1
1
  const { dirname, resolve } = require('path')
2
+ const url = require('url')
2
3
 
3
- const fileURLToPath = require('./file-url-to-path/index.js')
4
4
  const fs = require('../fs.js')
5
5
 
6
6
  // given a path, find the owner of the nearest parent
@@ -13,7 +13,7 @@ const find = (path) => {
13
13
  // fs methods accept URL objects with a scheme of file: so we need to unwrap
14
14
  // those into an actual path string before we can resolve it
15
15
  const resolved = path != null && path.href && path.origin
16
- ? resolve(fileURLToPath(path))
16
+ ? resolve(url.fileURLToPath(path))
17
17
  : resolve(path)
18
18
 
19
19
  let stat
@@ -50,11 +50,15 @@ const update = (path, uid, gid) => {
50
50
  if (uid === stat.uid && gid === stat.gid) {
51
51
  return
52
52
  }
53
- } catch (err) {}
53
+ } catch {
54
+ // ignore errors
55
+ }
54
56
 
55
57
  try {
56
58
  fs.chownSync(path, uid, gid)
57
- } catch (err) {}
59
+ } catch {
60
+ // ignore errors
61
+ }
58
62
  }
59
63
 
60
64
  // accepts a `path` and the `owner` property of an options object and normalizes
@@ -1,6 +1,6 @@
1
1
  const { dirname, resolve } = require('path')
2
+ const url = require('url')
2
3
 
3
- const fileURLToPath = require('./file-url-to-path/index.js')
4
4
  const fs = require('../fs.js')
5
5
 
6
6
  // given a path, find the owner of the nearest parent
@@ -13,7 +13,7 @@ const find = async (path) => {
13
13
  // fs methods accept URL objects with a scheme of file: so we need to unwrap
14
14
  // those into an actual path string before we can resolve it
15
15
  const resolved = path != null && path.href && path.origin
16
- ? resolve(fileURLToPath(path))
16
+ ? resolve(url.fileURLToPath(path))
17
17
  : resolve(path)
18
18
 
19
19
  let stat
@@ -50,11 +50,15 @@ const update = async (path, uid, gid) => {
50
50
  if (uid === stat.uid && gid === stat.gid) {
51
51
  return
52
52
  }
53
- } catch (err) {}
53
+ } catch {
54
+ // ignore errors
55
+ }
54
56
 
55
57
  try {
56
58
  await fs.chown(path, uid, gid)
57
- } catch (err) {}
59
+ } catch {
60
+ // ignore errors
61
+ }
58
62
  }
59
63
 
60
64
  // accepts a `path` and the `owner` property of an options object and normalizes
@@ -2,7 +2,7 @@ module.exports = {
2
2
  ...require('./fs.js'),
3
3
  copyFile: require('./copy-file.js'),
4
4
  cp: require('./cp/index.js'),
5
- mkdir: require('./mkdir/index.js'),
5
+ mkdir: require('./mkdir.js'),
6
6
  mkdtemp: require('./mkdtemp.js'),
7
7
  rm: require('./rm/index.js'),
8
8
  withTempDir: require('./with-temp-dir.js'),
@@ -0,0 +1,19 @@
1
+ const fs = require('./fs.js')
2
+ const getOptions = require('./common/get-options.js')
3
+ const withOwner = require('./with-owner.js')
4
+
5
+ // extends mkdir with the ability to specify an owner of the new dir
6
+ const mkdir = async (path, opts) => {
7
+ const options = getOptions(opts, {
8
+ copy: ['mode', 'recursive'],
9
+ wrap: 'mode',
10
+ })
11
+
12
+ return withOwner(
13
+ path,
14
+ () => fs.mkdir(path, options),
15
+ opts
16
+ )
17
+ }
18
+
19
+ module.exports = mkdir
@@ -1,7 +1,7 @@
1
1
  const { join, sep } = require('path')
2
2
 
3
3
  const getOptions = require('./common/get-options.js')
4
- const mkdir = require('./mkdir/index.js')
4
+ const mkdir = require('./mkdir.js')
5
5
  const mkdtemp = require('./mkdtemp.js')
6
6
  const rm = require('./rm/index.js')
7
7
 
@@ -27,7 +27,9 @@ const withTempDir = async (root, fn, opts) => {
27
27
 
28
28
  try {
29
29
  await rm(target, { force: true, recursive: true })
30
- } catch {}
30
+ } catch {
31
+ // ignore errors
32
+ }
31
33
 
32
34
  if (err) {
33
35
  throw err
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/fs",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "filesystem utilities for the npm cli",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -33,8 +33,8 @@
33
33
  "license": "ISC",
34
34
  "devDependencies": {
35
35
  "@npmcli/eslint-config": "^3.0.1",
36
- "@npmcli/template-oss": "3.1.2",
37
- "tap": "^15.1.6"
36
+ "@npmcli/template-oss": "3.5.0",
37
+ "tap": "^16.0.1"
38
38
  },
39
39
  "dependencies": {
40
40
  "@gar/promisify": "^1.1.3",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "templateOSS": {
47
47
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
48
- "version": "3.1.2"
48
+ "version": "3.5.0"
49
49
  }
50
50
  }
@@ -97,14 +97,19 @@ const moveFile = async (source, destination, options = {}, root = true, symlinks
97
97
  }
98
98
  // try to determine what the actual file is so we can create the correct
99
99
  // type of symlink in windows
100
- let targetStat
100
+ let targetStat = 'file'
101
101
  try {
102
102
  targetStat = await stat(resolve(dirname(symSource), target))
103
- } catch (err) {}
103
+ if (targetStat.isDirectory()) {
104
+ targetStat = 'junction'
105
+ }
106
+ } catch {
107
+ // targetStat remains 'file'
108
+ }
104
109
  await symlink(
105
110
  target,
106
111
  symDestination,
107
- targetStat && targetStat.isDirectory() ? 'junction' : 'file'
112
+ targetStat
108
113
  )
109
114
  }))
110
115
  await rimraf(source)
@@ -157,14 +162,19 @@ const moveFileSync = (source, destination, options = {}, root = true, symlinks =
157
162
  }
158
163
  // try to determine what the actual file is so we can create the correct
159
164
  // type of symlink in windows
160
- let targetStat
165
+ let targetStat = 'file'
161
166
  try {
162
167
  targetStat = statSync(resolve(dirname(symSource), target))
163
- } catch (err) {}
168
+ if (targetStat.isDirectory()) {
169
+ targetStat = 'junction'
170
+ }
171
+ } catch {
172
+ // targetStat remains 'file'
173
+ }
164
174
  symlinkSync(
165
175
  target,
166
176
  symDestination,
167
- targetStat && targetStat.isDirectory() ? 'junction' : 'file'
177
+ targetStat
168
178
  )
169
179
  }
170
180
  rimrafSync(source)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/move-file",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "files": [
5
5
  "bin/",
6
6
  "lib/"
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@npmcli/eslint-config": "^3.0.1",
16
- "@npmcli/template-oss": "3.2.2",
16
+ "@npmcli/template-oss": "3.5.0",
17
17
  "tap": "^16.0.1"
18
18
  },
19
19
  "scripts": {
@@ -42,6 +42,6 @@
42
42
  "author": "GitHub Inc.",
43
43
  "templateOSS": {
44
44
  "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
45
- "version": "3.2.2"
45
+ "version": "3.5.0"
46
46
  }
47
47
  }
@@ -103,7 +103,7 @@ TrackerGroup.prototype.finish = function () {
103
103
  var buffer = ' '
104
104
  TrackerGroup.prototype.debug = function (depth) {
105
105
  depth = depth || 0
106
- var indent = depth ? buffer.substr(0, depth) : ''
106
+ var indent = depth ? buffer.slice(0, depth) : ''
107
107
  var output = indent + (this.name || 'top') + ': ' + this.completed() + '\n'
108
108
  this.trackers.forEach(function (tracker) {
109
109
  if (tracker instanceof TrackerGroup) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "are-we-there-yet",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Keep track of the overall completion of many disparate processes",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
7
7
  "test": "tap",
8
8
  "npmclilint": "npmcli-lint",
9
- "lint": "eslint '**/*.js'",
9
+ "lint": "eslint \"**/*.js\"",
10
10
  "lintfix": "npm run lint -- --fix",
11
11
  "posttest": "npm run lint",
12
12
  "postsnap": "npm run lintfix --",
@@ -14,8 +14,8 @@
14
14
  "postversion": "npm publish",
15
15
  "prepublishOnly": "git push origin --follow-tags",
16
16
  "snap": "tap",
17
- "postlint": "npm-template-check",
18
- "template-copy": "npm-template-copy --force"
17
+ "postlint": "template-oss-check",
18
+ "template-oss-apply": "template-oss-apply --force"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
@@ -28,22 +28,20 @@
28
28
  },
29
29
  "homepage": "https://github.com/npm/are-we-there-yet",
30
30
  "devDependencies": {
31
- "@npmcli/eslint-config": "^2.0.0",
32
- "@npmcli/template-oss": "^2.7.1",
33
- "eslint": "^8.8.0",
34
- "eslint-plugin-node": "^11.1.0",
35
- "tap": "^15.0.9"
31
+ "@npmcli/eslint-config": "^3.0.1",
32
+ "@npmcli/template-oss": "3.5.0",
33
+ "tap": "^16.0.1"
36
34
  },
37
35
  "dependencies": {
38
36
  "delegates": "^1.0.0",
39
37
  "readable-stream": "^3.6.0"
40
38
  },
41
39
  "files": [
42
- "bin",
43
- "lib"
40
+ "bin/",
41
+ "lib/"
44
42
  ],
45
43
  "engines": {
46
- "node": "^12.13.0 || ^14.15.0 || >=16"
44
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
47
45
  },
48
46
  "tap": {
49
47
  "branches": 68,
@@ -52,6 +50,7 @@
52
50
  "lines": 92
53
51
  },
54
52
  "templateOSS": {
55
- "version": "2.7.1"
53
+ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
54
+ "version": "3.5.0"
56
55
  }
57
56
  }
@@ -81,7 +81,7 @@ function readStream (cache, integrity, opts = {}) {
81
81
  return stream.emit('error', sizeError(size, stat.size))
82
82
  }
83
83
 
84
- readPipeline(cpath, stat.size, sri, stream)
84
+ return readPipeline(cpath, stat.size, sri, stream)
85
85
  }).catch(err => stream.emit('error', err))
86
86
 
87
87
  return stream
@@ -80,9 +80,11 @@ class CacacheWriteStream extends Flush {
80
80
  // defer this one tick by rejecting a promise on it.
81
81
  return Promise.reject(e).catch(cb)
82
82
  }
83
+ // eslint-disable-next-line promise/catch-or-return
83
84
  this.handleContentP.then(
84
85
  (res) => {
85
86
  res.integrity && this.emit('integrity', res.integrity)
87
+ // eslint-disable-next-line promise/always-return
86
88
  res.size !== null && this.emit('size', res.size)
87
89
  cb()
88
90
  },
@@ -285,6 +285,7 @@ function lsStream (cache) {
285
285
  }))
286
286
  }))
287
287
  stream.end()
288
+ return stream
288
289
  }).catch(err => stream.emit('error', err))
289
290
 
290
291
  return stream
@@ -155,6 +155,7 @@ function getStream (cache, key, opts = {}) {
155
155
  stream.unshift(memoStream)
156
156
  }
157
157
  stream.unshift(src)
158
+ return stream
158
159
  }).catch((err) => stream.emit('error', err))
159
160
 
160
161
  return stream
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cacache",
3
- "version": "16.1.1",
3
+ "version": "16.1.3",
4
4
  "cache-version": {
5
5
  "content": "2",
6
6
  "index": "5"
@@ -65,7 +65,7 @@
65
65
  "rimraf": "^3.0.2",
66
66
  "ssri": "^9.0.0",
67
67
  "tar": "^6.1.11",
68
- "unique-filename": "^1.1.1"
68
+ "unique-filename": "^2.0.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@npmcli/eslint-config": "^3.0.1",