pnpm 8.3.0 → 8.3.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.
@@ -204,7 +204,7 @@ packageManager: pnpm@8.0.0-beta.0
204
204
  pendingBuilds:
205
205
  - /node-gyp/9.3.1
206
206
  - /encoding/0.1.13
207
- prunedAt: Tue, 18 Apr 2023 00:19:36 GMT
207
+ prunedAt: Wed, 19 Apr 2023 12:22:54 GMT
208
208
  publicHoistPattern:
209
209
  - '*eslint*'
210
210
  - '*prettier*'
package/dist/pnpm.cjs CHANGED
@@ -3249,7 +3249,7 @@ var require_lib4 = __commonJS({
3249
3249
  var load_json_file_1 = __importDefault3(require_load_json_file());
3250
3250
  var defaultManifest = {
3251
3251
  name: true ? "pnpm" : "pnpm",
3252
- version: true ? "8.3.0" : "0.0.0"
3252
+ version: true ? "8.3.1" : "0.0.0"
3253
3253
  };
3254
3254
  var pkgJson;
3255
3255
  if (require.main == null) {
@@ -60266,9 +60266,9 @@ var require_fetch_blob = __commonJS({
60266
60266
  }
60267
60267
  });
60268
60268
 
60269
- // ../node_modules/.pnpm/node-fetch@3.0.0-beta.9/node_modules/node-fetch/dist/index.cjs
60269
+ // ../node_modules/.pnpm/@pnpm+node-fetch@1.0.0/node_modules/@pnpm/node-fetch/dist/index.cjs
60270
60270
  var require_dist6 = __commonJS({
60271
- "../node_modules/.pnpm/node-fetch@3.0.0-beta.9/node_modules/node-fetch/dist/index.cjs"(exports2, module2) {
60271
+ "../node_modules/.pnpm/@pnpm+node-fetch@1.0.0/node_modules/@pnpm/node-fetch/dist/index.cjs"(exports2, module2) {
60272
60272
  "use strict";
60273
60273
  exports2 = module2.exports = fetch;
60274
60274
  var http = require("http");
@@ -60361,7 +60361,7 @@ var require_dist6 = __commonJS({
60361
60361
  length += Buffer.byteLength(getFooter(boundary));
60362
60362
  return length;
60363
60363
  }
60364
- var INTERNALS = Symbol("Body internals");
60364
+ var INTERNALS$2 = Symbol("Body internals");
60365
60365
  var Body = class {
60366
60366
  constructor(body, {
60367
60367
  size = 0
@@ -60387,7 +60387,7 @@ var require_dist6 = __commonJS({
60387
60387
  } else {
60388
60388
  body = Buffer.from(String(body));
60389
60389
  }
60390
- this[INTERNALS] = {
60390
+ this[INTERNALS$2] = {
60391
60391
  body,
60392
60392
  boundary,
60393
60393
  disturbed: false,
@@ -60397,15 +60397,15 @@ var require_dist6 = __commonJS({
60397
60397
  if (body instanceof Stream) {
60398
60398
  body.on("error", (err) => {
60399
60399
  const error = err instanceof FetchBaseError ? err : new FetchError(`Invalid response body while trying to fetch ${this.url}: ${err.message}`, "system", err);
60400
- this[INTERNALS].error = error;
60400
+ this[INTERNALS$2].error = error;
60401
60401
  });
60402
60402
  }
60403
60403
  }
60404
60404
  get body() {
60405
- return this[INTERNALS].body;
60405
+ return this[INTERNALS$2].body;
60406
60406
  }
60407
60407
  get bodyUsed() {
60408
- return this[INTERNALS].disturbed;
60408
+ return this[INTERNALS$2].disturbed;
60409
60409
  }
60410
60410
  /**
60411
60411
  * Decode response as ArrayBuffer
@@ -60422,7 +60422,7 @@ var require_dist6 = __commonJS({
60422
60422
  * @return Promise
60423
60423
  */
60424
60424
  async blob() {
60425
- const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
60425
+ const ct = this.headers && this.headers.get("content-type") || this[INTERNALS$2].body && this[INTERNALS$2].body.type || "";
60426
60426
  const buf = await this.buffer();
60427
60427
  return new Blob([buf], {
60428
60428
  type: ct
@@ -60464,12 +60464,12 @@ var require_dist6 = __commonJS({
60464
60464
  text: { enumerable: true }
60465
60465
  });
60466
60466
  async function consumeBody(data) {
60467
- if (data[INTERNALS].disturbed) {
60467
+ if (data[INTERNALS$2].disturbed) {
60468
60468
  throw new TypeError(`body used already for: ${data.url}`);
60469
60469
  }
60470
- data[INTERNALS].disturbed = true;
60471
- if (data[INTERNALS].error) {
60472
- throw data[INTERNALS].error;
60470
+ data[INTERNALS$2].disturbed = true;
60471
+ if (data[INTERNALS$2].error) {
60472
+ throw data[INTERNALS$2].error;
60473
60473
  }
60474
60474
  let { body } = data;
60475
60475
  if (body === null) {
@@ -60528,7 +60528,7 @@ var require_dist6 = __commonJS({
60528
60528
  p2 = new Stream.PassThrough({ highWaterMark });
60529
60529
  body.pipe(p1);
60530
60530
  body.pipe(p2);
60531
- instance[INTERNALS].body = p1;
60531
+ instance[INTERNALS$2].body = p1;
60532
60532
  body = p2;
60533
60533
  }
60534
60534
  return body;
@@ -60553,7 +60553,7 @@ var require_dist6 = __commonJS({
60553
60553
  return `multipart/form-data;boundary=${body.getBoundary()}`;
60554
60554
  }
60555
60555
  if (isFormData(body)) {
60556
- return `multipart/form-data; boundary=${request[INTERNALS].boundary}`;
60556
+ return `multipart/form-data; boundary=${request[INTERNALS$2].boundary}`;
60557
60557
  }
60558
60558
  if (body instanceof Stream) {
60559
60559
  return null;
@@ -60575,7 +60575,7 @@ var require_dist6 = __commonJS({
60575
60575
  return body.hasKnownLength && body.hasKnownLength() ? body.getLengthSync() : null;
60576
60576
  }
60577
60577
  if (isFormData(body)) {
60578
- return getFormDataLength(request[INTERNALS].boundary);
60578
+ return getFormDataLength(request[INTERNALS$2].boundary);
60579
60579
  }
60580
60580
  return null;
60581
60581
  };
@@ -60659,7 +60659,7 @@ var require_dist6 = __commonJS({
60659
60659
  validateHeaderName(name);
60660
60660
  validateHeaderValue(name, String(value));
60661
60661
  return URLSearchParams.prototype[p].call(
60662
- receiver,
60662
+ target,
60663
60663
  String(name).toLowerCase(),
60664
60664
  String(value)
60665
60665
  );
@@ -60670,7 +60670,7 @@ var require_dist6 = __commonJS({
60670
60670
  return (name) => {
60671
60671
  validateHeaderName(name);
60672
60672
  return URLSearchParams.prototype[p].call(
60673
- receiver,
60673
+ target,
60674
60674
  String(name).toLowerCase()
60675
60675
  );
60676
60676
  };
@@ -60877,9 +60877,9 @@ var require_dist6 = __commonJS({
60877
60877
  const hash = parsedURL.hash || (parsedURL.href[lastOffset] === "#" ? "#" : "");
60878
60878
  return parsedURL.href[lastOffset - hash.length] === "?" ? "?" : "";
60879
60879
  };
60880
- var INTERNALS$2 = Symbol("Request internals");
60880
+ var INTERNALS = Symbol("Request internals");
60881
60881
  var isRequest = (object) => {
60882
- return typeof object === "object" && typeof object[INTERNALS$2] === "object";
60882
+ return typeof object === "object" && typeof object[INTERNALS] === "object";
60883
60883
  };
60884
60884
  var Request = class extends Body {
60885
60885
  constructor(input, init = {}) {
@@ -60913,7 +60913,7 @@ var require_dist6 = __commonJS({
60913
60913
  if (signal !== null && !isAbortSignal(signal)) {
60914
60914
  throw new TypeError("Expected signal to be an instanceof AbortSignal");
60915
60915
  }
60916
- this[INTERNALS$2] = {
60916
+ this[INTERNALS] = {
60917
60917
  method,
60918
60918
  redirect: init.redirect || input.redirect || "follow",
60919
60919
  headers,
@@ -60928,19 +60928,19 @@ var require_dist6 = __commonJS({
60928
60928
  this.insecureHTTPParser = init.insecureHTTPParser || input.insecureHTTPParser || false;
60929
60929
  }
60930
60930
  get method() {
60931
- return this[INTERNALS$2].method;
60931
+ return this[INTERNALS].method;
60932
60932
  }
60933
60933
  get url() {
60934
- return url.format(this[INTERNALS$2].parsedURL);
60934
+ return url.format(this[INTERNALS].parsedURL);
60935
60935
  }
60936
60936
  get headers() {
60937
- return this[INTERNALS$2].headers;
60937
+ return this[INTERNALS].headers;
60938
60938
  }
60939
60939
  get redirect() {
60940
- return this[INTERNALS$2].redirect;
60940
+ return this[INTERNALS].redirect;
60941
60941
  }
60942
60942
  get signal() {
60943
- return this[INTERNALS$2].signal;
60943
+ return this[INTERNALS].signal;
60944
60944
  }
60945
60945
  /**
60946
60946
  * Clone this request
@@ -60963,8 +60963,8 @@ var require_dist6 = __commonJS({
60963
60963
  signal: { enumerable: true }
60964
60964
  });
60965
60965
  var getNodeRequestOptions = (request) => {
60966
- const { parsedURL } = request[INTERNALS$2];
60967
- const headers = new Headers(request[INTERNALS$2].headers);
60966
+ const { parsedURL } = request[INTERNALS];
60967
+ const headers = new Headers(request[INTERNALS].headers);
60968
60968
  if (!headers.has("Accept")) {
60969
60969
  headers.set("Accept", "*/*");
60970
60970
  }
@@ -61199,7 +61199,7 @@ var require_dist6 = __commonJS({
61199
61199
  exports2.Headers = Headers;
61200
61200
  exports2.Request = Request;
61201
61201
  exports2.Response = Response;
61202
- exports2.default = fetch;
61202
+ exports2["default"] = fetch;
61203
61203
  exports2.isRedirect = isRedirect;
61204
61204
  }
61205
61205
  });
@@ -180702,14 +180702,13 @@ var require_lib131 = __commonJS({
180702
180702
  for (const { id, manifest } of selectedProjects) {
180703
180703
  if (filteredLockfile.importers[id]) {
180704
180704
  for (const depType of types_1.DEPENDENCIES_FIELDS) {
180705
- for (const [depName, spec] of Object.entries(manifest[depType] ?? {})) {
180706
- if (spec.startsWith("link:")) {
180707
- if (!filteredLockfile.importers[id][depType]) {
180708
- filteredLockfile.importers[id][depType] = {};
180709
- }
180710
- filteredLockfile.importers[id][depType][depName] = `link:${path_1.default.relative(opts.lockfileDir, spec.substring(5))}`;
180711
- }
180712
- }
180705
+ filteredLockfile.importers[id][depType] = {
180706
+ ...filteredLockfile.importers[id][depType],
180707
+ ...Object.entries(manifest[depType] ?? {}).filter(([_, spec]) => spec.startsWith("link:")).reduce((acc, [depName, spec]) => {
180708
+ acc[depName] = `link:${path_1.default.relative(opts.lockfileDir, spec.substring(5))}`;
180709
+ return acc;
180710
+ }, {})
180711
+ };
180713
180712
  }
180714
180713
  }
180715
180714
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pnpm",
3
3
  "description": "Fast, disk space efficient package manager",
4
- "version": "8.3.0",
4
+ "version": "8.3.1",
5
5
  "bin": {
6
6
  "pnpm": "bin/pnpm.cjs",
7
7
  "pnpx": "bin/pnpx.cjs"