pnpm 10.27.0 → 10.28.1

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 (61) hide show
  1. package/dist/node_modules/.modules.yaml +7 -7
  2. package/dist/node_modules/.pnpm/lock.yaml +5 -5
  3. package/dist/node_modules/.pnpm-workspace-state-v1.json +1 -1
  4. package/dist/node_modules/tar/dist/commonjs/extract.js +17 -7
  5. package/dist/node_modules/tar/dist/commonjs/extract.js.map +1 -1
  6. package/dist/node_modules/tar/dist/commonjs/header.d.ts.map +1 -1
  7. package/dist/node_modules/tar/dist/commonjs/header.js +17 -7
  8. package/dist/node_modules/tar/dist/commonjs/header.js.map +1 -1
  9. package/dist/node_modules/tar/dist/commonjs/index.js +17 -7
  10. package/dist/node_modules/tar/dist/commonjs/index.js.map +1 -1
  11. package/dist/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -1
  12. package/dist/node_modules/tar/dist/commonjs/list.d.ts.map +1 -1
  13. package/dist/node_modules/tar/dist/commonjs/list.js +17 -7
  14. package/dist/node_modules/tar/dist/commonjs/list.js.map +1 -1
  15. package/dist/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -1
  16. package/dist/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -1
  17. package/dist/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -1
  18. package/dist/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -1
  19. package/dist/node_modules/tar/dist/commonjs/options.d.ts.map +1 -1
  20. package/dist/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -1
  21. package/dist/node_modules/tar/dist/commonjs/pack.js +17 -7
  22. package/dist/node_modules/tar/dist/commonjs/pack.js.map +1 -1
  23. package/dist/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -1
  24. package/dist/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -1
  25. package/dist/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -1
  26. package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -1
  27. package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -1
  28. package/dist/node_modules/tar/dist/commonjs/types.d.ts.map +1 -1
  29. package/dist/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -1
  30. package/dist/node_modules/tar/dist/commonjs/unpack.js +50 -26
  31. package/dist/node_modules/tar/dist/commonjs/unpack.js.map +1 -1
  32. package/dist/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -1
  33. package/dist/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -1
  34. package/dist/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -1
  35. package/dist/node_modules/tar/dist/commonjs/write-entry.js +17 -7
  36. package/dist/node_modules/tar/dist/commonjs/write-entry.js.map +1 -1
  37. package/dist/node_modules/tar/dist/esm/header.d.ts.map +1 -1
  38. package/dist/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -1
  39. package/dist/node_modules/tar/dist/esm/list.d.ts.map +1 -1
  40. package/dist/node_modules/tar/dist/esm/make-command.d.ts.map +1 -1
  41. package/dist/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -1
  42. package/dist/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -1
  43. package/dist/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -1
  44. package/dist/node_modules/tar/dist/esm/options.d.ts.map +1 -1
  45. package/dist/node_modules/tar/dist/esm/pack.d.ts.map +1 -1
  46. package/dist/node_modules/tar/dist/esm/parse.d.ts.map +1 -1
  47. package/dist/node_modules/tar/dist/esm/pax.d.ts.map +1 -1
  48. package/dist/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -1
  49. package/dist/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -1
  50. package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -1
  51. package/dist/node_modules/tar/dist/esm/types.d.ts.map +1 -1
  52. package/dist/node_modules/tar/dist/esm/unpack.d.ts.map +1 -1
  53. package/dist/node_modules/tar/dist/esm/unpack.js +33 -19
  54. package/dist/node_modules/tar/dist/esm/unpack.js.map +1 -1
  55. package/dist/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -1
  56. package/dist/node_modules/tar/dist/esm/winchars.d.ts.map +1 -1
  57. package/dist/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -1
  58. package/dist/node_modules/tar/package.json +8 -63
  59. package/dist/pnpm.cjs +31343 -30232
  60. package/dist/worker.js +145 -15
  61. package/package.json +1 -1
