@prisma/get-platform 6.6.0-dev.4 → 6.6.0-dev.40
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.
- package/dist/{chunk-2BHXWNN4.js → chunk-4CHMSIXA.js} +6 -6
- package/dist/{chunk-D7S5FGQN.js → chunk-DS3PYS3D.js} +136 -149
- package/dist/{chunk-B23KD6U3.js → chunk-IPLRRT6O.js} +14 -14
- package/dist/index.js +6 -6
- package/dist/link.js +2 -2
- package/dist/test-utils/binaryTargetRegex.js +3 -3
- package/dist/test-utils/index.js +4 -4
- package/dist/test-utils/jestContext.js +4 -4
- package/dist/test-utils/jestSnapshotSerializer.js +2 -2
- package/package.json +4 -4
|
@@ -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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_4CHMSIXA_exports = {};
|
|
30
|
+
__export(chunk_4CHMSIXA_exports, {
|
|
31
31
|
jestConsoleContext: () => jestConsoleContext,
|
|
32
32
|
jestContext: () => jestContext,
|
|
33
33
|
jestProcessContext: () => jestProcessContext
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
35
|
+
module.exports = __toCommonJS(chunk_4CHMSIXA_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)({
|
|
@@ -14872,6 +14872,9 @@ var jestContext = {
|
|
|
14872
14872
|
const c = ctx;
|
|
14873
14873
|
beforeEach(() => {
|
|
14874
14874
|
const originalCwd = process.cwd();
|
|
14875
|
+
c.mocked = c.mocked ?? {
|
|
14876
|
+
cwd: process.cwd()
|
|
14877
|
+
};
|
|
14875
14878
|
c.tmpDir = import_tempy.default.directory();
|
|
14876
14879
|
c.fs = import_fs_jetpack.default.cwd(c.tmpDir);
|
|
14877
14880
|
c.tree = (startFrom = c.tmpDir, indent = "") => {
|
|
@@ -14901,9 +14904,6 @@ ${[...generateDirectoryTree(children, indent)].join("\n")}
|
|
|
14901
14904
|
});
|
|
14902
14905
|
c.fs.symlink(import_path.default.join(originalCwd, "..", "client"), import_path.default.join(c.fs.cwd(), "node_modules", "@prisma", "client"));
|
|
14903
14906
|
};
|
|
14904
|
-
c.mocked = c.mocked ?? {
|
|
14905
|
-
cwd: process.cwd()
|
|
14906
|
-
};
|
|
14907
14907
|
c.cli = (...input) => {
|
|
14908
14908
|
return import_execa.default.node(import_path.default.join(originalCwd, "../cli/build/index.js"), input, {
|
|
14909
14909
|
cwd: c.fs.cwd(),
|
|
@@ -16,138 +16,13 @@ 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
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_DS3PYS3D_exports = {};
|
|
20
|
+
__export(chunk_DS3PYS3D_exports, {
|
|
21
21
|
link: () => link
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_DS3PYS3D_exports);
|
|
24
24
|
var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
|
|
25
25
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
26
|
-
var require_ansi_escapes = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
27
|
-
"../../node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js"(exports, module2) {
|
|
28
|
-
"use strict";
|
|
29
|
-
var ansiEscapes = module2.exports;
|
|
30
|
-
module2.exports.default = ansiEscapes;
|
|
31
|
-
var ESC = "\x1B[";
|
|
32
|
-
var OSC = "\x1B]";
|
|
33
|
-
var BEL = "\x07";
|
|
34
|
-
var SEP = ";";
|
|
35
|
-
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
|
36
|
-
ansiEscapes.cursorTo = (x, y) => {
|
|
37
|
-
if (typeof x !== "number") {
|
|
38
|
-
throw new TypeError("The `x` argument is required");
|
|
39
|
-
}
|
|
40
|
-
if (typeof y !== "number") {
|
|
41
|
-
return ESC + (x + 1) + "G";
|
|
42
|
-
}
|
|
43
|
-
return ESC + (y + 1) + ";" + (x + 1) + "H";
|
|
44
|
-
};
|
|
45
|
-
ansiEscapes.cursorMove = (x, y) => {
|
|
46
|
-
if (typeof x !== "number") {
|
|
47
|
-
throw new TypeError("The `x` argument is required");
|
|
48
|
-
}
|
|
49
|
-
let ret = "";
|
|
50
|
-
if (x < 0) {
|
|
51
|
-
ret += ESC + -x + "D";
|
|
52
|
-
} else if (x > 0) {
|
|
53
|
-
ret += ESC + x + "C";
|
|
54
|
-
}
|
|
55
|
-
if (y < 0) {
|
|
56
|
-
ret += ESC + -y + "A";
|
|
57
|
-
} else if (y > 0) {
|
|
58
|
-
ret += ESC + y + "B";
|
|
59
|
-
}
|
|
60
|
-
return ret;
|
|
61
|
-
};
|
|
62
|
-
ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
|
|
63
|
-
ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
|
|
64
|
-
ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
|
|
65
|
-
ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
|
|
66
|
-
ansiEscapes.cursorLeft = ESC + "G";
|
|
67
|
-
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
68
|
-
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
69
|
-
ansiEscapes.cursorGetPosition = ESC + "6n";
|
|
70
|
-
ansiEscapes.cursorNextLine = ESC + "E";
|
|
71
|
-
ansiEscapes.cursorPrevLine = ESC + "F";
|
|
72
|
-
ansiEscapes.cursorHide = ESC + "?25l";
|
|
73
|
-
ansiEscapes.cursorShow = ESC + "?25h";
|
|
74
|
-
ansiEscapes.eraseLines = (count) => {
|
|
75
|
-
let clear = "";
|
|
76
|
-
for (let i = 0; i < count; i++) {
|
|
77
|
-
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
|
|
78
|
-
}
|
|
79
|
-
if (count) {
|
|
80
|
-
clear += ansiEscapes.cursorLeft;
|
|
81
|
-
}
|
|
82
|
-
return clear;
|
|
83
|
-
};
|
|
84
|
-
ansiEscapes.eraseEndLine = ESC + "K";
|
|
85
|
-
ansiEscapes.eraseStartLine = ESC + "1K";
|
|
86
|
-
ansiEscapes.eraseLine = ESC + "2K";
|
|
87
|
-
ansiEscapes.eraseDown = ESC + "J";
|
|
88
|
-
ansiEscapes.eraseUp = ESC + "1J";
|
|
89
|
-
ansiEscapes.eraseScreen = ESC + "2J";
|
|
90
|
-
ansiEscapes.scrollUp = ESC + "S";
|
|
91
|
-
ansiEscapes.scrollDown = ESC + "T";
|
|
92
|
-
ansiEscapes.clearScreen = "\x1Bc";
|
|
93
|
-
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : (
|
|
94
|
-
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
95
|
-
// 2. Erases the whole screen including scrollback buffer
|
|
96
|
-
// 3. Moves cursor to the top-left position
|
|
97
|
-
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
98
|
-
`${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`
|
|
99
|
-
);
|
|
100
|
-
ansiEscapes.beep = BEL;
|
|
101
|
-
ansiEscapes.link = (text, url) => {
|
|
102
|
-
return [
|
|
103
|
-
OSC,
|
|
104
|
-
"8",
|
|
105
|
-
SEP,
|
|
106
|
-
SEP,
|
|
107
|
-
url,
|
|
108
|
-
BEL,
|
|
109
|
-
text,
|
|
110
|
-
OSC,
|
|
111
|
-
"8",
|
|
112
|
-
SEP,
|
|
113
|
-
SEP,
|
|
114
|
-
BEL
|
|
115
|
-
].join("");
|
|
116
|
-
};
|
|
117
|
-
ansiEscapes.image = (buffer, options = {}) => {
|
|
118
|
-
let ret = `${OSC}1337;File=inline=1`;
|
|
119
|
-
if (options.width) {
|
|
120
|
-
ret += `;width=${options.width}`;
|
|
121
|
-
}
|
|
122
|
-
if (options.height) {
|
|
123
|
-
ret += `;height=${options.height}`;
|
|
124
|
-
}
|
|
125
|
-
if (options.preserveAspectRatio === false) {
|
|
126
|
-
ret += ";preserveAspectRatio=0";
|
|
127
|
-
}
|
|
128
|
-
return ret + ":" + buffer.toString("base64") + BEL;
|
|
129
|
-
};
|
|
130
|
-
ansiEscapes.iTerm = {
|
|
131
|
-
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
132
|
-
annotation: (message, options = {}) => {
|
|
133
|
-
let ret = `${OSC}1337;`;
|
|
134
|
-
const hasX = typeof options.x !== "undefined";
|
|
135
|
-
const hasY = typeof options.y !== "undefined";
|
|
136
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
137
|
-
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
138
|
-
}
|
|
139
|
-
message = message.replace(/\|/g, "");
|
|
140
|
-
ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
|
141
|
-
if (options.length > 0) {
|
|
142
|
-
ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
|
143
|
-
} else {
|
|
144
|
-
ret += message;
|
|
145
|
-
}
|
|
146
|
-
return ret + BEL;
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
26
|
var require_has_flag = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
152
27
|
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
153
28
|
"use strict";
|
|
@@ -339,29 +214,141 @@ var require_supports_hyperlinks = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
339
214
|
};
|
|
340
215
|
}
|
|
341
216
|
});
|
|
342
|
-
var
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
return typeof options.fallback === "function" ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
|
|
353
|
-
}
|
|
354
|
-
return ansiEscapes.link(text, url);
|
|
355
|
-
};
|
|
356
|
-
module2.exports = (text, url, options = {}) => terminalLink2(text, url, options);
|
|
357
|
-
module2.exports.stderr = (text, url, options = {}) => terminalLink2(text, url, { target: "stderr", ...options });
|
|
358
|
-
module2.exports.isSupported = supportsHyperlinks.stdout;
|
|
359
|
-
module2.exports.stderr.isSupported = supportsHyperlinks.stderr;
|
|
217
|
+
var ESC = "\x1B[";
|
|
218
|
+
var OSC = "\x1B]";
|
|
219
|
+
var BEL = "\x07";
|
|
220
|
+
var SEP = ";";
|
|
221
|
+
var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
|
|
222
|
+
var ansiEscapes = {};
|
|
223
|
+
ansiEscapes.cursorTo = (x, y) => {
|
|
224
|
+
if (typeof x !== "number") {
|
|
225
|
+
throw new TypeError("The `x` argument is required");
|
|
360
226
|
}
|
|
361
|
-
|
|
362
|
-
|
|
227
|
+
if (typeof y !== "number") {
|
|
228
|
+
return ESC + (x + 1) + "G";
|
|
229
|
+
}
|
|
230
|
+
return ESC + (y + 1) + ";" + (x + 1) + "H";
|
|
231
|
+
};
|
|
232
|
+
ansiEscapes.cursorMove = (x, y) => {
|
|
233
|
+
if (typeof x !== "number") {
|
|
234
|
+
throw new TypeError("The `x` argument is required");
|
|
235
|
+
}
|
|
236
|
+
let returnValue = "";
|
|
237
|
+
if (x < 0) {
|
|
238
|
+
returnValue += ESC + -x + "D";
|
|
239
|
+
} else if (x > 0) {
|
|
240
|
+
returnValue += ESC + x + "C";
|
|
241
|
+
}
|
|
242
|
+
if (y < 0) {
|
|
243
|
+
returnValue += ESC + -y + "A";
|
|
244
|
+
} else if (y > 0) {
|
|
245
|
+
returnValue += ESC + y + "B";
|
|
246
|
+
}
|
|
247
|
+
return returnValue;
|
|
248
|
+
};
|
|
249
|
+
ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
|
|
250
|
+
ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
|
|
251
|
+
ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
|
|
252
|
+
ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
|
|
253
|
+
ansiEscapes.cursorLeft = ESC + "G";
|
|
254
|
+
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
255
|
+
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
256
|
+
ansiEscapes.cursorGetPosition = ESC + "6n";
|
|
257
|
+
ansiEscapes.cursorNextLine = ESC + "E";
|
|
258
|
+
ansiEscapes.cursorPrevLine = ESC + "F";
|
|
259
|
+
ansiEscapes.cursorHide = ESC + "?25l";
|
|
260
|
+
ansiEscapes.cursorShow = ESC + "?25h";
|
|
261
|
+
ansiEscapes.eraseLines = (count) => {
|
|
262
|
+
let clear = "";
|
|
263
|
+
for (let i = 0; i < count; i++) {
|
|
264
|
+
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
|
|
265
|
+
}
|
|
266
|
+
if (count) {
|
|
267
|
+
clear += ansiEscapes.cursorLeft;
|
|
268
|
+
}
|
|
269
|
+
return clear;
|
|
270
|
+
};
|
|
271
|
+
ansiEscapes.eraseEndLine = ESC + "K";
|
|
272
|
+
ansiEscapes.eraseStartLine = ESC + "1K";
|
|
273
|
+
ansiEscapes.eraseLine = ESC + "2K";
|
|
274
|
+
ansiEscapes.eraseDown = ESC + "J";
|
|
275
|
+
ansiEscapes.eraseUp = ESC + "1J";
|
|
276
|
+
ansiEscapes.eraseScreen = ESC + "2J";
|
|
277
|
+
ansiEscapes.scrollUp = ESC + "S";
|
|
278
|
+
ansiEscapes.scrollDown = ESC + "T";
|
|
279
|
+
ansiEscapes.clearScreen = "\x1Bc";
|
|
280
|
+
ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : (
|
|
281
|
+
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
282
|
+
// 2. Erases the whole screen including scrollback buffer
|
|
283
|
+
// 3. Moves cursor to the top-left position
|
|
284
|
+
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
285
|
+
`${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`
|
|
286
|
+
);
|
|
287
|
+
ansiEscapes.beep = BEL;
|
|
288
|
+
ansiEscapes.link = (text, url) => {
|
|
289
|
+
return [
|
|
290
|
+
OSC,
|
|
291
|
+
"8",
|
|
292
|
+
SEP,
|
|
293
|
+
SEP,
|
|
294
|
+
url,
|
|
295
|
+
BEL,
|
|
296
|
+
text,
|
|
297
|
+
OSC,
|
|
298
|
+
"8",
|
|
299
|
+
SEP,
|
|
300
|
+
SEP,
|
|
301
|
+
BEL
|
|
302
|
+
].join("");
|
|
303
|
+
};
|
|
304
|
+
ansiEscapes.image = (buffer, options = {}) => {
|
|
305
|
+
let returnValue = `${OSC}1337;File=inline=1`;
|
|
306
|
+
if (options.width) {
|
|
307
|
+
returnValue += `;width=${options.width}`;
|
|
308
|
+
}
|
|
309
|
+
if (options.height) {
|
|
310
|
+
returnValue += `;height=${options.height}`;
|
|
311
|
+
}
|
|
312
|
+
if (options.preserveAspectRatio === false) {
|
|
313
|
+
returnValue += ";preserveAspectRatio=0";
|
|
314
|
+
}
|
|
315
|
+
return returnValue + ":" + buffer.toString("base64") + BEL;
|
|
316
|
+
};
|
|
317
|
+
ansiEscapes.iTerm = {
|
|
318
|
+
setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
|
|
319
|
+
annotation: (message, options = {}) => {
|
|
320
|
+
let returnValue = `${OSC}1337;`;
|
|
321
|
+
const hasX = typeof options.x !== "undefined";
|
|
322
|
+
const hasY = typeof options.y !== "undefined";
|
|
323
|
+
if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
|
|
324
|
+
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
325
|
+
}
|
|
326
|
+
message = message.replace(/\|/g, "");
|
|
327
|
+
returnValue += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
|
|
328
|
+
if (options.length > 0) {
|
|
329
|
+
returnValue += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
|
|
330
|
+
} else {
|
|
331
|
+
returnValue += message;
|
|
332
|
+
}
|
|
333
|
+
return returnValue + BEL;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
var ansi_escapes_default = ansiEscapes;
|
|
337
|
+
var import_supports_hyperlinks = (0, import_chunk_2ESYSVXG.__toESM)(require_supports_hyperlinks(), 1);
|
|
338
|
+
function terminalLink(text, url, { target = "stdout", ...options } = {}) {
|
|
339
|
+
if (!import_supports_hyperlinks.default[target]) {
|
|
340
|
+
if (options.fallback === false) {
|
|
341
|
+
return text;
|
|
342
|
+
}
|
|
343
|
+
return typeof options.fallback === "function" ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
|
|
344
|
+
}
|
|
345
|
+
return ansi_escapes_default.link(text, url);
|
|
346
|
+
}
|
|
347
|
+
terminalLink.isSupported = import_supports_hyperlinks.default.stdout;
|
|
348
|
+
terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
|
|
349
|
+
terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
|
|
363
350
|
function link(url) {
|
|
364
|
-
return (
|
|
351
|
+
return terminalLink(url, url, {
|
|
365
352
|
fallback: import_chunk_YVXCXD3A.underline
|
|
366
353
|
});
|
|
367
354
|
}
|
|
@@ -16,37 +16,37 @@ 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
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_IPLRRT6O_exports = {};
|
|
20
|
+
__export(chunk_IPLRRT6O_exports, {
|
|
21
21
|
binaryTargetRegex: () => binaryTargetRegex,
|
|
22
22
|
binaryTargetRegex_exports: () => binaryTargetRegex_exports,
|
|
23
23
|
init_binaryTargetRegex: () => init_binaryTargetRegex
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(chunk_IPLRRT6O_exports);
|
|
26
26
|
var import_chunk_7MLUNQIZ = require("./chunk-7MLUNQIZ.js");
|
|
27
27
|
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
28
|
-
|
|
29
|
-
"
|
|
28
|
+
function escapeStringRegexp(string) {
|
|
29
|
+
if (typeof string !== "string") {
|
|
30
|
+
throw new TypeError("Expected a string");
|
|
31
|
+
}
|
|
32
|
+
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
33
|
+
}
|
|
34
|
+
var init_escape_string_regexp = (0, import_chunk_2ESYSVXG.__esm)({
|
|
35
|
+
"../../node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js"() {
|
|
30
36
|
"use strict";
|
|
31
|
-
module2.exports = (string) => {
|
|
32
|
-
if (typeof string !== "string") {
|
|
33
|
-
throw new TypeError("Expected a string");
|
|
34
|
-
}
|
|
35
|
-
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
36
|
-
};
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
var binaryTargetRegex_exports = {};
|
|
40
40
|
(0, import_chunk_2ESYSVXG.__export)(binaryTargetRegex_exports, {
|
|
41
41
|
binaryTargetRegex: () => binaryTargetRegex
|
|
42
42
|
});
|
|
43
|
-
var
|
|
43
|
+
var binaryTargetRegex;
|
|
44
44
|
var init_binaryTargetRegex = (0, import_chunk_2ESYSVXG.__esm)({
|
|
45
45
|
"src/test-utils/binaryTargetRegex.ts"() {
|
|
46
|
-
|
|
46
|
+
init_escape_string_regexp();
|
|
47
47
|
(0, import_chunk_7MLUNQIZ.init_binaryTargets)();
|
|
48
48
|
binaryTargetRegex = new RegExp(
|
|
49
|
-
"(" + [...import_chunk_7MLUNQIZ.binaryTargets].sort((a, b) => b.length - a.length).map((p) => (
|
|
49
|
+
"(" + [...import_chunk_7MLUNQIZ.binaryTargets].sort((a, b) => b.length - a.length).map((p) => escapeStringRegexp(p)).join("|") + ")",
|
|
50
50
|
"g"
|
|
51
51
|
);
|
|
52
52
|
}
|
package/dist/index.js
CHANGED
|
@@ -24,18 +24,18 @@ __export(index_exports, {
|
|
|
24
24
|
getNodeAPIName: () => import_chunk_2U36ISZO.getNodeAPIName,
|
|
25
25
|
getPlatformInfo: () => import_chunk_7PMGXL6S.getPlatformInfo,
|
|
26
26
|
getos: () => import_chunk_7PMGXL6S.getos,
|
|
27
|
-
jestConsoleContext: () =>
|
|
28
|
-
jestContext: () =>
|
|
29
|
-
jestProcessContext: () =>
|
|
30
|
-
link: () =>
|
|
27
|
+
jestConsoleContext: () => import_chunk_4CHMSIXA.jestConsoleContext,
|
|
28
|
+
jestContext: () => import_chunk_4CHMSIXA.jestContext,
|
|
29
|
+
jestProcessContext: () => import_chunk_4CHMSIXA.jestProcessContext,
|
|
30
|
+
link: () => import_chunk_DS3PYS3D.link
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(index_exports);
|
|
33
33
|
var import_chunk_6HZWON4S = require("./chunk-6HZWON4S.js");
|
|
34
|
-
var
|
|
34
|
+
var import_chunk_4CHMSIXA = require("./chunk-4CHMSIXA.js");
|
|
35
35
|
var import_chunk_O5EOXX3N = require("./chunk-O5EOXX3N.js");
|
|
36
36
|
var import_chunk_2U36ISZO = require("./chunk-2U36ISZO.js");
|
|
37
37
|
var import_chunk_7PMGXL6S = require("./chunk-7PMGXL6S.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_DS3PYS3D = require("./chunk-DS3PYS3D.js");
|
|
39
39
|
var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js");
|
|
40
40
|
var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
|
|
41
41
|
var import_chunk_7MLUNQIZ = require("./chunk-7MLUNQIZ.js");
|
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: () =>
|
|
21
|
+
link: () => import_chunk_DS3PYS3D.link
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(link_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_DS3PYS3D = require("./chunk-DS3PYS3D.js");
|
|
25
25
|
var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
|
|
26
26
|
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 binaryTargetRegex_exports = {};
|
|
20
20
|
__export(binaryTargetRegex_exports, {
|
|
21
|
-
binaryTargetRegex: () =>
|
|
21
|
+
binaryTargetRegex: () => import_chunk_IPLRRT6O.binaryTargetRegex
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(binaryTargetRegex_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_IPLRRT6O = require("../chunk-IPLRRT6O.js");
|
|
25
25
|
var import_chunk_7MLUNQIZ = require("../chunk-7MLUNQIZ.js");
|
|
26
26
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
27
|
-
(0,
|
|
27
|
+
(0, import_chunk_IPLRRT6O.init_binaryTargetRegex)();
|
package/dist/test-utils/index.js
CHANGED
|
@@ -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: () =>
|
|
22
|
-
jestContext: () =>
|
|
23
|
-
jestProcessContext: () =>
|
|
21
|
+
jestConsoleContext: () => import_chunk_4CHMSIXA.jestConsoleContext,
|
|
22
|
+
jestContext: () => import_chunk_4CHMSIXA.jestContext,
|
|
23
|
+
jestProcessContext: () => import_chunk_4CHMSIXA.jestProcessContext
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(test_utils_exports);
|
|
26
26
|
var import_chunk_6HZWON4S = require("../chunk-6HZWON4S.js");
|
|
27
|
-
var
|
|
27
|
+
var import_chunk_4CHMSIXA = require("../chunk-4CHMSIXA.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: () =>
|
|
22
|
-
jestContext: () =>
|
|
23
|
-
jestProcessContext: () =>
|
|
21
|
+
jestConsoleContext: () => import_chunk_4CHMSIXA.jestConsoleContext,
|
|
22
|
+
jestContext: () => import_chunk_4CHMSIXA.jestContext,
|
|
23
|
+
jestProcessContext: () => import_chunk_4CHMSIXA.jestProcessContext
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(jestContext_exports);
|
|
26
|
-
var
|
|
26
|
+
var import_chunk_4CHMSIXA = require("../chunk-4CHMSIXA.js");
|
|
27
27
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
@@ -21,7 +21,7 @@ __export(jestSnapshotSerializer_exports, {
|
|
|
21
21
|
default: () => jestSnapshotSerializer_default
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(jestSnapshotSerializer_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_chunk_IPLRRT6O = require("../chunk-IPLRRT6O.js");
|
|
25
25
|
var import_chunk_7MLUNQIZ = require("../chunk-7MLUNQIZ.js");
|
|
26
26
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
27
27
|
var require_ansi_regex = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
@@ -47,7 +47,7 @@ var require_jestSnapshotSerializer = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
47
47
|
"src/test-utils/jestSnapshotSerializer.js"(exports, module2) {
|
|
48
48
|
var path = (0, import_chunk_2ESYSVXG.__require)("path");
|
|
49
49
|
var stripAnsi = require_strip_ansi();
|
|
50
|
-
var { binaryTargetRegex } = ((0,
|
|
50
|
+
var { binaryTargetRegex } = ((0, import_chunk_IPLRRT6O.init_binaryTargetRegex)(), (0, import_chunk_2ESYSVXG.__toCommonJS)(import_chunk_IPLRRT6O.binaryTargetRegex_exports));
|
|
51
51
|
var pipe = (...fns) => (x) => fns.reduce((v, f) => f(v), x);
|
|
52
52
|
function normalizePrismaPaths(str) {
|
|
53
53
|
return str.replace(/prisma\\([\w-]+)\.prisma/g, "prisma/$1.prisma").replace(/prisma\\seed\.ts/g, "prisma/seed.ts").replace(/custom-folder\\seed\.js/g, "custom-folder/seed.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/get-platform",
|
|
3
|
-
"version": "6.6.0-dev.
|
|
3
|
+
"version": "6.6.0-dev.40",
|
|
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",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"jest": "29.7.0",
|
|
24
24
|
"jest-junit": "16.0.0",
|
|
25
25
|
"typescript": "5.4.5",
|
|
26
|
-
"escape-string-regexp": "
|
|
26
|
+
"escape-string-regexp": "5.0.0",
|
|
27
27
|
"execa": "5.1.1",
|
|
28
28
|
"fs-jetpack": "5.1.0",
|
|
29
29
|
"kleur": "4.1.5",
|
|
30
30
|
"strip-ansi": "6.0.1",
|
|
31
31
|
"tempy": "1.0.1",
|
|
32
|
-
"terminal-link": "
|
|
32
|
+
"terminal-link": "3.0.0",
|
|
33
33
|
"ts-pattern": "5.6.2"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@prisma/debug": "6.6.0-dev.
|
|
36
|
+
"@prisma/debug": "6.6.0-dev.40"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"README.md",
|