@prisma/get-platform 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-fix-subcommands-esm-projects.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,13 +26,13 @@ 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_M5NKJZ76_exports = {};
30
- __export(chunk_M5NKJZ76_exports, {
29
+ var chunk_2GHEBYIY_exports = {};
30
+ __export(chunk_2GHEBYIY_exports, {
31
31
  jestConsoleContext: () => jestConsoleContext,
32
32
  jestContext: () => jestContext,
33
33
  jestProcessContext: () => jestProcessContext
34
34
  });
35
- module.exports = __toCommonJS(chunk_M5NKJZ76_exports);
35
+ module.exports = __toCommonJS(chunk_2GHEBYIY_exports);
36
36
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
37
37
  var import_path = __toESM(require("path"));
38
38
  var require_windows = (0, import_chunk_2ESYSVXG.__commonJS)({
@@ -3485,6 +3485,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
3485
3485
  continue;
3486
3486
  }
3487
3487
  switch (c) {
3488
+ /* istanbul ignore next */
3488
3489
  case "/": {
3489
3490
  return false;
3490
3491
  }
@@ -3492,6 +3493,8 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
3492
3493
  clearStateChar();
3493
3494
  escaping = true;
3494
3495
  continue;
3496
+ // the various stateChar values
3497
+ // for the "extglob" stuff.
3495
3498
  case "?":
3496
3499
  case "*":
3497
3500
  case "+":
@@ -3551,6 +3554,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
3551
3554
  clearStateChar();
3552
3555
  re += "|";
3553
3556
  continue;
3557
+ // these are mostly the same in regexp and glob
3554
3558
  case "[":
3555
3559
  clearStateChar();
3556
3560
  if (inClass) {
@@ -12581,6 +12585,7 @@ var require_minimatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({
12581
12585
  continue;
12582
12586
  }
12583
12587
  switch (c) {
12588
+ /* istanbul ignore next */
12584
12589
  case "/": {
12585
12590
  return false;
12586
12591
  }
@@ -12588,6 +12593,8 @@ var require_minimatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({
12588
12593
  clearStateChar();
12589
12594
  escaping = true;
12590
12595
  continue;
12596
+ // the various stateChar values
12597
+ // for the "extglob" stuff.
12591
12598
  case "?":
12592
12599
  case "*":
12593
12600
  case "+":
@@ -12648,6 +12655,7 @@ var require_minimatch2 = (0, import_chunk_2ESYSVXG.__commonJS)({
12648
12655
  clearStateChar();
12649
12656
  re += "|";
12650
12657
  continue;
12658
+ // these are mostly the same in regexp and glob
12651
12659
  case "[":
12652
12660
  clearStateChar();
12653
12661
  if (inClass) {
@@ -13233,6 +13241,7 @@ var require_sync7 = (0, import_chunk_2ESYSVXG.__commonJS)({
13233
13241
  }
13234
13242
  var prefix;
13235
13243
  switch (n) {
13244
+ // if not, then this is rather simple
13236
13245
  case pattern.length:
13237
13246
  this._processSimple(pattern.join("/"), index);
13238
13247
  return;
@@ -13394,6 +13403,7 @@ var require_sync7 = (0, import_chunk_2ESYSVXG.__commonJS)({
13394
13403
  GlobSync.prototype._readdirError = function(f, er) {
13395
13404
  switch (er.code) {
13396
13405
  case "ENOTSUP":
13406
+ // https://github.com/isaacs/node-glob/issues/205
13397
13407
  case "ENOTDIR":
13398
13408
  var abs = this._makeAbs(f);
13399
13409
  this.cache[abs] = "FILE";
@@ -13405,6 +13415,7 @@ var require_sync7 = (0, import_chunk_2ESYSVXG.__commonJS)({
13405
13415
  }
13406
13416
  break;
13407
13417
  case "ENOENT":
13418
+ // not terribly unusual
13408
13419
  case "ELOOP":
13409
13420
  case "ENAMETOOLONG":
13410
13421
  case "UNKNOWN":
@@ -13848,6 +13859,7 @@ var require_glob = (0, import_chunk_2ESYSVXG.__commonJS)({
13848
13859
  }
13849
13860
  var prefix;
13850
13861
  switch (n) {
13862
+ // if not, then this is rather simple
13851
13863
  case pattern.length:
13852
13864
  this._processSimple(pattern.join("/"), index, cb);
13853
13865
  return;
@@ -14037,6 +14049,7 @@ var require_glob = (0, import_chunk_2ESYSVXG.__commonJS)({
14037
14049
  return;
14038
14050
  switch (er.code) {
14039
14051
  case "ENOTSUP":
14052
+ // https://github.com/isaacs/node-glob/issues/205
14040
14053
  case "ENOTDIR":
14041
14054
  var abs = this._makeAbs(f);
14042
14055
  this.cache[abs] = "FILE";
@@ -14049,6 +14062,7 @@ var require_glob = (0, import_chunk_2ESYSVXG.__commonJS)({
14049
14062
  }
14050
14063
  break;
14051
14064
  case "ENOENT":
14065
+ // not terribly unusual
14052
14066
  case "ELOOP":
14053
14067
  case "ENAMETOOLONG":
14054
14068
  case "UNKNOWN":
@@ -26,8 +26,8 @@ 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_YDM7ULQH_exports = {};
30
- __export(chunk_YDM7ULQH_exports, {
29
+ var chunk_EY5MORMD_exports = {};
30
+ __export(chunk_EY5MORMD_exports, {
31
31
  computeLibSSLSpecificPaths: () => computeLibSSLSpecificPaths,
32
32
  getArchFromUname: () => getArchFromUname,
33
33
  getBinaryTargetForCurrentPlatform: () => getBinaryTargetForCurrentPlatform,
@@ -41,7 +41,7 @@ __export(chunk_YDM7ULQH_exports, {
41
41
  parseOpenSSLVersion: () => parseOpenSSLVersion,
42
42
  resolveDistro: () => resolveDistro
43
43
  });
44
- module.exports = __toCommonJS(chunk_YDM7ULQH_exports);
44
+ module.exports = __toCommonJS(chunk_EY5MORMD_exports);
45
45
  var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js");
46
46
  var import_debug = __toESM(require("@prisma/debug"));
47
47
  var import_child_process = __toESM(require("child_process"));
@@ -53,52 +53,52 @@ var e = Symbol.for("@ts-pattern/isVariadic");
53
53
  var n = "@ts-pattern/anonymous-select-key";
54
54
  var r = (t2) => Boolean(t2 && "object" == typeof t2);
55
55
  var i = (e2) => e2 && !!e2[t];
56
- var o = (n2, s2, c2) => {
56
+ var s = (n2, o2, c2) => {
57
57
  if (i(n2)) {
58
- const e2 = n2[t](), { matched: r2, selections: i2 } = e2.match(s2);
58
+ const e2 = n2[t](), { matched: r2, selections: i2 } = e2.match(o2);
59
59
  return r2 && i2 && Object.keys(i2).forEach((t2) => c2(t2, i2[t2])), r2;
60
60
  }
61
61
  if (r(n2)) {
62
- if (!r(s2)) return false;
62
+ if (!r(o2)) return false;
63
63
  if (Array.isArray(n2)) {
64
- if (!Array.isArray(s2)) return false;
64
+ if (!Array.isArray(o2)) return false;
65
65
  let t2 = [], r2 = [], a = [];
66
- for (const o2 of n2.keys()) {
67
- const s3 = n2[o2];
68
- i(s3) && s3[e] ? a.push(s3) : a.length ? r2.push(s3) : t2.push(s3);
66
+ for (const s2 of n2.keys()) {
67
+ const o3 = n2[s2];
68
+ i(o3) && o3[e] ? a.push(o3) : a.length ? r2.push(o3) : t2.push(o3);
69
69
  }
70
70
  if (a.length) {
71
71
  if (a.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
72
- if (s2.length < t2.length + r2.length) return false;
73
- const e2 = s2.slice(0, t2.length), n3 = 0 === r2.length ? [] : s2.slice(-r2.length), i2 = s2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length);
74
- return t2.every((t3, n4) => o(t3, e2[n4], c2)) && r2.every((t3, e3) => o(t3, n3[e3], c2)) && (0 === a.length || o(a[0], i2, c2));
72
+ if (o2.length < t2.length + r2.length) return false;
73
+ const e2 = o2.slice(0, t2.length), n3 = 0 === r2.length ? [] : o2.slice(-r2.length), i2 = o2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length);
74
+ return t2.every((t3, n4) => s(t3, e2[n4], c2)) && r2.every((t3, e3) => s(t3, n3[e3], c2)) && (0 === a.length || s(a[0], i2, c2));
75
75
  }
76
- return n2.length === s2.length && n2.every((t3, e2) => o(t3, s2[e2], c2));
76
+ return n2.length === o2.length && n2.every((t3, e2) => s(t3, o2[e2], c2));
77
77
  }
78
- return Object.keys(n2).every((e2) => {
78
+ return Reflect.ownKeys(n2).every((e2) => {
79
79
  const r2 = n2[e2];
80
- return (e2 in s2 || i(a = r2) && "optional" === a[t]().matcherType) && o(r2, s2[e2], c2);
80
+ return (e2 in o2 || i(a = r2) && "optional" === a[t]().matcherType) && s(r2, o2[e2], c2);
81
81
  var a;
82
82
  });
83
83
  }
84
- return Object.is(s2, n2);
84
+ return Object.is(o2, n2);
85
85
  };
86
- var s = (e2) => {
87
- var n2, o2, a;
88
- return r(e2) ? i(e2) ? null != (n2 = null == (o2 = (a = e2[t]()).getSelectionKeys) ? void 0 : o2.call(a)) ? n2 : [] : Array.isArray(e2) ? c(e2, s) : c(Object.values(e2), s) : [];
86
+ var o = (e2) => {
87
+ var n2, s2, a;
88
+ return r(e2) ? i(e2) ? null != (n2 = null == (s2 = (a = e2[t]()).getSelectionKeys) ? void 0 : s2.call(a)) ? n2 : [] : Array.isArray(e2) ? c(e2, o) : c(Object.values(e2), o) : [];
89
89
  };
90
90
  var c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []);
91
91
  function u(t2) {
92
- return Object.assign(t2, { optional: () => l(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? p(t2) : p(e2, t2) });
92
+ return Object.assign(t2, { optional: () => h(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? y(t2) : y(e2, t2) });
93
93
  }
94
- function l(e2) {
94
+ function h(e2) {
95
95
  return u({ [t]: () => ({ match: (t2) => {
96
96
  let n2 = {};
97
97
  const r2 = (t3, e3) => {
98
98
  n2[t3] = e3;
99
99
  };
100
- return void 0 === t2 ? (s(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: o(e2, t2, r2), selections: n2 };
101
- }, getSelectionKeys: () => s(e2), matcherType: "optional" }) });
100
+ return void 0 === t2 ? (o(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: s(e2, t2, r2), selections: n2 };
101
+ }, getSelectionKeys: () => o(e2), matcherType: "optional" }) });
102
102
  }
103
103
  function m(...e2) {
104
104
  return u({ [t]: () => ({ match: (t2) => {
@@ -106,8 +106,8 @@ function m(...e2) {
106
106
  const r2 = (t3, e3) => {
107
107
  n2[t3] = e3;
108
108
  };
109
- return { matched: e2.every((e3) => o(e3, t2, r2)), selections: n2 };
110
- }, getSelectionKeys: () => c(e2, s), matcherType: "and" }) });
109
+ return { matched: e2.every((e3) => s(e3, t2, r2)), selections: n2 };
110
+ }, getSelectionKeys: () => c(e2, o), matcherType: "and" }) });
111
111
  }
112
112
  function d(...e2) {
113
113
  return u({ [t]: () => ({ match: (t2) => {
@@ -115,20 +115,20 @@ function d(...e2) {
115
115
  const r2 = (t3, e3) => {
116
116
  n2[t3] = e3;
117
117
  };
118
- return c(e2, s).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => o(e3, t2, r2)), selections: n2 };
119
- }, getSelectionKeys: () => c(e2, s), matcherType: "or" }) });
118
+ return c(e2, o).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => s(e3, t2, r2)), selections: n2 };
119
+ }, getSelectionKeys: () => c(e2, o), matcherType: "or" }) });
120
120
  }
121
- function y(e2) {
121
+ function p(e2) {
122
122
  return { [t]: () => ({ match: (t2) => ({ matched: Boolean(e2(t2)) }) }) };
123
123
  }
124
- function p(...e2) {
124
+ function y(...e2) {
125
125
  const r2 = "string" == typeof e2[0] ? e2[0] : void 0, i2 = 2 === e2.length ? e2[1] : "string" == typeof e2[0] ? void 0 : e2[0];
126
126
  return u({ [t]: () => ({ match: (t2) => {
127
127
  let e3 = { [null != r2 ? r2 : n]: t2 };
128
- return { matched: void 0 === i2 || o(i2, t2, (t3, n2) => {
128
+ return { matched: void 0 === i2 || s(i2, t2, (t3, n2) => {
129
129
  e3[t3] = n2;
130
130
  }), selections: e3 };
131
- }, getSelectionKeys: () => [null != r2 ? r2 : n].concat(void 0 === i2 ? [] : s(i2)) }) });
131
+ }, getSelectionKeys: () => [null != r2 ? r2 : n].concat(void 0 === i2 ? [] : o(i2)) }) });
132
132
  }
133
133
  function v(t2) {
134
134
  return "number" == typeof t2;
@@ -139,44 +139,55 @@ function b(t2) {
139
139
  function w(t2) {
140
140
  return "bigint" == typeof t2;
141
141
  }
142
- var S = u(y(function(t2) {
142
+ var S = u(p(function(t2) {
143
143
  return true;
144
144
  }));
145
145
  var j = (t2) => Object.assign(u(t2), { startsWith: (e2) => {
146
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.startsWith(n2)))));
146
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.startsWith(n2)))));
147
147
  var n2;
148
148
  }, endsWith: (e2) => {
149
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.endsWith(n2)))));
149
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.endsWith(n2)))));
150
150
  var n2;
151
- }, minLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length >= t3))(e2))), length: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length === t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => y((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => {
152
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && t3.includes(n2)))));
151
+ }, minLength: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length >= t3))(e2))), length: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length === t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => {
152
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.includes(n2)))));
153
153
  var n2;
