@prisma/get-platform 6.19.0-integration-release-tags.4 → 6.19.0-integration-next.20

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,19 +26,19 @@ 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_5EPDNTW3_exports = {};
30
- __export(chunk_5EPDNTW3_exports, {
29
+ var chunk_6OBQDQYE_exports = {};
30
+ __export(chunk_6OBQDQYE_exports, {
31
31
  jestConsoleContext: () => jestConsoleContext,
32
32
  jestContext: () => jestContext,
33
33
  jestStdoutContext: () => jestStdoutContext,
34
34
  processExitContext: () => processExitContext
35
35
  });
36
- module.exports = __toCommonJS(chunk_5EPDNTW3_exports);
37
- var import_chunk_3UEKS5W6 = require("./chunk-3UEKS5W6.js");
36
+ module.exports = __toCommonJS(chunk_6OBQDQYE_exports);
37
+ var import_chunk_OJINGNLI = require("./chunk-OJINGNLI.js");
38
38
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
39
39
  var import_node_path = __toESM(require("node:path"));
40
- var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_3UEKS5W6.require_main)());
41
- var import_tempy = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_3UEKS5W6.require_tempy)());
40
+ var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_OJINGNLI.require_main)());
41
+ var import_tempy = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_OJINGNLI.require_tempy)());
42
42
  var jestContext = {
43
43
  new: function(ctx = {}) {
44
44
  const c = ctx;
@@ -75,9 +75,10 @@ ${[...generateDirectoryTree(children, indent)].join("\n")}
75
75
  overwrite: true
76
76
  });
77
77
  c.fs.symlink(import_node_path.default.join(originalCwd, "..", "client"), import_node_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "client"));
78
+ c.fs.symlink(import_node_path.default.join(originalCwd, "..", "config"), import_node_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "config"));
78
79
  };
