@pnpm/exe 11.18.0 → 11.19.0

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 (3) hide show
  1. package/dist/pnpm.mjs +1473 -1336
  2. package/dist/worker.js +32 -23
  3. package/package.json +9 -9
package/dist/worker.js CHANGED
@@ -9084,7 +9084,7 @@ import fs11 from "node:fs";
9084
9084
  import { createRequire as createRequire2 } from "node:module";
9085
9085
  import { pathToFileURL } from "node:url";
9086
9086
 
9087
- // ../../../../../setup-pnpm/store/v11/links/@/msgpackr/2.0.4/4846a2ae9cbdea249e2eda7b79740c6d2b16af4f09769fa313dd4f4064702820/node_modules/msgpackr/unpack.js
9087
+ // ../../../../../setup-pnpm/store/v11/links/@/msgpackr/2.0.5/120f9075aeb95a409234328542916ec7ee3248f89cf91e593ced8e5252fd92a6/node_modules/msgpackr/unpack.js
9088
9088
  var decoder;
9089
9089
  try {
9090
9090
  decoder = new TextDecoder();
@@ -9658,36 +9658,45 @@ function readStringJS(length) {
9658
9658
  if ((byte1 & 128) === 0) {
9659
9659
  units.push(byte1);
9660
9660
  } else if ((byte1 & 224) === 192) {
9661
- const byte2 = src[position++] & 63;
9662
- const codePoint = (byte1 & 31) << 6 | byte2;
9663
- if (codePoint < 128) {
9661
+ if (byte1 < 194 || position >= end || (src[position] & 192) !== 128) {
9664
9662
  units.push(65533);
9665
9663
  } else {
9666
- units.push(codePoint);
9664
+ const byte2 = src[position++] & 63;
9665
+ units.push((byte1 & 31) << 6 | byte2);
9667
9666
  }
9668
9667
  } else if ((byte1 & 240) === 224) {
9669
- const byte2 = src[position++] & 63;
9670
- const byte3 = src[position++] & 63;
9671
- const codePoint = (byte1 & 31) << 12 | byte2 << 6 | byte3;
9672
- if (codePoint < 2048 || codePoint >= 55296 && codePoint <= 57343) {
9668
+ const byte2 = position < end ? src[position] : 0;
9669
+ if (position >= end || (byte2 & 192) !== 128 || byte1 === 224 && byte2 < 160 || byte1 === 237 && byte2 >= 160) {
9673
9670
  units.push(65533);
9674
9671
  } else {
9675
- units.push(codePoint);
9672
+ position++;
9673
+ if (position >= end || (src[position] & 192) !== 128) {
9674
+ units.push(65533);
9675
+ } else {
9676
+ const byte3 = src[position++] & 63;
9677
+ units.push((byte1 & 31) << 12 | (byte2 & 63) << 6 | byte3);
9678
+ }
9676
9679
  }
9677
9680
  } else if ((byte1 & 248) === 240) {
9678
- const byte2 = src[position++] & 63;
9679
- const byte3 = src[position++] & 63;
9680
- const byte4 = src[position++] & 63;
9681
- let unit = (byte1 & 7) << 18 | byte2 << 12 | byte3 << 6 | byte4;
9682
- if (unit < 65536 || unit > 1114111) {
9681
+ const byte2 = position < end ? src[position] : 0;
9682
+ if (byte1 > 244 || position >= end || (byte2 & 192) !== 128 || byte1 === 240 && byte2 < 144 || byte1 === 244 && byte2 >= 144) {
9683
9683
  units.push(65533);
9684
- } else if (unit > 65535) {
9685
- unit -= 65536;
9686
- units.push(unit >>> 10 & 1023 | 55296);
9687
- unit = 56320 | unit & 1023;
9688
- units.push(unit);
9689
9684
  } else {
9690
- units.push(unit);
9685
+ position++;
9686
+ if (position >= end || (src[position] & 192) !== 128) {
9687
+ units.push(65533);
9688
+ } else {
9689
+ const byte3 = src[position++] & 63;
9690
+ if (position >= end || (src[position] & 192) !== 128) {
9691
+ units.push(65533);
9692
+ } else {
9693
+ const byte4 = src[position++] & 63;
9694
+ let unit = (byte1 & 7) << 18 | (byte2 & 63) << 12 | byte3 << 6 | byte4;
9695
+ unit -= 65536;
9696
+ units.push(unit >>> 10 & 1023 | 55296);
9697
+ units.push(56320 | unit & 1023);
9698
+ }
9699
+ }
9691
9700
  }
9692
9701
  } else {
9693
9702
  units.push(65533);
@@ -10201,7 +10210,7 @@ var f32Array = new Float32Array(1);
10201
10210
  var u8Array = new Uint8Array(f32Array.buffer, 0, 4);
10202
10211
  Unpackr.SUPPORTS_STRUCT_HOOKS = true;
10203
10212
 
10204
- // ../../../../../setup-pnpm/store/v11/links/@/msgpackr/2.0.4/4846a2ae9cbdea249e2eda7b79740c6d2b16af4f09769fa313dd4f4064702820/node_modules/msgpackr/pack.js
10213
+ // ../../../../../setup-pnpm/store/v11/links/@/msgpackr/2.0.5/120f9075aeb95a409234328542916ec7ee3248f89cf91e593ced8e5252fd92a6/node_modules/msgpackr/pack.js
10205
10214
  var textEncoder;
10206
10215
  try {
10207
10216
  textEncoder = new TextEncoder();
@@ -11264,7 +11273,7 @@ var REUSE_BUFFER_MODE = 512;
11264
11273
  var RESET_BUFFER_MODE = 1024;
11265
11274
  var RESERVE_START_SPACE = 2048;
11266
11275
 
11267
- // ../../../../../setup-pnpm/store/v11/links/@/msgpackr/2.0.4/4846a2ae9cbdea249e2eda7b79740c6d2b16af4f09769fa313dd4f4064702820/node_modules/msgpackr/node-index.js
11276
+ // ../../../../../setup-pnpm/store/v11/links/@/msgpackr/2.0.5/120f9075aeb95a409234328542916ec7ee3248f89cf91e593ced8e5252fd92a6/node_modules/msgpackr/node-index.js
11268
11277
  import { createRequire } from "module";
11269
11278
  var nativeAccelerationDisabled = process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED !== void 0 && process.env.MSGPACKR_NATIVE_ACCELERATION_DISABLED.toLowerCase() === "true";
11270
11279
  if (!nativeAccelerationDisabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/exe",
3
- "version": "11.18.0",
3
+ "version": "11.19.0",
4
4
  "description": "Fast, disk space efficient package manager",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -35,17 +35,17 @@
35
35
  "detect-libc": "^2.1.2"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@pnpm/linux-arm64": "11.18.0",
39
- "@pnpm/linux-x64": "11.18.0",
40
- "@pnpm/linuxstatic-arm64": "11.18.0",
41
- "@pnpm/linuxstatic-x64": "11.18.0",
42
- "@pnpm/macos-arm64": "11.18.0",
43
- "@pnpm/win-arm64": "11.18.0",
44
- "@pnpm/win-x64": "11.18.0"
38
+ "@pnpm/linux-arm64": "11.19.0",
39
+ "@pnpm/linux-x64": "11.19.0",
40
+ "@pnpm/linuxstatic-arm64": "11.19.0",
41
+ "@pnpm/linuxstatic-x64": "11.19.0",
42
+ "@pnpm/macos-arm64": "11.19.0",
43
+ "@pnpm/win-arm64": "11.19.0",
44
+ "@pnpm/win-x64": "11.19.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@jest/globals": "30.4.1",
48
- "@pnpm/exe": "11.18.0",
48
+ "@pnpm/exe": "11.19.0",
49
49
  "@pnpm/jest-config": "1100.0.22",
50
50
  "@zkochan/cmd-shim": "^9.0.6",
51
51
  "execa": "npm:safe-execa@0.3.0"