package/dist/worker.js CHANGED
@@ -2443,8 +2443,8 @@ var require_parseTarball = __commonJS({
2443
2443
  fileName = `${prefix}/${fileName}`;
2444
2444
  }
2445
2445
  }
2446
- if (fileName.includes("./")) {
2447
- fileName = path_1.default.posix.join("/", fileName).slice(1);
2446
+ if (fileName.includes("./") || fileName.includes(".\\")) {
2447
+ fileName = path_1.default.posix.join("/", fileName.replaceAll("\\", "/")).slice(1);
2448
2448
  }
2449
2449
  switch (fileType) {
2450
2450
  case 0:
@@ -4181,9 +4181,9 @@ var require_lib3 = __commonJS({
4181
4181
  }
4182
4182
  });
4183
4183
 
4184
- // ../node_modules/.pnpm/rename-overwrite@6.0.3/node_modules/rename-overwrite/index.js
4184
+ // ../node_modules/.pnpm/rename-overwrite@6.0.2/node_modules/rename-overwrite/index.js
4185
4185
  var require_rename_overwrite = __commonJS({
4186
- "../node_modules/.pnpm/rename-overwrite@6.0.3/node_modules/rename-overwrite/index.js"(exports2, module2) {
4186
+ "../node_modules/.pnpm/rename-overwrite@6.0.2/node_modules/rename-overwrite/index.js"(exports2, module2) {
4187
4187
  "use strict";
4188
4188
  var fs = require("fs");
4189
4189
  var { copySync, copy } = require_lib3();
@@ -4204,13 +4204,12 @@ var require_rename_overwrite = __commonJS({
4204
4204
  break;
4205
4205
  // Windows Antivirus issues
4206
4206
  case "EPERM":
4207
- case "EACCESS":
4208
- case "EBUSY": {
4207
+ case "EACCESS": {
4209
4208
  await rimraf(newPath);
4210
4209
  const start = Date.now();
4211
4210
  let backoff = 0;
4212
4211
  let lastError = err;
4213
- while (Date.now() - start < 6e4 && (lastError.code === "EPERM" || lastError.code === "EACCESS" || lastError.code === "EBUSY")) {
4212
+ while (Date.now() - start < 6e4 && (lastError.code === "EPERM" || lastError.code === "EACCESS")) {
4214
4213
  await new Promise((resolve) => setTimeout(resolve, backoff));
4215
4214
  try {
4216
4215
  await fs.promises.rename(oldPath, newPath);
@@ -4261,13 +4260,12 @@ var require_rename_overwrite = __commonJS({
4261
4260
  switch (err.code) {
4262
4261
  // Windows Antivirus issues
4263
4262
  case "EPERM":
4264
- case "EACCESS":
4265
- case "EBUSY": {
4263
+ case "EACCESS": {
4266
4264
  rimraf.sync(newPath);
4267
4265
  const start = Date.now();
4268
4266
  let backoff = 0;
4269
4267
  let lastError = err;
4270
- while (Date.now() - start < 6e4 && (lastError.code === "EPERM" || lastError.code === "EACCESS" || lastError.code === "EBUSY")) {
4268
+ while (Date.now() - start < 6e4 && (lastError.code === "EPERM" || lastError.code === "EACCESS")) {
4271
4269
  const waitUntil = Date.now() + backoff;
4272
4270
  while (waitUntil > Date.now()) {
4273
4271
  }
@@ -4678,9 +4676,9 @@ var require_individual = __commonJS({
4678
4676
  }
4679
4677
  });
4680
4678
 
4681
- // ../node_modules/.pnpm/bole@5.0.19/node_modules/bole/format.js
4679
+ // ../node_modules/.pnpm/bole@5.0.17/node_modules/bole/format.js
4682
4680
  var require_format = __commonJS({
4683
- "../node_modules/.pnpm/bole@5.0.19/node_modules/bole/format.js"(exports2, module2) {
4681
+ "../node_modules/.pnpm/bole@5.0.17/node_modules/bole/format.js"(exports2, module2) {
4684
4682
  var utilformat = require("util").format;
4685
4683
  function format(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) {
4686
4684
  if (a16 !== void 0) {
@@ -4734,9 +4732,9 @@ var require_format = __commonJS({
4734
4732
  }
4735
4733
  });
4736
4734
 
4737
- // ../node_modules/.pnpm/bole@5.0.19/node_modules/bole/bole.js
4735
+ // ../node_modules/.pnpm/bole@5.0.17/node_modules/bole/bole.js
4738
4736
  var require_bole = __commonJS({
4739
- "../node_modules/.pnpm/bole@5.0.19/node_modules/bole/bole.js"(exports2, module2) {
4737
+ "../node_modules/.pnpm/bole@5.0.17/node_modules/bole/bole.js"(exports2, module2) {
4740
4738
  "use strict";
4741
4739
  var _stringify = require_fast_safe_stringify();
4742
4740
  var individual = require_individual()("$$bole", { fastTime: false });
@@ -8597,6 +8595,138 @@ var require_better_path_resolve = __commonJS({
8597
8595
  }
8598
8596
  });
8599
8597
 
8598
+ // ../node_modules/.pnpm/rename-overwrite@6.0.3/node_modules/rename-overwrite/index.js
8599
+ var require_rename_overwrite2 = __commonJS({
8600
+ "../node_modules/.pnpm/rename-overwrite@6.0.3/node_modules/rename-overwrite/index.js"(exports2, module2) {
8601
+ "use strict";
8602
+ var fs = require("fs");
8603
+ var { copySync, copy } = require_lib3();
8604
+ var path = require("path");
8605
+ var rimraf = require_rimraf();
8606
+ module2.exports = async function renameOverwrite(oldPath, newPath, retry = 0) {
8607
+ try {
8608
+ await fs.promises.rename(oldPath, newPath);
8609
+ } catch (err) {
8610
+ retry++;
8611
+ if (retry > 3) throw err;
8612
+ switch (err.code) {
8613
+ case "ENOTEMPTY":
8614
+ case "EEXIST":
8615
+ case "ENOTDIR":
8616
+ await rimraf(newPath);
8617
+ await renameOverwrite(oldPath, newPath, retry);
8618
+ break;
8619
+ // Windows Antivirus issues
8620
+ case "EPERM":
8621
+ case "EACCESS":
8622
+ case "EBUSY": {
8623
+ await rimraf(newPath);
8624
+ const start = Date.now();
8625
+ let backoff = 0;
8626
+ let lastError = err;
8627
+ while (Date.now() - start < 6e4 && (lastError.code === "EPERM" || lastError.code === "EACCESS" || lastError.code === "EBUSY")) {
8628
+ await new Promise((resolve) => setTimeout(resolve, backoff));
8629
+ try {
8630
+ await fs.promises.rename(oldPath, newPath);
8631
+ return;
8632
+ } catch (err2) {
8633
+ lastError = err2;
8634
+ }
8635
+ if (backoff < 100) {
8636
+ backoff += 10;
8637
+ }
8638
+ }
8639
+ throw lastError;
8640
+ }
8641
+ case "ENOENT":
8642
+ try {
8643
+ await fs.promises.stat(oldPath);
8644
+ } catch (statErr) {
8645
+ if (statErr.code === "ENOENT") {
8646
+ throw statErr;
8647
+ }
8648
+ }
8649
+ await fs.promises.mkdir(path.dirname(newPath), { recursive: true });
8650
+ await renameOverwrite(oldPath, newPath, retry);
8651
+ break;
8652
+ // Crossing filesystem boundaries so rename is not available
8653
+ case "EXDEV":
8654
+ try {
8655
+ await rimraf(newPath);
8656
+ } catch (rimrafErr) {
8657
+ if (rimrafErr.code !== "ENOENT") {
8658
+ throw rimrafErr;
8659
+ }
8660
+ }
8661
+ await copy(oldPath, newPath);
8662
+ await rimraf(oldPath);
8663
+ break;
8664
+ default:
8665
+ throw err;
8666
+ }
8667
+ }
8668
+ };
8669
+ module2.exports.sync = function renameOverwriteSync(oldPath, newPath, retry = 0) {
8670
+ try {
8671
+ fs.renameSync(oldPath, newPath);
8672
+ } catch (err) {
8673
+ retry++;
8674
+ if (retry > 3) throw err;
8675
+ switch (err.code) {
8676
+ // Windows Antivirus issues
8677
+ case "EPERM":
8678
+ case "EACCESS":
8679
+ case "EBUSY": {
8680
+ rimraf.sync(newPath);
8681
+ const start = Date.now();
8682
+ let backoff = 0;
8683
+ let lastError = err;
8684
+ while (Date.now() - start < 6e4 && (lastError.code === "EPERM" || lastError.code === "EACCESS" || lastError.code === "EBUSY")) {
8685
+ const waitUntil = Date.now() + backoff;
8686
+ while (waitUntil > Date.now()) {
8687
+ }
8688
+ try {
8689
+ fs.renameSync(oldPath, newPath);
8690
+ return;
8691
+ } catch (err2) {
8692
+ lastError = err2;
8693
+ }
8694
+ if (backoff < 100) {
8695
+ backoff += 10;
8696
+ }
8697
+ }
8698
+ throw lastError;
8699
+ }
8700
+ case "ENOTEMPTY":
8701
+ case "EEXIST":
8702
+ case "ENOTDIR":
8703
+ rimraf.sync(newPath);
8704
+ fs.renameSync(oldPath, newPath);
8705
+ return;
8706
+ case "ENOENT":
8707
+ fs.mkdirSync(path.dirname(newPath), { recursive: true });
8708
+ renameOverwriteSync(oldPath, newPath, retry);
8709
+ return;
8710
+ // Crossing filesystem boundaries so rename is not available
8711
+ case "EXDEV":
8712
+ try {
8713
+ rimraf.sync(newPath);
8714
+ } catch (rimrafErr) {
8715
+ if (rimrafErr.code !== "ENOENT") {
8716
+ throw rimrafErr;
8717
+ }
8718
+ }
8719
+ copySync(oldPath, newPath);
8720
+ rimraf.sync(oldPath);
8721
+ break;
8722
+ default:
8723
+ throw err;
8724
+ }
8725
+ }
8726
+ };
8727
+ }
8728
+ });
8729
+
8600
8730
  // ../node_modules/.pnpm/symlink-dir@6.0.5/node_modules/symlink-dir/dist/index.js
8601
8731
  var require_dist3 = __commonJS({
8602
8732
  "../node_modules/.pnpm/symlink-dir@6.0.5/node_modules/symlink-dir/dist/index.js"(exports2, module2) {
@@ -8605,7 +8735,7 @@ var require_dist3 = __commonJS({
8605
8735
  var fs_1 = require("fs");
8606
8736
  var util = require("util");
8607
8737
  var pathLib = require("path");
8608
- var renameOverwrite = require_rename_overwrite();
8738
+ var renameOverwrite = require_rename_overwrite2();
8609
8739
  var IS_WINDOWS = process.platform === "win32" || /^(msys|cygwin)$/.test(process.env.OSTYPE);
8610
8740
  var symlinkType = IS_WINDOWS ? "junction" : "dir";
8611
8741
  var resolveSrc = IS_WINDOWS ? resolveSrcOnWin : resolveSrcOnNonWin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pnpm",
3
- "version": "10.27.0",
3
+ "version": "10.28.1",
4
4
  "description": "Fast, disk space efficient package manager",
5
5
  "keywords": [
6
6
  "pnpm",