@prisma/fetch-engine 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-studio-ux-refinements.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.
@@ -26,36 +26,36 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_QLWYUM7O_exports = {};
30
- __export(chunk_QLWYUM7O_exports, {
29
+ var chunk_BBQM2DBF_exports = {};
30
+ __export(chunk_BBQM2DBF_exports, {
31
31
  downloadZip: () => downloadZip,
32
32
  require_is_stream: () => require_is_stream,
33
33
  require_temp_dir: () => require_temp_dir
34
34
  });
35
- module.exports = __toCommonJS(chunk_QLWYUM7O_exports);
36
- var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js");
37
- var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
38
- var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
39
- var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js");
35
+ module.exports = __toCommonJS(chunk_BBQM2DBF_exports);
36
+ var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
37
+ var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
38
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
39
+ var import_chunk_OFSFRIEP = require("./chunk-OFSFRIEP.js");
40
40
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
41
41
  var import_debug = __toESM(require("@prisma/debug"));
42
42
  var import_fs = __toESM(require("fs"));
43
- var import_http = __toESM(require("http"));
44
- var import_https = __toESM(require("https"));
45
- var import_zlib = __toESM(require("zlib"));
46
- var import_stream = __toESM(require("stream"));
47
- var import_buffer = require("buffer");
48
- var import_stream2 = __toESM(require("stream"));
49
- var import_util = require("util");
50
- var import_buffer2 = require("buffer");
51
- var import_util2 = require("util");
52
- var import_http2 = __toESM(require("http"));
53
- var import_url = require("url");
54
- var import_util3 = require("util");
55
- var import_net = require("net");
43
+ var import_node_http = __toESM(require("node:http"));
44
+ var import_node_https = __toESM(require("node:https"));
45
+ var import_node_zlib = __toESM(require("node:zlib"));
46
+ var import_node_stream = __toESM(require("node:stream"));
47
+ var import_node_buffer = require("node:buffer");
48
+ var import_node_stream2 = __toESM(require("node:stream"));
49
+ var import_node_util = require("node:util");
50
+ var import_node_buffer2 = require("node:buffer");
51
+ var import_node_util2 = require("node:util");
52
+ var import_node_http2 = __toESM(require("node:http"));
53
+ var import_node_url = require("node:url");
54
+ var import_node_util3 = require("node:util");
55
+ var import_node_net = require("node:net");
56
56
  var import_path = __toESM(require("path"));
57
- var import_util4 = require("util");
58
- var import_zlib2 = __toESM(require("zlib"));
57
+ var import_util = require("util");
58
+ var import_zlib = __toESM(require("zlib"));
59
59
  var require_is_stream = (0, import_chunk_AH6QHEOA.__commonJS)({
60
60
  "../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports, module2) {
61
61
  "use strict";
@@ -6594,11 +6594,11 @@ var require_del = (0, import_chunk_AH6QHEOA.__commonJS)({
6594
6594
  var globby = require_globby();
6595
6595
  var isGlob = require_is_glob();
6596
6596
  var slash = require_slash();
6597
- var gracefulFs = (0, import_chunk_FQ2BOR66.require_graceful_fs)();
6597
+ var gracefulFs = (0, import_chunk_G7EM4XDM.require_graceful_fs)();
6598
6598
  var isPathCwd = require_is_path_cwd();
6599
6599
  var isPathInside = require_is_path_inside();
6600
- var rimraf2 = (0, import_chunk_RGVHWUUH.require_rimraf)();
6601
- var pMap = (0, import_chunk_RGVHWUUH.require_p_map)();
6600
+ var rimraf2 = (0, import_chunk_ZAFWMCVK.require_rimraf)();
6601
+ var pMap = (0, import_chunk_ZAFWMCVK.require_p_map)();
6602
6602
  var rimrafP = promisify3(rimraf2);
6603
6603
  var rimrafOptions = {
6604
6604
  glob: false,
@@ -6844,7 +6844,7 @@ var isSameProtocol = (destination, original) => {
6844
6844
  const dest = new URL(destination).protocol;
6845
6845
  return orig === dest;
6846
6846
  };
6847
- var pipeline = (0, import_util.promisify)(import_stream2.default.pipeline);
6847
+ var pipeline = (0, import_node_util.promisify)(import_node_stream2.default.pipeline);
6848
6848
  var INTERNALS = Symbol("Body internals");
6849
6849
  var Body = class {
6850
6850
  constructor(body, {
@@ -6854,25 +6854,25 @@ var Body = class {
6854
6854
  if (body === null) {
6855
6855
  body = null;
6856
6856
  } else if (isURLSearchParameters(body)) {
6857
- body = import_buffer2.Buffer.from(body.toString());
6857
+ body = import_node_buffer2.Buffer.from(body.toString());
6858
6858
  } else if (isBlob(body)) {
6859
- } else if (import_buffer2.Buffer.isBuffer(body)) {
6860
- } else if (import_util.types.isAnyArrayBuffer(body)) {
6861
- body = import_buffer2.Buffer.from(body);
6859
+ } else if (import_node_buffer2.Buffer.isBuffer(body)) {
6860
+ } else if (import_node_util.types.isAnyArrayBuffer(body)) {
6861
+ body = import_node_buffer2.Buffer.from(body);
6862
6862
  } else if (ArrayBuffer.isView(body)) {
6863
- body = import_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
6864
- } else if (body instanceof import_stream2.default) {
6865
- } else if (body instanceof import_chunk_VTJS2JJN.FormData) {
6866
- body = (0, import_chunk_VTJS2JJN.formDataToBlob)(body);
6863
+ body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
6864
+ } else if (body instanceof import_node_stream2.default) {
6865
+ } else if (body instanceof import_chunk_TIRVZJHP.FormData) {
6866
+ body = (0, import_chunk_TIRVZJHP.formDataToBlob)(body);
6867
6867
  boundary = body.type.split("=")[1];
6868
6868
  } else {
6869
- body = import_buffer2.Buffer.from(String(body));
6869
+ body = import_node_buffer2.Buffer.from(String(body));
6870
6870
  }
6871
6871
  let stream = body;
6872
- if (import_buffer2.Buffer.isBuffer(body)) {
6873
- stream = import_stream2.default.Readable.from(body);
6872
+ if (import_node_buffer2.Buffer.isBuffer(body)) {
6873
+ stream = import_node_stream2.default.Readable.from(body);
6874
6874
  } else if (isBlob(body)) {
6875
- stream = import_stream2.default.Readable.from(body.stream());
6875
+ stream = import_node_stream2.default.Readable.from(body.stream());
6876
6876
  }
6877
6877
  this[INTERNALS] = {
6878
6878
  body,
@@ -6882,7 +6882,7 @@ var Body = class {
6882
6882
  error: null
6883
6883
  };
6884
6884
  this.size = size;
6885
- if (body instanceof import_stream2.default) {
6885
+ if (body instanceof import_node_stream2.default) {
6886
6886
  body.on("error", (error_) => {
6887
6887
  const error = error_ instanceof FetchBaseError ? error_ : new FetchError(`Invalid response body while trying to fetch ${this.url}: ${error_.message}`, "system", error_);
6888
6888
  this[INTERNALS].error = error;
@@ -6907,14 +6907,14 @@ var Body = class {
6907
6907
  async formData() {
6908
6908
  const ct = this.headers.get("content-type");
6909
6909
  if (ct.startsWith("application/x-www-form-urlencoded")) {
6910
- const formData = new import_chunk_VTJS2JJN.FormData();
6910
+ const formData = new import_chunk_TIRVZJHP.FormData();
6911
6911
  const parameters = new URLSearchParams(await this.text());
6912
6912
  for (const [name, value] of parameters) {
6913
6913
  formData.append(name, value);
6914
6914
  }
6915
6915
  return formData;
6916
6916
  }
6917
- const { toFormData } = await import("./multipart-parser-47FFAP42.js");
6917
+ const { toFormData } = await import("./multipart-parser-ITART6UP.js");
6918
6918
  return toFormData(this.body, ct);
6919
6919
  }
6920
6920
  /**
@@ -6925,7 +6925,7 @@ var Body = class {
6925
6925
  async blob() {
6926
6926
  const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
6927
6927
  const buf = await this.arrayBuffer();
6928
- return new import_chunk_VTJS2JJN.fetch_blob_default([buf], {
6928
+ return new import_chunk_TIRVZJHP.fetch_blob_default([buf], {
6929
6929
  type: ct
6930
6930
  });
6931
6931
  }
@@ -6956,7 +6956,7 @@ var Body = class {
6956
6956
  return consumeBody(this);
6957
6957
  }
6958
6958
  };
6959
- Body.prototype.buffer = (0, import_util.deprecate)(Body.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer");
6959
+ Body.prototype.buffer = (0, import_node_util.deprecate)(Body.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer");
6960
6960
  Object.defineProperties(Body.prototype, {
6961
6961
  body: { enumerable: true },
6962
6962
  bodyUsed: { enumerable: true },
@@ -6964,7 +6964,7 @@ Object.defineProperties(Body.prototype, {
6964
6964
  blob: { enumerable: true },
6965
6965
  json: { enumerable: true },
6966
6966
  text: { enumerable: true },
6967
- data: { get: (0, import_util.deprecate)(
6967
+ data: { get: (0, import_node_util.deprecate)(
6968
6968
  () => {
6969
6969
  },
6970
6970
  "data doesn't exist, use json(), text(), arrayBuffer(), or body instead",
@@ -6981,10 +6981,10 @@ async function consumeBody(data) {
6981
6981
  }
6982
6982
  const { body } = data;
6983
6983
  if (body === null) {
6984
- return import_buffer2.Buffer.alloc(0);
6984
+ return import_node_buffer2.Buffer.alloc(0);
6985
6985
  }
6986
- if (!(body instanceof import_stream2.default)) {
6987
- return import_buffer2.Buffer.alloc(0);
6986
+ if (!(body instanceof import_node_stream2.default)) {
6987
+ return import_node_buffer2.Buffer.alloc(0);
6988
6988
  }
6989
6989
  const accum = [];
6990
6990
  let accumBytes = 0;
@@ -7005,9 +7005,9 @@ async function consumeBody(data) {
7005
7005
  if (body.readableEnded === true || body._readableState.ended === true) {
7006
7006
  try {
7007
7007
  if (accum.every((c) => typeof c === "string")) {
7008
- return import_buffer2.Buffer.from(accum.join(""));
7008
+ return import_node_buffer2.Buffer.from(accum.join(""));
7009
7009
  }
7010
- return import_buffer2.Buffer.concat(accum, accumBytes);
7010
+ return import_node_buffer2.Buffer.concat(accum, accumBytes);
7011
7011
  } catch (error) {
7012
7012
  throw new FetchError(`Could not create Buffer from response body for ${data.url}: ${error.message}`, "system", error);
7013
7013
  }
@@ -7022,9 +7022,9 @@ var clone = (instance, highWaterMark) => {
7022
7022
  if (instance.bodyUsed) {
7023
7023
  throw new Error("cannot clone body after it is used");
7024
7024
  }
7025
- if (body instanceof import_stream2.default && typeof body.getBoundary !== "function") {
7026
- p1 = new import_stream2.PassThrough({ highWaterMark });
7027
- p2 = new import_stream2.PassThrough({ highWaterMark });
7025
+ if (body instanceof import_node_stream2.default && typeof body.getBoundary !== "function") {
7026
+ p1 = new import_node_stream2.PassThrough({ highWaterMark });
7027
+ p2 = new import_node_stream2.PassThrough({ highWaterMark });
7028
7028
  body.pipe(p1);
7029
7029
  body.pipe(p2);
7030
7030
  instance[INTERNALS].stream = p1;
@@ -7032,7 +7032,7 @@ var clone = (instance, highWaterMark) => {
7032
7032
  }
7033
7033
  return body;
7034
7034
  };
7035
- var getNonSpecFormDataBoundary = (0, import_util.deprecate)(
7035
+ var getNonSpecFormDataBoundary = (0, import_node_util.deprecate)(
7036
7036
  (body) => body.getBoundary(),
7037
7037
  "form-data doesn't follow the spec and requires special treatment. Use alternative package",
7038
7038
  "https://github.com/node-fetch/node-fetch/issues/1167"
@@ -7050,16 +7050,16 @@ var extractContentType = (body, request) => {
7050
7050
  if (isBlob(body)) {
7051
7051
  return body.type || null;
7052
7052
  }
7053
- if (import_buffer2.Buffer.isBuffer(body) || import_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
7053
+ if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
7054
7054
  return null;
7055
7055
  }
7056
- if (body instanceof import_chunk_VTJS2JJN.FormData) {
7056
+ if (body instanceof import_chunk_TIRVZJHP.FormData) {
7057
7057
  return `multipart/form-data; boundary=${request[INTERNALS].boundary}`;
7058
7058
  }
7059
7059
  if (body && typeof body.getBoundary === "function") {
7060
7060
  return `multipart/form-data;boundary=${getNonSpecFormDataBoundary(body)}`;
7061
7061
  }
7062
- if (body instanceof import_stream2.default) {
7062
+ if (body instanceof import_node_stream2.default) {
7063
7063
  return null;
7064
7064
  }
7065
7065
  return "text/plain;charset=UTF-8";
@@ -7072,7 +7072,7 @@ var getTotalBytes = (request) => {
7072
7072
  if (isBlob(body)) {
7073
7073
  return body.size;
7074
7074
  }
7075
- if (import_buffer2.Buffer.isBuffer(body)) {
7075
+ if (import_node_buffer2.Buffer.isBuffer(body)) {
7076
7076
  return body.length;
7077
7077
  }
7078
7078
  if (body && typeof body.getLengthSync === "function") {
@@ -7087,14 +7087,14 @@ var writeToStream = async (dest, { body }) => {
7087
7087
  await pipeline(body, dest);
7088
7088
  }
7089
7089
  };
7090
- var validateHeaderName = typeof import_http2.default.validateHeaderName === "function" ? import_http2.default.validateHeaderName : (name) => {
7090
+ var validateHeaderName = typeof import_node_http2.default.validateHeaderName === "function" ? import_node_http2.default.validateHeaderName : (name) => {
7091
7091
  if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(name)) {
7092
7092
  const error = new TypeError(`Header name must be a valid HTTP token [${name}]`);
7093
7093
  Object.defineProperty(error, "code", { value: "ERR_INVALID_HTTP_TOKEN" });
7094
7094
  throw error;
7095
7095
  }
7096
7096
  };
7097
- var validateHeaderValue = typeof import_http2.default.validateHeaderValue === "function" ? import_http2.default.validateHeaderValue : (name, value) => {
7097
+ var validateHeaderValue = typeof import_node_http2.default.validateHeaderValue === "function" ? import_node_http2.default.validateHeaderValue : (name, value) => {
7098
7098
  if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(value)) {
7099
7099
  const error = new TypeError(`Invalid character in header content ["${name}"]`);
7100
7100
  Object.defineProperty(error, "code", { value: "ERR_INVALID_CHAR" });
@@ -7116,7 +7116,7 @@ var Headers = class _Headers extends URLSearchParams {
7116
7116
  result.push(...values.map((value) => [name, value]));
7117
7117
  }
7118
7118
  } else if (init == null) {
7119
- } else if (typeof init === "object" && !import_util2.types.isBoxedPrimitive(init)) {
7119
+ } else if (typeof init === "object" && !import_node_util2.types.isBoxedPrimitive(init)) {
7120
7120
  const method = init[Symbol.iterator];
7121
7121
  if (method == null) {
7122
7122
  result.push(...Object.entries(init));
@@ -7125,7 +7125,7 @@ var Headers = class _Headers extends URLSearchParams {
7125
7125
  throw new TypeError("Header pairs must be iterable");
7126
7126
  }
7127
7127
  result = [...init].map((pair) => {
7128
- if (typeof pair !== "object" || import_util2.types.isBoxedPrimitive(pair)) {
7128
+ if (typeof pair !== "object" || import_node_util2.types.isBoxedPrimitive(pair)) {
7129
7129
  throw new TypeError("Each header pair must be an iterable object");
7130
7130
  }
7131
7131
  return [...pair];
@@ -7437,7 +7437,7 @@ function isOriginPotentiallyTrustworthy(url) {
7437
7437
  return true;
7438
7438
  }
7439
7439
  const hostIp = url.host.replace(/(^\[)|(]$)/g, "");
7440
- const hostIPVersion = (0, import_net.isIP)(hostIp);
7440
+ const hostIPVersion = (0, import_node_net.isIP)(hostIp);
7441
7441
  if (hostIPVersion === 4 && /^127\./.test(hostIp)) {
7442
7442
  return true;
7443
7443
  }
@@ -7538,7 +7538,7 @@ var INTERNALS3 = Symbol("Request internals");
7538
7538
  var isRequest = (object) => {
7539
7539
  return typeof object === "object" && typeof object[INTERNALS3] === "object";
7540
7540
  };
7541
- var doBadDataWarn = (0, import_util3.deprecate)(
7541
+ var doBadDataWarn = (0, import_node_util3.deprecate)(
7542
7542
  () => {
7543
7543
  },
7544
7544
  ".data is not a valid RequestInit property, use .body instead",
@@ -7615,7 +7615,7 @@ var Request = class _Request extends Body {
7615
7615
  }
7616
7616
  /** @returns {string} */
7617
7617
  get url() {
7618
- return (0, import_url.format)(this[INTERNALS3].parsedURL);
7618
+ return (0, import_node_url.format)(this[INTERNALS3].parsedURL);
7619
7619
  }
7620
7620
  /** @returns {Headers} */
7621
7621
  get headers() {
@@ -7744,13 +7744,13 @@ async function fetch(url, options_) {
7744
7744
  resolve(response2);
7745
7745
  return;
7746
7746
  }
7747
- const send = (parsedURL.protocol === "https:" ? import_https.default : import_http.default).request;
7747
+ const send = (parsedURL.protocol === "https:" ? import_node_https.default : import_node_http.default).request;
7748
7748
  const { signal } = request;
7749
7749
  let response = null;
7750
7750
  const abort = () => {
7751
7751
  const error = new AbortError("The operation was aborted.");
7752
7752
  reject(error);
7753
- if (request.body && request.body instanceof import_stream.default.Readable) {
7753
+ if (request.body && request.body instanceof import_node_stream.default.Readable) {
7754
7754
  request.body.destroy(error);
7755
7755
  }
7756
7756
  if (!response || !response.body) {
@@ -7849,7 +7849,7 @@ async function fetch(url, options_) {
7849
7849
  requestOptions.headers.delete(name);
7850
7850
  }
7851
7851
  }
7852
- if (response_.statusCode !== 303 && request.body && options_.body instanceof import_stream.default.Readable) {
7852
+ if (response_.statusCode !== 303 && request.body && options_.body instanceof import_node_stream.default.Readable) {
7853
7853
  reject(new FetchError("Cannot follow redirect with body being a readable stream", "unsupported-redirect"));
7854
7854
  finalize();
7855
7855
  return;
@@ -7876,7 +7876,7 @@ async function fetch(url, options_) {
7876
7876
  signal.removeEventListener("abort", abortAndFinalize);
7877
7877
  });
7878
7878
  }
7879
- let body = (0, import_stream.pipeline)(response_, new import_stream.PassThrough(), (error) => {
7879
+ let body = (0, import_node_stream.pipeline)(response_, new import_node_stream.PassThrough(), (error) => {
7880
7880
  if (error) {
7881
7881
  reject(error);
7882
7882
  }
@@ -7900,11 +7900,11 @@ async function fetch(url, options_) {
7900
7900
  return;
7901
7901
  }
7902
7902
  const zlibOptions = {
7903
- flush: import_zlib.default.Z_SYNC_FLUSH,
7904
- finishFlush: import_zlib.default.Z_SYNC_FLUSH
7903
+ flush: import_node_zlib.default.Z_SYNC_FLUSH,
7904
+ finishFlush: import_node_zlib.default.Z_SYNC_FLUSH
7905
7905
  };
7906
7906
  if (codings === "gzip" || codings === "x-gzip") {
7907
- body = (0, import_stream.pipeline)(body, import_zlib.default.createGunzip(zlibOptions), (error) => {
7907
+ body = (0, import_node_stream.pipeline)(body, import_node_zlib.default.createGunzip(zlibOptions), (error) => {
7908
7908
  if (error) {
7909
7909
  reject(error);
7910
7910
  }
@@ -7914,20 +7914,20 @@ async function fetch(url, options_) {
7914
7914
  return;
7915
7915
  }
7916
7916
  if (codings === "deflate" || codings === "x-deflate") {
7917
- const raw = (0, import_stream.pipeline)(response_, new import_stream.PassThrough(), (error) => {
7917
+ const raw = (0, import_node_stream.pipeline)(response_, new import_node_stream.PassThrough(), (error) => {
7918
7918
  if (error) {
7919
7919
  reject(error);
7920
7920
  }
7921
7921
  });
7922
7922
  raw.once("data", (chunk) => {
7923
7923
  if ((chunk[0] & 15) === 8) {
7924
- body = (0, import_stream.pipeline)(body, import_zlib.default.createInflate(), (error) => {
7924
+ body = (0, import_node_stream.pipeline)(body, import_node_zlib.default.createInflate(), (error) => {
7925
7925
  if (error) {
7926
7926
  reject(error);
7927
7927
  }
7928
7928
  });
7929
7929
  } else {
7930
- body = (0, import_stream.pipeline)(body, import_zlib.default.createInflateRaw(), (error) => {
7930
+ body = (0, import_node_stream.pipeline)(body, import_node_zlib.default.createInflateRaw(), (error) => {
7931
7931
  if (error) {
7932
7932
  reject(error);
7933
7933
  }
@@ -7945,7 +7945,7 @@ async function fetch(url, options_) {
7945
7945
  return;
7946
7946
  }
7947
7947
  if (codings === "br") {
7948
- body = (0, import_stream.pipeline)(body, import_zlib.default.createBrotliDecompress(), (error) => {
7948
+ body = (0, import_node_stream.pipeline)(body, import_node_zlib.default.createBrotliDecompress(), (error) => {
7949
7949
  if (error) {
7950
7950
  reject(error);
7951
7951
  }
@@ -7961,7 +7961,7 @@ async function fetch(url, options_) {
7961
7961
  });
7962
7962
  }
7963
7963
  function fixResponseChunkedTransferBadEnding(request, errorCallback) {
7964
- const LAST_CHUNK = import_buffer.Buffer.from("0\r\n\r\n");
7964
+ const LAST_CHUNK = import_node_buffer.Buffer.from("0\r\n\r\n");
7965
7965
  let isChunkedTransfer = false;
7966
7966
  let properLastChunkReceived = false;
7967
7967
  let previousChunk;
@@ -7978,9 +7978,9 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
7978
7978
  }
7979
7979
  };
7980
7980
  const onData = (buf) => {
7981
- properLastChunkReceived = import_buffer.Buffer.compare(buf.slice(-5), LAST_CHUNK) === 0;
7981
+ properLastChunkReceived = import_node_buffer.Buffer.compare(buf.slice(-5), LAST_CHUNK) === 0;
7982
7982
  if (!properLastChunkReceived && previousChunk) {
7983
- properLastChunkReceived = import_buffer.Buffer.compare(previousChunk.slice(-3), LAST_CHUNK.slice(0, 3)) === 0 && import_buffer.Buffer.compare(buf.slice(-2), LAST_CHUNK.slice(3)) === 0;
7983
+ properLastChunkReceived = import_node_buffer.Buffer.compare(previousChunk.slice(-3), LAST_CHUNK.slice(0, 3)) === 0 && import_node_buffer.Buffer.compare(buf.slice(-2), LAST_CHUNK.slice(3)) === 0;
7984
7984
  }
7985
7985
  previousChunk = buf;
7986
7986
  };
@@ -7993,15 +7993,15 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
7993
7993
  });
7994
7994
  }
7995
7995
  var import_p_retry = (0, import_chunk_AH6QHEOA.__toESM)(require_p_retry());
7996
- var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_rimraf)());
7996
+ var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_ZAFWMCVK.require_rimraf)());
7997
7997
  var import_tempy = (0, import_chunk_AH6QHEOA.__toESM)(require_tempy());
7998
7998
  var debug = (0, import_debug.default)("prisma:fetch-engine:downloadZip");
7999
- var del = (0, import_util4.promisify)(import_rimraf.default);
7999
+ var del = (0, import_util.promisify)(import_rimraf.default);
8000
8000
  async function fetchChecksum(url) {
8001
8001
  try {
8002
8002
  const checksumUrl = `${url}.sha256`;
8003
8003
  const response = await fetch(checksumUrl, {
8004
- agent: (0, import_chunk_KDPLGCY6.getProxyAgent)(url)
8004
+ agent: (0, import_chunk_OFSFRIEP.getProxyAgent)(url)
8005
8005
  });
8006
8006
  if (!response.ok) {
8007
8007
  let errorMessage = `Failed to fetch sha256 checksum at ${checksumUrl} - ${response.status} ${response.statusText}`;
@@ -8047,7 +8047,7 @@ async function downloadZip(url, target, progressCb) {
8047
8047
  async () => {
8048
8048
  const response = await fetch(url, {
8049
8049
  compress: false,
8050
- agent: (0, import_chunk_KDPLGCY6.getProxyAgent)(url)
8050
+ agent: (0, import_chunk_OFSFRIEP.getProxyAgent)(url)
8051
8051
  });
8052
8052
  if (!response.ok) {
8053
8053
  throw new Error(`Failed to fetch the engine file at ${url} - ${response.status} ${response.statusText}`);
@@ -8066,7 +8066,7 @@ async function downloadZip(url, target, progressCb) {
8066
8066
  progressCb(bytesRead / size);
8067
8067
  }
8068
8068
  });
8069
- const gunzip = import_zlib2.default.createGunzip();
8069
+ const gunzip = import_zlib.default.createGunzip();
8070
8070
  gunzip.on("error", reject);
8071
8071
  const zipStream = response.body.pipe(gunzip);
8072
8072
  const zippedHashPromise = import_hasha.default.fromStream(response.body, {
@@ -8094,7 +8094,7 @@ async function downloadZip(url, target, progressCb) {
8094
8094
  onFailedAttempt: (err) => debug("An error occurred while downloading the engine file", err)
8095
8095
  }
8096
8096
  );
8097
- await (0, import_chunk_FQ2BOR66.overwriteFile)(partial, target);
8097
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(partial, target);
8098
8098
  try {
8099
8099
  await del(partial);
8100
8100
  await del(tmpDir);
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_XOHJAYLM_exports = {};
30
- __export(chunk_XOHJAYLM_exports, {
29
+ var chunk_E4U6QY5W_exports = {};
30
+ __export(chunk_E4U6QY5W_exports, {
31
31
  download: () => download,
32
32
  getBinaryName: () => getBinaryName,
33
33
  getVersion: () => getVersion,
@@ -35,12 +35,12 @@ __export(chunk_XOHJAYLM_exports, {
35
35
  plusX: () => plusX,
36
36
  vercelPkgPathRegex: () => vercelPkgPathRegex
37
37
  });
38
- module.exports = __toCommonJS(chunk_XOHJAYLM_exports);
38
+ module.exports = __toCommonJS(chunk_E4U6QY5W_exports);
39
39
  var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
40
40
  var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
41
- var import_chunk_74KKSUUB = require("./chunk-74KKSUUB.js");
42
- var import_chunk_VPECQVLG = require("./chunk-VPECQVLG.js");
43
- var import_chunk_BBSR4B7O = require("./chunk-BBSR4B7O.js");
41
+ var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
42
+ var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
43
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
44
44
  var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
45
45
  var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
46
46
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
@@ -1552,7 +1552,7 @@ var require_merge_stream = (0, import_chunk_AH6QHEOA.__commonJS)({
1552
1552
  var require_stream = (0, import_chunk_AH6QHEOA.__commonJS)({
1553
1553
  "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports, module2) {
1554
1554
  "use strict";
1555
- var isStream = (0, import_chunk_VPECQVLG.require_is_stream)();
1555
+ var isStream = (0, import_chunk_BBQM2DBF.require_is_stream)();
1556
1556
  var getStream = require_get_stream();
1557
1557
  var mergeStream = require_merge_stream();
1558
1558
  var handleInput = (spawned, input) => {
@@ -2025,9 +2025,9 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2025
2025
  bugs: "https://github.com/prisma/prisma/issues",
2026
2026
  enginesOverride: {},
2027
2027
  devDependencies: {
2028
- "@swc/core": "1.6.13",
2029
- "@swc/jest": "0.2.36",
2030
- "@types/jest": "29.5.12",
2028
+ "@swc/core": "1.10.1",
2029
+ "@swc/jest": "0.2.37",
2030
+ "@types/jest": "29.5.14",
2031
2031
  "@types/node": "18.19.31",
2032
2032
  "@types/progress": "2.0.7",
2033
2033
  del: "6.1.1",
@@ -2053,7 +2053,7 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2053
2053
  },
2054
2054
  dependencies: {
2055
2055
  "@prisma/debug": "workspace:*",
2056
- "@prisma/engines-version": "6.3.0-6.integration-5-22-0-with-simplified-typeinfo-c7d99d9db5129d8b35986b8518c7f10bc8580e03",
2056
+ "@prisma/engines-version": "6.3.0-13.1635fdddbcd54b9f4b16ffcd9eb726b58d5408da",
2057
2057
  "@prisma/get-platform": "workspace:*"
2058
2058
  },
2059
2059
  scripts: {
@@ -2071,9 +2071,9 @@ var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2071
2071
  }
2072
2072
  });
2073
2073
  var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
2074
- var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_BBSR4B7O.require_lib)());
2074
+ var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_G7EM4XDM.require_lib)());
2075
2075
  var import_p_filter = (0, import_chunk_AH6QHEOA.__toESM)(require_p_filter());
2076
- var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_VPECQVLG.require_temp_dir)());
2076
+ var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_BBQM2DBF.require_temp_dir)());
2077
2077
  var { enginesOverride } = require_package();
2078
2078
  var debug = (0, import_debug.default)("prisma:fetch-engine:download");
2079
2079
  var exists = (0, import_util.promisify)(import_fs.default.exists);
@@ -2140,7 +2140,7 @@ async function download(options) {
2140
2140
  return shouldDownload;
2141
2141
  });
2142
2142
  if (binariesToDownload.length > 0) {
2143
- const cleanupPromise = (0, import_chunk_74KKSUUB.cleanupCache)();
2143
+ const cleanupPromise = (0, import_chunk_FKKOTNO6.cleanupCache)();
2144
2144
  let finishBar;
2145
2145
  let setProgress;
2146
2146
  if (opts.showProgress) {
@@ -2149,7 +2149,7 @@ async function download(options) {
2149
2149
  setProgress = collectiveBar.setProgress;
2150
2150
  }
2151
2151
  const promises = binariesToDownload.map((job) => {
2152
- const downloadUrl = (0, import_chunk_BBSR4B7O.getDownloadUrl)({
2152
+ const downloadUrl = (0, import_chunk_G7EM4XDM.getDownloadUrl)({
2153
2153
  channel: "all_commits",
2154
2154
  version: opts.version,
2155
2155
  binaryTarget: job.binaryTarget,
@@ -2231,7 +2231,7 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2231
2231
  });
2232
2232
  if (cachedFile) {
2233
2233
  if (job.skipCacheIntegrityCheck === true) {
2234
- await (0, import_chunk_BBSR4B7O.overwriteFile)(cachedFile, job.targetFilePath);
2234
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2235
2235
  return false;
2236
2236
  }
2237
2237
  const sha256FilePath = cachedFile + ".sha256";
@@ -2242,12 +2242,12 @@ async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2242
2242
  if (!targetExists) {
2243
2243
  debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2244
2244
  await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
2245
- await (0, import_chunk_BBSR4B7O.overwriteFile)(cachedFile, job.targetFilePath);
2245
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2246
2246
  }
2247
2247
  const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
2248
2248
  if (sha256File !== targetSha256) {
2249
2249
  debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
2250
- await (0, import_chunk_BBSR4B7O.overwriteFile)(cachedFile, job.targetFilePath);
2250
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(cachedFile, job.targetFilePath);
2251
2251
  }
2252
2252
  return false;
2253
2253
  } else {
@@ -2301,7 +2301,7 @@ async function getCachedBinaryPath({
2301
2301
  binaryTarget: binaryTarget2,
2302
2302
  binaryName
2303
2303
  }) {
2304
- const cacheDir = await (0, import_chunk_BBSR4B7O.getCacheDir)(channel, version, binaryTarget2);
2304
+ const cacheDir = await (0, import_chunk_G7EM4XDM.getCacheDir)(channel, version, binaryTarget2);
2305
2305
  if (!cacheDir) {
2306
2306
  return null;
2307
2307
  }
@@ -2334,7 +2334,7 @@ async function downloadBinary(options2) {
2334
2334
  if (progressCb) {
2335
2335
  progressCb(0);
2336
2336
  }
2337
- const { sha256, zippedSha256 } = await (0, import_chunk_VPECQVLG.downloadZip)(downloadUrl, targetFilePath, progressCb);
2337
+ const { sha256, zippedSha256 } = await (0, import_chunk_BBQM2DBF.downloadZip)(downloadUrl, targetFilePath, progressCb);
2338
2338
  if (progressCb) {
2339
2339
  progressCb(1);
2340
2340
  }
@@ -2342,7 +2342,7 @@ async function downloadBinary(options2) {
2342
2342
  await saveFileToCache(options2, version, sha256, zippedSha256);
2343
2343
  }
2344
2344
  async function saveFileToCache(job, version, sha256, zippedSha256) {
2345
- const cacheDir = await (0, import_chunk_BBSR4B7O.getCacheDir)(channel, version, job.binaryTarget);
2345
+ const cacheDir = await (0, import_chunk_G7EM4XDM.getCacheDir)(channel, version, job.binaryTarget);
2346
2346
  if (!cacheDir) {
2347
2347
  return;
2348
2348
  }
@@ -2350,7 +2350,7 @@ async function saveFileToCache(job, version, sha256, zippedSha256) {
2350
2350
  const cachedSha256Path = import_path.default.join(cacheDir, job.binaryName + ".sha256");
2351
2351
  const cachedSha256ZippedPath = import_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
2352
2352
  try {
2353
- await (0, import_chunk_BBSR4B7O.overwriteFile)(job.targetFilePath, cachedTargetPath);
2353
+ await (0, import_chunk_G7EM4XDM.overwriteFile)(job.targetFilePath, cachedTargetPath);
2354
2354
  if (sha256 != null) {
2355
2355
  await import_fs.default.promises.writeFile(cachedSha256Path, sha256);
2356
2356
  }
@@ -26,25 +26,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_QSTZGX47_exports = {};
30
- __export(chunk_QSTZGX47_exports, {
29
+ var chunk_FKKOTNO6_exports = {};
30
+ __export(chunk_FKKOTNO6_exports, {
31
31
  cleanupCache: () => cleanupCache
32
32
  });
33
- module.exports = __toCommonJS(chunk_QSTZGX47_exports);
34
- var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
35
- var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
33
+ module.exports = __toCommonJS(chunk_FKKOTNO6_exports);
34
+ var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
35
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
36
36
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
37
37
  var import_debug = __toESM(require("@prisma/debug"));
38
38
  var import_fs = __toESM(require("fs"));
39
39
  var import_path = __toESM(require("path"));
40
40
  var import_util = require("util");
41
- var import_p_map = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_p_map)());
42
- var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_rimraf)());
41
+ var import_p_map = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_ZAFWMCVK.require_p_map)());
42
+ var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_ZAFWMCVK.require_rimraf)());
43
43
  var debug = (0, import_debug.default)("cleanupCache");
44
44
  var del = (0, import_util.promisify)(import_rimraf.default);
45
45
  async function cleanupCache(n = 5) {
46
46
  try {
47
- const rootCacheDir = await (0, import_chunk_FQ2BOR66.getRootCacheDir)();
47
+ const rootCacheDir = await (0, import_chunk_G7EM4XDM.getRootCacheDir)();
48
48
  if (!rootCacheDir) {
49
49
  debug("no rootCacheDir found");
50
50
  return;