154
154
  }, regex: (e2) => {
155
- return j(m(t2, (n2 = e2, y((t3) => b(t3) && Boolean(t3.match(n2))))));
155
+ return j(m(t2, (n2 = e2, p((t3) => b(t3) && Boolean(t3.match(n2))))));
156
156
  var n2;
157
157
  } });
158
- var E = j(y(b));
159
- var K = (t2) => Object.assign(u(t2), { between: (e2, n2) => K(m(t2, ((t3, e3) => y((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => K(m(t2, ((t3) => y((e3) => v(e3) && e3 >= t3))(e2))), int: () => K(m(t2, y((t3) => v(t3) && Number.isInteger(t3)))), finite: () => K(m(t2, y((t3) => v(t3) && Number.isFinite(t3)))), positive: () => K(m(t2, y((t3) => v(t3) && t3 > 0))), negative: () => K(m(t2, y((t3) => v(t3) && t3 < 0))) });
160
- var x = K(y(v));
161
- var A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => y((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => y((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, y((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, y((t3) => w(t3) && t3 < 0))) });
162
- var P = A(y(w));
163
- var T = u(y(function(t2) {
158
+ var K = j(p(b));
159
+ var x = (t2) => Object.assign(u(t2), { between: (e2, n2) => x(m(t2, ((t3, e3) => p((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 >= t3))(e2))), int: () => x(m(t2, p((t3) => v(t3) && Number.isInteger(t3)))), finite: () => x(m(t2, p((t3) => v(t3) && Number.isFinite(t3)))), positive: () => x(m(t2, p((t3) => v(t3) && t3 > 0))), negative: () => x(m(t2, p((t3) => v(t3) && t3 < 0))) });
160
+ var E = x(p(v));
161
+ var A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => p((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, p((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, p((t3) => w(t3) && t3 < 0))) });
162
+ var P = A(p(w));
163
+ var T = u(p(function(t2) {
164
164
  return "boolean" == typeof t2;
165
165
  }));
166
- var k = u(y(function(t2) {
166
+ var B = u(p(function(t2) {
167
167
  return "symbol" == typeof t2;
168
168
  }));
169
- var B = u(y(function(t2) {
169
+ var _ = u(p(function(t2) {
170
170
  return null == t2;
171
171
  }));
172
- var _ = u(y(function(t2) {
172
+ var k = u(p(function(t2) {
173
173
  return null != t2;
174
174
  }));
175
- var W = { matched: false, value: void 0 };
176
- function $(t2) {
177
- return new z(t2, W);
175
+ var W = class extends Error {
176
+ constructor(t2) {
177
+ let e2;
178
+ try {
179
+ e2 = JSON.stringify(t2);
180
+ } catch (n2) {
181
+ e2 = t2;
182
+ }
183
+ super(`Pattern matching error: no pattern matches value ${e2}`), this.input = void 0, this.input = t2;
184
+ }
185
+ };
186
+ var $ = { matched: false, value: void 0 };
187
+ function z(t2) {
188
+ return new I(t2, $);
178
189
  }
179
- var z = class _z {
190
+ var I = class _I {
180
191
  constructor(t2, e2) {
181
192
  this.input = void 0, this.state = void 0, this.input = t2, this.state = e2;
182
193
  }
@@ -185,29 +196,23 @@ var z = class _z {
185
196
  const e2 = t2[t2.length - 1], r2 = [t2[0]];
186
197
  let i2;
187
198
  3 === t2.length && "function" == typeof t2[1] ? i2 = t2[1] : t2.length > 2 && r2.push(...t2.slice(1, t2.length - 1));
188
- let s2 = false, c2 = {};
199
+ let o2 = false, c2 = {};
189
200
  const a = (t3, e3) => {
190
- s2 = true, c2[t3] = e3;
191
- }, u2 = !r2.some((t3) => o(t3, this.input, a)) || i2 && !Boolean(i2(this.input)) ? W : { matched: true, value: e2(s2 ? n in c2 ? c2[n] : c2 : this.input, this.input) };
192
- return new _z(this.input, u2);
201
+ o2 = true, c2[t3] = e3;
202
+ }, u2 = !r2.some((t3) => s(t3, this.input, a)) || i2 && !Boolean(i2(this.input)) ? $ : { matched: true, value: e2(o2 ? n in c2 ? c2[n] : c2 : this.input, this.input) };
203
+ return new _I(this.input, u2);
193
204
  }
194
205
  when(t2, e2) {
195
206
  if (this.state.matched) return this;
196
207
  const n2 = Boolean(t2(this.input));
197
- return new _z(this.input, n2 ? { matched: true, value: e2(this.input, this.input) } : W);
208
+ return new _I(this.input, n2 ? { matched: true, value: e2(this.input, this.input) } : $);
198
209
  }
199
210
  otherwise(t2) {
200
211
  return this.state.matched ? this.state.value : t2(this.input);
201
212
  }
202
213
  exhaustive() {
203
214
  if (this.state.matched) return this.state.value;
204
- let t2;
205
- try {
206
- t2 = JSON.stringify(this.input);
207
- } catch (e2) {
208
- t2 = this.input;
209
- }
210
- throw new Error(`Pattern matching error: no pattern matches value ${t2}`);
215
+ throw new W(this.input);
211
216
  }
212
217
  run() {
213
218
  return this.exhaustive();
@@ -261,7 +266,7 @@ function parseDistro(osReleaseInput) {
261
266
  const id = idMatch && idMatch[1] && idMatch[1].toLowerCase() || "";
262
267
  const idLikeMatch = idLikeRegex.exec(osReleaseInput);
263
268
  const idLike = idLikeMatch && idLikeMatch[1] && idLikeMatch[1].toLowerCase() || "";
264
- const distroInfo = $({ id, idLike }).with(
269
+ const distroInfo = z({ id, idLike }).with(
265
270
  { id: "alpine" },
266
271
  ({ id: originalDistro }) => ({
267
272
  targetDistro: "musl",
@@ -375,9 +380,9 @@ function sanitiseSSLVersion(version) {
375
380
  return void 0;
376
381
  }
377
382
  function computeLibSSLSpecificPaths(args) {
378
- return $(args).with({ familyDistro: "musl" }, () => {
383
+ return z(args).with({ familyDistro: "musl" }, () => {
379
384
  debug('Trying platform-specific paths for "alpine"');
380
- return ["/lib"];
385
+ return ["/lib", "/usr/lib"];
381
386
  }).with({ familyDistro: "debian" }, ({ archFromUname }) => {
382
387
  debug('Trying platform-specific paths for "debian" (and "ubuntu")');
383
388
  return [`/usr/lib/${archFromUname}-linux-gnu`, `/lib/${archFromUname}-linux-gnu`];
@@ -415,7 +420,7 @@ async function getSSLVersion(libsslSpecificPaths) {
415
420
  `ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${excludeLibssl0x}`
416
421
  );
417
422
  if (!libsslFilename) {
418
- libsslFilename = await findLibSSLInLocations(["/lib64", "/usr/lib64", "/lib"]);
423
+ libsslFilename = await findLibSSLInLocations(["/lib64", "/usr/lib64", "/lib", "/usr/lib"]);
419
424
  }
420
425
  if (libsslFilename) {
421
426
  debug(`Found libssl.so file using "ldconfig" or other generic paths: ${libsslFilename}`);
@@ -487,7 +492,7 @@ function getBinaryTargetForCurrentPlatformInternal(args) {
487
492
  }
488
493
  const defaultLibssl = "1.1.x";
489
494
  if (platform === "linux" && libssl === void 0) {
490
- const additionalMessage = $({ familyDistro }).with({ familyDistro: "debian" }, () => {
495
+ const additionalMessage = z({ familyDistro }).with({ familyDistro: "debian" }, () => {
491
496
  return "Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.";
492
497
  }).otherwise(() => {
493
498
  return "Please manually install OpenSSL and try installing Prisma again.";
@@ -18,21 +18,21 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var getPlatform_exports = {};
20
20
  __export(getPlatform_exports, {
21
- computeLibSSLSpecificPaths: () => import_chunk_YDM7ULQH.computeLibSSLSpecificPaths,
22
- getArchFromUname: () => import_chunk_YDM7ULQH.getArchFromUname,
23
- getBinaryTargetForCurrentPlatform: () => import_chunk_YDM7ULQH.getBinaryTargetForCurrentPlatform,
24
- getBinaryTargetForCurrentPlatformInternal: () => import_chunk_YDM7ULQH.getBinaryTargetForCurrentPlatformInternal,
25
- getPlatformInfo: () => import_chunk_YDM7ULQH.getPlatformInfo,
26
- getPlatformInfoMemoized: () => import_chunk_YDM7ULQH.getPlatformInfoMemoized,
27
- getSSLVersion: () => import_chunk_YDM7ULQH.getSSLVersion,
28
- getos: () => import_chunk_YDM7ULQH.getos,
29
- parseDistro: () => import_chunk_YDM7ULQH.parseDistro,
30
- parseLibSSLVersion: () => import_chunk_YDM7ULQH.parseLibSSLVersion,
31
- parseOpenSSLVersion: () => import_chunk_YDM7ULQH.parseOpenSSLVersion,
32
- resolveDistro: () => import_chunk_YDM7ULQH.resolveDistro
21
+ computeLibSSLSpecificPaths: () => import_chunk_EY5MORMD.computeLibSSLSpecificPaths,
22
+ getArchFromUname: () => import_chunk_EY5MORMD.getArchFromUname,
23
+ getBinaryTargetForCurrentPlatform: () => import_chunk_EY5MORMD.getBinaryTargetForCurrentPlatform,
24
+ getBinaryTargetForCurrentPlatformInternal: () => import_chunk_EY5MORMD.getBinaryTargetForCurrentPlatformInternal,
25
+ getPlatformInfo: () => import_chunk_EY5MORMD.getPlatformInfo,
26
+ getPlatformInfoMemoized: () => import_chunk_EY5MORMD.getPlatformInfoMemoized,
27
+ getSSLVersion: () => import_chunk_EY5MORMD.getSSLVersion,
28
+ getos: () => import_chunk_EY5MORMD.getos,
29
+ parseDistro: () => import_chunk_EY5MORMD.parseDistro,
30
+ parseLibSSLVersion: () => import_chunk_EY5MORMD.parseLibSSLVersion,
31
+ parseOpenSSLVersion: () => import_chunk_EY5MORMD.parseOpenSSLVersion,
32
+ resolveDistro: () => import_chunk_EY5MORMD.resolveDistro
33
33
  });
34
34
  module.exports = __toCommonJS(getPlatform_exports);
35
- var import_chunk_YDM7ULQH = require("./chunk-YDM7ULQH.js");
35
+ var import_chunk_EY5MORMD = require("./chunk-EY5MORMD.js");
36
36
  var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js");
37
37
  var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
38
38
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
package/dist/index.js CHANGED
@@ -16,25 +16,25 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var dist_exports = {};
20
- __export(dist_exports, {
19
+ var index_exports = {};
20
+ __export(index_exports, {
21
21
  assertNodeAPISupported: () => import_chunk_O5EOXX3N.assertNodeAPISupported,
22
22
  binaryTargets: () => import_chunk_7MLUNQIZ.binaryTargets,
23
- getBinaryTargetForCurrentPlatform: () => import_chunk_YDM7ULQH.getBinaryTargetForCurrentPlatform,
23
+ getBinaryTargetForCurrentPlatform: () => import_chunk_EY5MORMD.getBinaryTargetForCurrentPlatform,
24
24
  getNodeAPIName: () => import_chunk_2U36ISZO.getNodeAPIName,
25
- getPlatformInfo: () => import_chunk_YDM7ULQH.getPlatformInfo,
26
- getos: () => import_chunk_YDM7ULQH.getos,
27
- jestConsoleContext: () => import_chunk_M5NKJZ76.jestConsoleContext,
28
- jestContext: () => import_chunk_M5NKJZ76.jestContext,
29
- jestProcessContext: () => import_chunk_M5NKJZ76.jestProcessContext,
25
+ getPlatformInfo: () => import_chunk_EY5MORMD.getPlatformInfo,
26
+ getos: () => import_chunk_EY5MORMD.getos,
27
+ jestConsoleContext: () => import_chunk_2GHEBYIY.jestConsoleContext,
28
+ jestContext: () => import_chunk_2GHEBYIY.jestContext,
29
+ jestProcessContext: () => import_chunk_2GHEBYIY.jestProcessContext,
30
30
  link: () => import_chunk_D7S5FGQN.link
31
31
  });
32
- module.exports = __toCommonJS(dist_exports);
32
+ module.exports = __toCommonJS(index_exports);
33
33
  var import_chunk_6HZWON4S = require("./chunk-6HZWON4S.js");
34
- var import_chunk_M5NKJZ76 = require("./chunk-M5NKJZ76.js");
34
+ var import_chunk_2GHEBYIY = require("./chunk-2GHEBYIY.js");
35
35
  var import_chunk_O5EOXX3N = require("./chunk-O5EOXX3N.js");
36
36
  var import_chunk_2U36ISZO = require("./chunk-2U36ISZO.js");
37
- var import_chunk_YDM7ULQH = require("./chunk-YDM7ULQH.js");
37
+ var import_chunk_EY5MORMD = require("./chunk-EY5MORMD.js");
38
38
  var import_chunk_D7S5FGQN = require("./chunk-D7S5FGQN.js");
39
39
  var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js");
40
40
  var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var test_utils_exports = {};
20
20
  __export(test_utils_exports, {
21
- jestConsoleContext: () => import_chunk_M5NKJZ76.jestConsoleContext,
22
- jestContext: () => import_chunk_M5NKJZ76.jestContext,
23
- jestProcessContext: () => import_chunk_M5NKJZ76.jestProcessContext
21
+ jestConsoleContext: () => import_chunk_2GHEBYIY.jestConsoleContext,
22
+ jestContext: () => import_chunk_2GHEBYIY.jestContext,
23
+ jestProcessContext: () => import_chunk_2GHEBYIY.jestProcessContext
24
24
  });
25
25
  module.exports = __toCommonJS(test_utils_exports);
26
26
  var import_chunk_6HZWON4S = require("../chunk-6HZWON4S.js");
27
- var import_chunk_M5NKJZ76 = require("../chunk-M5NKJZ76.js");
27
+ var import_chunk_2GHEBYIY = require("../chunk-2GHEBYIY.js");
28
28
  var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var jestContext_exports = {};
20
20
  __export(jestContext_exports, {
21
- jestConsoleContext: () => import_chunk_M5NKJZ76.jestConsoleContext,
22
- jestContext: () => import_chunk_M5NKJZ76.jestContext,
23
- jestProcessContext: () => import_chunk_M5NKJZ76.jestProcessContext
21
+ jestConsoleContext: () => import_chunk_2GHEBYIY.jestConsoleContext,
22
+ jestContext: () => import_chunk_2GHEBYIY.jestContext,
23
+ jestProcessContext: () => import_chunk_2GHEBYIY.jestProcessContext
24
24
  });
25
25
  module.exports = __toCommonJS(jestContext_exports);
26
- var import_chunk_M5NKJZ76 = require("../chunk-M5NKJZ76.js");
26
+ var import_chunk_2GHEBYIY = require("../chunk-2GHEBYIY.js");
27
27
  var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/get-platform",
3
- "version": "6.3.0-integration-simpler-typeinfo-query.1",
3
+ "version": "6.3.0-integration-fix-subcommands-esm-projects.1",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,9 +15,9 @@
15
15
  "bugs": "https://github.com/prisma/prisma/issues",
16
16
  "devDependencies": {
17
17
  "@codspeed/benchmark.js-plugin": "3.1.1",
18
- "@swc/core": "1.6.13",
19
- "@swc/jest": "0.2.36",
20
- "@types/jest": "29.5.12",
18
+ "@swc/core": "1.10.1",
19
+ "@swc/jest": "0.2.37",
20
+ "@types/jest": "29.5.14",
21
21
  "@types/node": "18.19.31",
22
22
  "benchmark": "2.1.4",
23
23
  "jest": "29.7.0",
@@ -31,10 +31,10 @@
31
31
  "strip-ansi": "6.0.1",
32
32
  "tempy": "1.0.1",
33
33
  "terminal-link": "2.1.1",
34
- "ts-pattern": "5.2.0"
34
+ "ts-pattern": "5.6.0"
35
35
  },
36
36
  "dependencies": {
37
- "@prisma/debug": "6.3.0-integration-simpler-typeinfo-query.1"
37
+ "@prisma/debug": "6.3.0-integration-fix-subcommands-esm-projects.1"
38
38
  },
39
39
  "files": [
40
40
  "README.md",