79
80
  c.cli = (...input) => {
80
- return (0, import_chunk_3UEKS5W6.execaNode)(import_node_path.default.join(originalCwd, "../cli/build/index.js"), input, {
81
+ return (0, import_chunk_OJINGNLI.execaNode)(import_node_path.default.join(originalCwd, "../cli/build/index.js"), input, {
81
82
  cwd: c.fs.cwd(),
82
83
  stdio: "pipe",
83
84
  all: true
@@ -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_3UEKS5W6_exports = {};
30
- __export(chunk_3UEKS5W6_exports, {
29
+ var chunk_OJINGNLI_exports = {};
30
+ __export(chunk_OJINGNLI_exports, {
31
31
  execaNode: () => execaNode,
32
32
  require_main: () => require_main,
33
33
  require_tempy: () => require_tempy
34
34
  });
35
- module.exports = __toCommonJS(chunk_3UEKS5W6_exports);
35
+ module.exports = __toCommonJS(chunk_OJINGNLI_exports);
36
36
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
37
37
  var import_node_buffer = require("node:buffer");
38
38
  var import_node_path = __toESM(require("node:path"));
@@ -1639,7 +1639,7 @@ var require_tree_walker = (0, import_chunk_2ESYSVXG.__commonJS)({
1639
1639
  }
1640
1640
  });
1641
1641
  var require_path = (0, import_chunk_2ESYSVXG.__commonJS)({
1642
- "../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.js"(exports, module2) {
1642
+ "../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/lib/path.js"(exports, module2) {
1643
1643
  "use strict";
1644
1644
  var isWindows = typeof process === "object" && process && process.platform === "win32";
1645
1645
  module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
@@ -1702,7 +1702,7 @@ var require_balanced_match = (0, import_chunk_2ESYSVXG.__commonJS)({
1702
1702
  }
1703
1703
  });
1704
1704
  var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
1705
- "../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js"(exports, module2) {
1705
+ "../../node_modules/.pnpm/brace-expansion@2.0.2/node_modules/brace-expansion/index.js"(exports, module2) {
1706
1706
  "use strict";
1707
1707
  var balanced = require_balanced_match();
1708
1708
  module2.exports = expandTop;
@@ -1777,7 +1777,7 @@ var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
1777
1777
  var isSequence = isNumericSequence || isAlphaSequence;
1778
1778
  var isOptions = m.body.indexOf(",") >= 0;
1779
1779
  if (!isSequence && !isOptions) {
1780
- if (m.post.match(/,.*\}/)) {
1780
+ if (m.post.match(/,(?!,).*\}/)) {
1781
1781
  str = m.pre + "{" + m.body + escClose + m.post;
1782
1782
  return expand(str);
1783
1783
  }
@@ -1851,7 +1851,7 @@ var require_brace_expansion = (0, import_chunk_2ESYSVXG.__commonJS)({
1851
1851
  }
1852
1852
  });
1853
1853
  var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
1854
- "../../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.js"(exports, module2) {
1854
+ "../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js"(exports, module2) {
1855
1855
  "use strict";
1856
1856
  var minimatch = module2.exports = (p, pattern, options = {}) => {
1857
1857
  assertValidPattern(pattern);
@@ -1938,7 +1938,9 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
1938
1938
  return list;
1939
1939
  };
1940
1940
  var globUnescape = (s) => s.replace(/\\(.)/g, "$1");
1941
+ var charUnescape = (s) => s.replace(/\\([^-\]])/g, "$1");
1941
1942
  var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1943
+ var braExpEscape = (s) => s.replace(/[[\]\\]/g, "\\$&");
1942
1944
  var Minimatch = class {
1943
1945
  constructor(pattern, options) {
1944
1946
  assertValidPattern(pattern);
@@ -1991,7 +1993,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
1991
1993
  negate = !negate;
1992
1994
  negateOffset++;
1993
1995
  }
1994
- if (negateOffset) this.pattern = pattern.substr(negateOffset);
1996
+ if (negateOffset) this.pattern = pattern.slice(negateOffset);
1995
1997
  this.negate = negate;
1996
1998
  }
1997
1999
  // set partial to true to test if, for example,
@@ -2077,7 +2079,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
2077
2079
  }
2078
2080
  if (pattern === "") return "";
2079
2081
  let re = "";
2080
- let hasMagic = !!options.nocase;
2082
+ let hasMagic = false;
2081
2083
  let escaping = false;
2082
2084
  const patternListStack = [];
2083
2085
  const negativeLists = [];
@@ -2088,7 +2090,10 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
2088
2090
  let cs;
2089
2091
  let pl;
2090
2092
  let sp;
2091
- const patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
2093
+ let dotTravAllowed = pattern.charAt(0) === ".";
2094
+ let dotFileAllowed = options.dot || dotTravAllowed;
2095
+ const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
2096
+ const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
2092
2097
  const clearStateChar = () => {
2093
2098
  if (stateChar) {
2094
2099
  switch (stateChar) {
@@ -2127,6 +2132,10 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
2127
2132
  return false;
2128
2133
  }
2129
2134
  case "\\":
2135
+ if (inClass && pattern.charAt(i + 1) === "-") {
2136
+ re += c;
2137
+ continue;
2138
+ }
2130
2139
  clearStateChar();
2131
2140
  escaping = true;
2132
2141
  continue;
@@ -2149,7 +2158,7 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
2149
2158
  stateChar = c;
2150
2159
  if (options.noext) clearStateChar();
2151
2160
  continue;
2152
- case "(":
2161
+ case "(": {
2153
2162
  if (inClass) {
2154
2163
  re += "(";
2155
2164
  continue;
@@ -2158,39 +2167,54 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
2158
2167
  re += "\\(";
2159
2168
  continue;
2160
2169
  }
2161
- patternListStack.push({
2170
+ const plEntry = {
2162
2171
  type: stateChar,
2163
2172
  start: i - 1,
2164
2173
  reStart: re.length,
2165
2174
  open: plTypes[stateChar].open,
2166
2175
  close: plTypes[stateChar].close
2167
- });
2168
- re += stateChar === "!" ? "(?:(?!(?:" : "(?:";
2176
+ };
2177
+ this.debug(this.pattern, " ", plEntry);
2178
+ patternListStack.push(plEntry);
2179
+ re += plEntry.open;
2180
+ if (plEntry.start === 0 && plEntry.type !== "!") {
2181
+ dotTravAllowed = true;
2182
+ re += subPatternStart(pattern.slice(i + 1));
2183
+ }
2169
2184
  this.debug("plType %j %j", stateChar, re);
2170
2185
  stateChar = false;
2171
2186
  continue;
2172
- case ")":
2173
- if (inClass || !patternListStack.length) {
2187
+ }
2188
+ case ")": {
2189
+ const plEntry = patternListStack[patternListStack.length - 1];
2190
+ if (inClass || !plEntry) {
2174
2191
  re += "\\)";
2175
2192
  continue;
2176
2193
  }
2194
+ patternListStack.pop();
2177
2195
  clearStateChar();
2178
2196
  hasMagic = true;
2179
- pl = patternListStack.pop();
2197
+ pl = plEntry;
2180
2198
  re += pl.close;
2181
2199
  if (pl.type === "!") {
2182
- negativeLists.push(pl);
2200
+ negativeLists.push(Object.assign(pl, { reEnd: re.length }));
2183
2201
  }
2184
- pl.reEnd = re.length;
2185
2202
  continue;
2186
- case "|":
2187
- if (inClass || !patternListStack.length) {
2203
+ }
2204
+ case "|": {
2205
+ const plEntry = patternListStack[patternListStack.length - 1];
2206
+ if (inClass || !plEntry) {
2188
2207
  re += "\\|";
2189
2208
  continue;
2190
2209
  }
2191
2210
  clearStateChar();
2192
2211
  re += "|";
2212
+ if (plEntry.start === 0 && plEntry.type !== "!") {
2213
+ dotTravAllowed = true;
2214
+ re += subPatternStart(pattern.slice(i + 1));
2215
+ }
2193
2216
  continue;
2217
+ }
2194
2218
  // these are mostly the same in regexp and glob
2195
2219
  case "[":
2196
2220
  clearStateChar();
@@ -2210,17 +2234,13 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
2210
2234
  }
2211
2235
  cs = pattern.substring(classStart + 1, i);
2212
2236
  try {
2213
- RegExp("[" + cs + "]");
2237
+ RegExp("[" + braExpEscape(charUnescape(cs)) + "]");
2238
+ re += c;
2214
2239
  } catch (er) {
2215
- sp = this.parse(cs, SUBPARSE);
2216
- re = re.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
2217
- hasMagic = hasMagic || sp[1];
2218
- inClass = false;
2219
- continue;
2240
+ re = re.substring(0, reClassStart) + "(?:$.)";
2220
2241
  }
2221
2242
  hasMagic = true;
2222
2243
  inClass = false;
2223
- re += c;
2224
2244
  continue;
2225
2245
  default:
2226
2246
  clearStateChar();
@@ -2232,9 +2252,9 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
2232
2252
  }
2233
2253
  }
2234
2254
  if (inClass) {
2235
- cs = pattern.substr(classStart + 1);
2255
+ cs = pattern.slice(classStart + 1);
2236
2256
  sp = this.parse(cs, SUBPARSE);
2237
- re = re.substr(0, reClassStart) + "\\[" + sp[0];
2257
+ re = re.substring(0, reClassStart) + "\\[" + sp[0];
2238
2258
  hasMagic = hasMagic || sp[1];
2239
2259
  }
2240
2260
  for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
@@ -2263,24 +2283,28 @@ var require_minimatch = (0, import_chunk_2ESYSVXG.__commonJS)({
2263
2283
  const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
2264
2284
  let nlAfter = re.slice(nl.reEnd);
2265
2285
  const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
2266
- const openParensBefore = nlBefore.split("(").length - 1;
2286
+ const closeParensBefore = nlBefore.split(")").length;
2287
+ const openParensBefore = nlBefore.split("(").length - closeParensBefore;
2267
2288
  let cleanAfter = nlAfter;
2268
2289
  for (let i = 0; i < openParensBefore; i++) {
2269
2290
  cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
2270
2291
  }
2271
2292
  nlAfter = cleanAfter;
2272
- const dollar = nlAfter === "" && isSub !== SUBPARSE ? "$" : "";
2293
+ const dollar = nlAfter === "" && isSub !== SUBPARSE ? "(?:$|\\/)" : "";
2273
2294
  re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
2274
2295
  }
2275
2296
  if (re !== "" && hasMagic) {
2276
2297
  re = "(?=.)" + re;
2277
2298
  }
2278
2299
  if (addPatternStart) {
2279
- re = patternStart + re;
2300
+ re = patternStart() + re;
2280
2301
  }
2281
2302
  if (isSub === SUBPARSE) {
2282
2303
  return [re, hasMagic];
2283
2304
  }
2305
+ if (options.nocase && !hasMagic) {
2306
+ hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();
2307
+ }
2284
2308
  if (!hasMagic) {
2285
2309
  return globUnescape(pattern);
2286
2310
  }
@@ -7681,7 +7705,7 @@ var require_out2 = (0, import_chunk_2ESYSVXG.__commonJS)({
7681
7705
  }
7682
7706
  });
7683
7707
  var require_reusify = (0, import_chunk_2ESYSVXG.__commonJS)({
7684
- "../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(exports, module2) {
7708
+ "../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module2) {
7685
7709
  "use strict";
7686
7710
  function reusify(Constructor) {
7687
7711
  var head = new Constructor();
@@ -7710,17 +7734,17 @@ var require_reusify = (0, import_chunk_2ESYSVXG.__commonJS)({
7710
7734
  }
7711
7735
  });
7712
7736
  var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({
7713
- "../../node_modules/.pnpm/fastq@1.15.0/node_modules/fastq/queue.js"(exports, module2) {
7737
+ "../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js"(exports, module2) {
7714
7738
  "use strict";
7715
7739
  var reusify = require_reusify();
7716
- function fastqueue(context, worker, concurrency) {
7740
+ function fastqueue(context, worker, _concurrency) {
7717
7741
  if (typeof context === "function") {
7718
- concurrency = worker;
7742
+ _concurrency = worker;
7719
7743
  worker = context;
7720
7744
  context = null;
7721
7745
  }
7722
- if (concurrency < 1) {
7723
- throw new Error("fastqueue concurrency must be greater than 1");
7746
+ if (!(_concurrency >= 1)) {
7747
+ throw new Error("fastqueue concurrency must be equal to or greater than 1");
7724
7748
  }
7725
7749
  var cache = reusify(Task);
7726
7750
  var queueHead = null;
@@ -7733,7 +7757,20 @@ var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({
7733
7757
  saturated: noop2,
7734
7758
  pause,
7735
7759
  paused: false,
7736
- concurrency,
7760
+ get concurrency() {
7761
+ return _concurrency;
7762
+ },
7763
+ set concurrency(value) {
7764
+ if (!(value >= 1)) {
7765
+ throw new Error("fastqueue concurrency must be equal to or greater than 1");
7766
+ }
7767
+ _concurrency = value;
7768
+ if (self.paused) return;
7769
+ for (; queueHead && _running < _concurrency; ) {
7770
+ _running++;
7771
+ release();
7772
+ }
7773
+ },
7737
7774
  running,
7738
7775
  resume,
7739
7776
  idle,
@@ -7773,7 +7810,12 @@ var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({
7773
7810
  function resume() {
7774
7811
  if (!self.paused) return;
7775
7812
  self.paused = false;
7776
- for (var i = 0; i < self.concurrency; i++) {
7813
+ if (queueHead === null) {
7814
+ _running++;
7815
+ release();
7816
+ return;
7817
+ }
7818
+ for (; queueHead && _running < _concurrency; ) {
7777
7819
  _running++;
7778
7820
  release();
7779
7821
  }
@@ -7788,7 +7830,7 @@ var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({
7788
7830
  current.value = value;
7789
7831
  current.callback = done || noop2;
7790
7832
  current.errorHandler = errorHandler;
7791
- if (_running === self.concurrency || self.paused) {
7833
+ if (_running >= _concurrency || self.paused) {
7792
7834
  if (queueTail) {
7793
7835
  queueTail.next = current;
7794
7836
  queueTail = current;
@@ -7808,7 +7850,8 @@ var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({
7808
7850
  current.release = release;
7809
7851
  current.value = value;
7810
7852
  current.callback = done || noop2;
7811
- if (_running === self.concurrency || self.paused) {
7853
+ current.errorHandler = errorHandler;
7854
+ if (_running >= _concurrency || self.paused) {
7812
7855
  if (queueHead) {
7813
7856
  current.next = queueHead;
7814
7857
  queueHead = current;
@@ -7827,7 +7870,7 @@ var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({
7827
7870
  cache.release(holder);
7828
7871
  }
7829
7872
  var next = queueHead;
7830
- if (next) {
7873
+ if (next && _running <= _concurrency) {
7831
7874
  if (!self.paused) {
7832
7875
  if (queueTail === queueHead) {
7833
7876
  queueTail = null;
@@ -7883,9 +7926,9 @@ var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({
7883
7926
  self.release(self);
7884
7927
  };
7885
7928
  }
7886
- function queueAsPromised(context, worker, concurrency) {
7929
+ function queueAsPromised(context, worker, _concurrency) {
7887
7930
  if (typeof context === "function") {
7888
- concurrency = worker;
7931
+ _concurrency = worker;
7889
7932
  worker = context;
7890
7933
  context = null;
7891
7934
  }
@@ -7894,7 +7937,7 @@ var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({
7894
7937
  cb(null, res);
7895
7938
  }, cb);
7896
7939
  }
7897
- var queue = fastqueue(context, asyncWrapper, concurrency);
7940
+ var queue = fastqueue(context, asyncWrapper, _concurrency);
7898
7941
  var pushCb = queue.push;
7899
7942
  var unshiftCb = queue.unshift;
7900
7943
  queue.push = push;
@@ -7928,17 +7971,19 @@ var require_queue = (0, import_chunk_2ESYSVXG.__commonJS)({
7928
7971
  return p;
7929
7972
  }
7930
7973
  function drained() {
7931
- if (queue.idle()) {
7932
- return new Promise(function(resolve) {
7933
- resolve();
7934
- });
7935
- }
7936
- var previousDrain = queue.drain;
7937
7974
  var p = new Promise(function(resolve) {
7938
- queue.drain = function() {
7939
- previousDrain();
7940
- resolve();
7941
- };
7975
+ process.nextTick(function() {
7976
+ if (queue.idle()) {
7977
+ resolve();
7978
+ } else {
7979
+ var previousDrain = queue.drain;
7980
+ queue.drain = function() {
7981
+ if (typeof previousDrain === "function") previousDrain();
7982
+ resolve();
7983
+ queue.drain = previousDrain;
7984
+ };
7985
+ }
7986
+ });
7942
7987
  });
7943
7988
  return p;
7944
7989
  }
@@ -9170,7 +9215,7 @@ var require_dir_glob = (0, import_chunk_2ESYSVXG.__commonJS)({
9170
9215
  }
9171
9216
  });
9172
9217
  var require_ignore = (0, import_chunk_2ESYSVXG.__commonJS)({
9173
- "../../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(exports, module2) {
9218
+ "../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module2) {
9174
9219
  "use strict";
9175
9220
  function makeArray(subject) {
9176
9221
  return Array.isArray(subject) ? subject : [subject];
@@ -9202,18 +9247,32 @@ var require_ignore = (0, import_chunk_2ESYSVXG.__commonJS)({
9202
9247
  return slashes.slice(0, length - length % 2);
9203
9248
  };
9204
9249
  var REPLACERS = [
9250
+ [
9251
+ // remove BOM
9252
+ // TODO:
9253
+ // Other similar zero-width characters?
9254
+ /^\uFEFF/,
9255
+ () => EMPTY
9256
+ ],
9205
9257
  // > Trailing spaces are ignored unless they are quoted with backslash ("\")
9206
9258
  [
9207
9259
  // (a\ ) -> (a )
9208
9260
  // (a ) -> (a)
9261
+ // (a ) -> (a)
9209
9262
  // (a \ ) -> (a )
9210
- /\\?\s+$/,
9211
- (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY
9263
+ /((?:\\\\)*?)(\\?\s+)$/,
9264
+ (_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
9212
9265
  ],
9213
9266
  // replace (\ ) with ' '
9267
+ // (\ ) -> ' '
9268
+ // (\\ ) -> '\\ '
9269
+ // (\\\ ) -> '\\ '
9214
9270
  [
9215
- /\\\s/g,
9216
- () => SPACE
9271
+ /(\\+?)\s/g,
9272
+ (_, m1) => {
9273
+ const { length } = m1;
9274
+ return m1.slice(0, length - length % 2) + SPACE;
9275
+ }
9217
9276
  ],
9218
9277
  // Escape metacharacters
9219
9278
  // which is written down by users but means special for regular expressions.
@@ -9348,7 +9407,7 @@ var require_ignore = (0, import_chunk_2ESYSVXG.__commonJS)({
9348
9407
  let source = regexCache[pattern];
9349
9408
  if (!source) {
9350
9409
  source = REPLACERS.reduce(
9351
- (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
9410
+ (prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
9352
9411
  pattern
9353
9412
  );
9354
9413
  regexCache[pattern] = source;
@@ -9826,7 +9885,7 @@ var require_globby = (0, import_chunk_2ESYSVXG.__commonJS)({
9826
9885
  }
9827
9886
  });
9828
9887
  var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
9829
- "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module2) {
9888
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports, module2) {
9830
9889
  "use strict";
9831
9890
  var constants3 = (0, import_chunk_2ESYSVXG.__require)("constants");
9832
9891
  var origCwd = process.cwd;
@@ -9896,7 +9955,7 @@ var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
9896
9955
  var start = Date.now();
9897
9956
  var backoff = 0;
9898
9957
  fs$rename(from, to, function CB(er) {
9899
- if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
9958
+ if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
9900
9959
  setTimeout(function() {
9901
9960
  fs.stat(to, function(stater, st) {
9902
9961
  if (stater && stater.code === "ENOENT")
@@ -10113,7 +10172,7 @@ var require_polyfills = (0, import_chunk_2ESYSVXG.__commonJS)({
10113
10172
  }
10114
10173
  });
10115
10174
  var require_legacy_streams = (0, import_chunk_2ESYSVXG.__commonJS)({
10116
- "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
10175
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
10117
10176
  "use strict";
10118
10177
  var Stream = (0, import_chunk_2ESYSVXG.__require)("stream").Stream;
10119
10178
  module2.exports = legacy;
@@ -10208,7 +10267,7 @@ var require_legacy_streams = (0, import_chunk_2ESYSVXG.__commonJS)({
10208
10267
  }
10209
10268
  });
10210
10269
  var require_clone = (0, import_chunk_2ESYSVXG.__commonJS)({
10211
- "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module2) {
10270
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js"(exports, module2) {
10212
10271
  "use strict";
10213
10272
  module2.exports = clone;
10214
10273
  var getPrototypeOf = Object.getPrototypeOf || function(obj) {
@@ -10229,7 +10288,7 @@ var require_clone = (0, import_chunk_2ESYSVXG.__commonJS)({
10229
10288
  }
10230
10289
  });
10231
10290
  var require_graceful_fs = (0, import_chunk_2ESYSVXG.__commonJS)({
10232
- "../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
10291
+ "../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
10233
10292
  "use strict";
10234
10293
  var fs = (0, import_chunk_2ESYSVXG.__require)("fs");
10235
10294
  var polyfills = require_polyfills();
@@ -10899,7 +10958,7 @@ var require_concat_map = (0, import_chunk_2ESYSVXG.__commonJS)({
10899
10958
  }
10900
10959
  });
10901
10960
  var require_brace_expansion2 = (0, import_chunk_2ESYSVXG.__commonJS)({
10902
- "../../node_modules/.pnpm/brace-expansion@1.1.11/node_modules/brace-expansion/index.js"(exports, module2) {
10961
+ "../../node_modules/.pnpm/brace-expansion@1.1.12/node_modules/brace-expansion/index.js"(exports, module2) {
10903
10962
  "use strict";
10904
10963
  var concatMap = require_concat_map();
10905
10964
  var balanced = require_balanced_match();
@@ -10967,7 +11026,7 @@ var require_brace_expansion2 = (0, import_chunk_2ESYSVXG.__commonJS)({
10967
11026
  var isSequence = isNumericSequence || isAlphaSequence;
10968
11027
  var isOptions = m.body.indexOf(",") >= 0;
10969
11028
  if (!isSequence && !isOptions) {
10970
- if (m.post.match(/,.*\}/)) {
11029
+ if (m.post.match(/,(?!,).*\}/)) {
10971
11030
  str = m.pre + "{" + m.body + escClose + m.post;
10972
11031
  return expand(str);
10973
11032
  }
@@ -26,11 +26,11 @@ 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_M5T7GI2R_exports = {};
30
- __export(chunk_M5T7GI2R_exports, {
29
+ var chunk_YLRTNN74_exports = {};
30
+ __export(chunk_YLRTNN74_exports, {
31
31
  link: () => link2
32
32
  });
33
- module.exports = __toCommonJS(chunk_M5T7GI2R_exports);
33
+ module.exports = __toCommonJS(chunk_YLRTNN74_exports);
34
34
  var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
35
35
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
36
36
  var import_node_process = __toESM(require("node:process"));
@@ -245,9 +245,11 @@ var require_supports_hyperlinks = (0, import_chunk_2ESYSVXG.__commonJS)({
245
245
  });
246
246
  var base_exports = {};
247
247
  (0, import_chunk_2ESYSVXG.__export)(base_exports, {
248
+ ConEmu: () => ConEmu,
248
249
  beep: () => beep,
249
250
  clearScreen: () => clearScreen,
250
251
  clearTerminal: () => clearTerminal,
252
+ clearViewport: () => clearViewport,
251
253
  cursorBackward: () => cursorBackward,
252
254
  cursorDown: () => cursorDown,
253
255
  cursorForward: () => cursorForward,
@@ -275,7 +277,8 @@ var base_exports = {};
275
277
  image: () => image,
276
278
  link: () => link,
277
279
  scrollDown: () => scrollDown,
278
- scrollUp: () => scrollUp
280
+ scrollUp: () => scrollUp,
281
+ setCwd: () => setCwd
279
282
  });
280
283
  var isBrowser = globalThis.window?.document !== void 0;
281
284
  var isNode = globalThis.process?.versions?.node !== void 0;
@@ -359,6 +362,7 @@ var eraseScreen = ESC + "2J";
359
362
  var scrollUp = ESC + "S";
360
363
  var scrollDown = ESC + "T";
361
364
  var clearScreen = "\x1Bc";
365
+ var clearViewport = `${eraseScreen}${ESC}H`;
362
366
  var clearTerminal = isWindows2 ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`;
363
367
  var enterAlternativeScreen = ESC + "?1049h";
364
368
  var exitAlternativeScreen = ESC + "?1049l";
@@ -388,7 +392,8 @@ var image = (data, options = {}) => {
388
392
  if (options.preserveAspectRatio === false) {
389
393
  returnValue += ";preserveAspectRatio=0";
390
394
  }
391
- return returnValue + ":" + Buffer.from(data).toString("base64") + BEL;
395
+ const imageBuffer = Buffer.from(data);
396
+ return returnValue + `;size=${imageBuffer.byteLength}:` + imageBuffer.toString("base64") + BEL;
392
397
  };
393
398
  var iTerm = {
394
399
  setCwd: (cwd = cwdFunction()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
@@ -409,6 +414,10 @@ var iTerm = {
409
414
  return returnValue + BEL;
410
415
  }
411
416
  };
417
+ var ConEmu = {
418
+ setCwd: (cwd = cwdFunction()) => `${OSC}9;9;${cwd}${BEL}`
419
+ };
420
+ var setCwd = (cwd = cwdFunction()) => iTerm.setCwd(cwd) + ConEmu.setCwd(cwd);
412
421
  var import_supports_hyperlinks = (0, import_chunk_2ESYSVXG.__toESM)(require_supports_hyperlinks(), 1);
413
422
  function terminalLink(text, url, { target = "stdout", ...options } = {}) {
414
423
  if (!import_supports_hyperlinks.default[target]) {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- export { assertNodeAPISupported } from './assertNodeAPISupported';
2
1
  export { type BinaryTarget, binaryTargets } from './binaryTargets';
3
- export { getNodeAPIName } from './getNodeAPIName';
4
2
  export type { PlatformInfo } from './getPlatform';
5
3
  export { getBinaryTargetForCurrentPlatform, getos, getPlatformInfo } from './getPlatform';
6
4
  export { link } from './link';
package/dist/index.js CHANGED
@@ -18,28 +18,24 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var index_exports = {};
20
20
  __export(index_exports, {
21
- assertNodeAPISupported: () => import_chunk_O5EOXX3N.assertNodeAPISupported,
22
21
  binaryTargets: () => import_chunk_7MLUNQIZ.binaryTargets,
23
22
  getBinaryTargetForCurrentPlatform: () => import_chunk_7PMGXL6S.getBinaryTargetForCurrentPlatform,
24
- getNodeAPIName: () => import_chunk_2U36ISZO.getNodeAPIName,
25
23
  getPlatformInfo: () => import_chunk_7PMGXL6S.getPlatformInfo,
26
24
  getos: () => import_chunk_7PMGXL6S.getos,
27
- jestConsoleContext: () => import_chunk_5EPDNTW3.jestConsoleContext,
28
- jestContext: () => import_chunk_5EPDNTW3.jestContext,
29
- jestStdoutContext: () => import_chunk_5EPDNTW3.jestStdoutContext,
30
- link: () => import_chunk_M5T7GI2R.link,
31
- processExitContext: () => import_chunk_5EPDNTW3.processExitContext
25
+ jestConsoleContext: () => import_chunk_6OBQDQYE.jestConsoleContext,
26
+ jestContext: () => import_chunk_6OBQDQYE.jestContext,
27
+ jestStdoutContext: () => import_chunk_6OBQDQYE.jestStdoutContext,
28
+ link: () => import_chunk_YLRTNN74.link,
29
+ processExitContext: () => import_chunk_6OBQDQYE.processExitContext
32
30
  });
33
31
  module.exports = __toCommonJS(index_exports);
34
- var import_chunk_6HZWON4S = require("./chunk-6HZWON4S.js");
35
- var import_chunk_5EPDNTW3 = require("./chunk-5EPDNTW3.js");
36
- var import_chunk_3UEKS5W6 = require("./chunk-3UEKS5W6.js");
37
- var import_chunk_O5EOXX3N = require("./chunk-O5EOXX3N.js");
38
- var import_chunk_2U36ISZO = require("./chunk-2U36ISZO.js");
39
32
  var import_chunk_7PMGXL6S = require("./chunk-7PMGXL6S.js");
40
- var import_chunk_M5T7GI2R = require("./chunk-M5T7GI2R.js");
33
+ var import_chunk_YLRTNN74 = require("./chunk-YLRTNN74.js");
41
34
  var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js");
42
35
  var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
43
36
  var import_chunk_7MLUNQIZ = require("./chunk-7MLUNQIZ.js");
37
+ var import_chunk_6HZWON4S = require("./chunk-6HZWON4S.js");
38
+ var import_chunk_6OBQDQYE = require("./chunk-6OBQDQYE.js");
39
+ var import_chunk_OJINGNLI = require("./chunk-OJINGNLI.js");
44
40
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
45
41
  (0, import_chunk_7MLUNQIZ.init_binaryTargets)();
package/dist/link.js CHANGED
@@ -18,9 +18,9 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var link_exports = {};
20
20
  __export(link_exports, {
21
- link: () => import_chunk_M5T7GI2R.link
21
+ link: () => import_chunk_YLRTNN74.link
22
22
  });
23
23
  module.exports = __toCommonJS(link_exports);
24
- var import_chunk_M5T7GI2R = require("./chunk-M5T7GI2R.js");
24
+ var import_chunk_YLRTNN74 = require("./chunk-YLRTNN74.js");
25
25
  var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
26
26
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");