@prisma/config 6.4.0-dev.48 → 6.4.0-dev.50

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.
@@ -1,17 +1,12 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __typeError = (msg) => {
9
7
  throw TypeError(msg);
10
8
  };
11
9
  var __defNormalProp = (obj, key, value3) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value3 }) : obj[key] = value3;
12
- var __commonJS = (cb, mod) => function __require() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
- };
15
10
  var __export = (target, all4) => {
16
11
  for (var name in all4)
17
12
  __defProp(target, name, { get: all4[name], enumerable: true });
@@ -24,14 +19,6 @@ var __copyProps = (to, from, except, desc) => {
24
19
  }
25
20
  return to;
26
21
  };
27
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
- // If the importer is in node compatibility mode or this is not an ESM
29
- // file that has been converted to a CommonJS file using a Babel-
30
- // compatible transform (i.e. "__esModule" has not been set), then set
31
- // "default" to the CommonJS "module.exports" for node compatibility.
32
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
- mod
34
- ));
35
22
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
23
  var __publicField = (obj, key, value3) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value3);
37
24
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
@@ -39,236 +26,6 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
39
26
  var __privateAdd = (obj, member, value3) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value3);
40
27
  var __privateSet = (obj, member, value3, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value3) : member.set(obj, value3), value3);
41
28
 
42
- // ../debug/dist/index.js
43
- var require_dist = __commonJS({
44
- "../debug/dist/index.js"(exports2, module2) {
45
- "use strict";
46
- var __defProp2 = Object.defineProperty;
47
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
48
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
49
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
50
- var __export2 = (target, all4) => {
51
- for (var name in all4)
52
- __defProp2(target, name, { get: all4[name], enumerable: true });
53
- };
54
- var __copyProps2 = (to, from, except, desc) => {
55
- if (from && typeof from === "object" || typeof from === "function") {
56
- for (let key of __getOwnPropNames2(from))
57
- if (!__hasOwnProp2.call(to, key) && key !== except)
58
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
59
- }
60
- return to;
61
- };
62
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
63
- var index_exports = {};
64
- __export2(index_exports, {
65
- Debug: () => Debug3,
66
- clearLogs: () => clearLogs,
67
- default: () => index_default,
68
- getLogs: () => getLogs
69
- });
70
- module2.exports = __toCommonJS2(index_exports);
71
- var colors_exports = {};
72
- __export2(colors_exports, {
73
- $: () => $,
74
- bgBlack: () => bgBlack,
75
- bgBlue: () => bgBlue,
76
- bgCyan: () => bgCyan,
77
- bgGreen: () => bgGreen,
78
- bgMagenta: () => bgMagenta,
79
- bgRed: () => bgRed,
80
- bgWhite: () => bgWhite,
81
- bgYellow: () => bgYellow,
82
- black: () => black,
83
- blue: () => blue,
84
- bold: () => bold,
85
- cyan: () => cyan,
86
- dim: () => dim,
87
- gray: () => gray,
88
- green: () => green,
89
- grey: () => grey,
90
- hidden: () => hidden,
91
- inverse: () => inverse2,
92
- italic: () => italic,
93
- magenta: () => magenta,
94
- red: () => red,
95
- reset: () => reset,
96
- strikethrough: () => strikethrough,
97
- underline: () => underline,
98
- white: () => white,
99
- yellow: () => yellow
100
- });
101
- var FORCE_COLOR;
102
- var NODE_DISABLE_COLORS;
103
- var NO_COLOR;
104
- var TERM;
105
- var isTTY = true;
106
- if (typeof process !== "undefined") {
107
- ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
108
- isTTY = process.stdout && process.stdout.isTTY;
109
- }
110
- var $ = {
111
- enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
112
- };
113
- function init(x, y) {
114
- let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
115
- let open = `\x1B[${x}m`, close2 = `\x1B[${y}m`;
116
- return function(txt) {
117
- if (!$.enabled || txt == null) return txt;
118
- return open + (!!~("" + txt).indexOf(close2) ? txt.replace(rgx, close2 + open) : txt) + close2;
119
- };
120
- }
121
- var reset = init(0, 0);
122
- var bold = init(1, 22);
123
- var dim = init(2, 22);
124
- var italic = init(3, 23);
125
- var underline = init(4, 24);
126
- var inverse2 = init(7, 27);
127
- var hidden = init(8, 28);
128
- var strikethrough = init(9, 29);
129
- var black = init(30, 39);
130
- var red = init(31, 39);
131
- var green = init(32, 39);
132
- var yellow = init(33, 39);
133
- var blue = init(34, 39);
134
- var magenta = init(35, 39);
135
- var cyan = init(36, 39);
136
- var white = init(37, 39);
137
- var gray = init(90, 39);
138
- var grey = init(90, 39);
139
- var bgBlack = init(40, 49);
140
- var bgRed = init(41, 49);
141
- var bgGreen = init(42, 49);
142
- var bgYellow = init(43, 49);
143
- var bgBlue = init(44, 49);
144
- var bgMagenta = init(45, 49);
145
- var bgCyan = init(46, 49);
146
- var bgWhite = init(47, 49);
147
- var MAX_ARGS_HISTORY = 100;
148
- var COLORS = ["green", "yellow", "blue", "magenta", "cyan", "red"];
149
- var argsHistory = [];
150
- var lastTimestamp = Date.now();
151
- var lastColor = 0;
152
- var processEnv = typeof process !== "undefined" ? process.env : {};
153
- globalThis.DEBUG ??= processEnv.DEBUG ?? "";
154
- globalThis.DEBUG_COLORS ??= processEnv.DEBUG_COLORS ? processEnv.DEBUG_COLORS === "true" : true;
155
- var topProps = {
156
- enable(namespace) {
157
- if (typeof namespace === "string") {
158
- globalThis.DEBUG = namespace;
159
- }
160
- },
161
- disable() {
162
- const prev = globalThis.DEBUG;
163
- globalThis.DEBUG = "";
164
- return prev;
165
- },
166
- // this is the core logic to check if logging should happen or not
167
- enabled(namespace) {
168
- const listenedNamespaces = globalThis.DEBUG.split(",").map((s) => {
169
- return s.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
170
- });
171
- const isListened = listenedNamespaces.some((listenedNamespace) => {
172
- if (listenedNamespace === "" || listenedNamespace[0] === "-") return false;
173
- return namespace.match(RegExp(listenedNamespace.split("*").join(".*") + "$"));
174
- });
175
- const isExcluded = listenedNamespaces.some((listenedNamespace) => {
176
- if (listenedNamespace === "" || listenedNamespace[0] !== "-") return false;
177
- return namespace.match(RegExp(listenedNamespace.slice(1).split("*").join(".*") + "$"));
178
- });
179
- return isListened && !isExcluded;
180
- },
181
- log: (...args2) => {
182
- const [namespace, format7, ...rest] = args2;
183
- const logWithFormatting = console.warn ?? console.log;
184
- logWithFormatting(`${namespace} ${format7}`, ...rest);
185
- },
186
- formatters: {}
187
- // not implemented
188
- };
189
- function debugCreate(namespace) {
190
- const instanceProps = {
191
- color: COLORS[lastColor++ % COLORS.length],
192
- enabled: topProps.enabled(namespace),
193
- namespace,
194
- log: topProps.log,
195
- extend: () => {
196
- }
197
- // not implemented
198
- };
199
- const debugCall = (...args2) => {
200
- const { enabled: enabled2, namespace: namespace2, color, log } = instanceProps;
201
- if (args2.length !== 0) {
202
- argsHistory.push([namespace2, ...args2]);
203
- }
204
- if (argsHistory.length > MAX_ARGS_HISTORY) {
205
- argsHistory.shift();
206
- }
207
- if (topProps.enabled(namespace2) || enabled2) {
208
- const stringArgs = args2.map((arg) => {
209
- if (typeof arg === "string") {
210
- return arg;
211
- }
212
- return safeStringify(arg);
213
- });
214
- const ms = `+${Date.now() - lastTimestamp}ms`;
215
- lastTimestamp = Date.now();
216
- if (globalThis.DEBUG_COLORS) {
217
- log(colors_exports[color](bold(namespace2)), ...stringArgs, colors_exports[color](ms));
218
- } else {
219
- log(namespace2, ...stringArgs, ms);
220
- }
221
- }
222
- };
223
- return new Proxy(debugCall, {
224
- get: (_, prop) => instanceProps[prop],
225
- set: (_, prop, value3) => instanceProps[prop] = value3
226
- });
227
- }
228
- var Debug3 = new Proxy(debugCreate, {
229
- get: (_, prop) => topProps[prop],
230
- set: (_, prop, value3) => topProps[prop] = value3
231
- });
232
- function safeStringify(value3, indent = 2) {
233
- const cache = /* @__PURE__ */ new Set();
234
- return JSON.stringify(
235
- value3,
236
- (key, value22) => {
237
- if (typeof value22 === "object" && value22 !== null) {
238
- if (cache.has(value22)) {
239
- return `[Circular *]`;
240
- }
241
- cache.add(value22);
242
- } else if (typeof value22 === "bigint") {
243
- return value22.toString();
244
- }
245
- return value22;
246
- },
247
- indent
248
- );
249
- }
250
- function getLogs(numChars = 7500) {
251
- const logs = argsHistory.map(([namespace, ...args2]) => {
252
- return `${namespace} ${args2.map((arg) => {
253
- if (typeof arg === "string") {
254
- return arg;
255
- } else {
256
- return JSON.stringify(arg);
257
- }
258
- }).join(" ")}`;
259
- }).join("\n");
260
- if (logs.length < numChars) {
261
- return logs;
262
- }
263
- return logs.slice(-numChars);
264
- }
265
- function clearLogs() {
266
- argsHistory.length = 0;
267
- }
268
- var index_default = Debug3;
269
- }
270
- });
271
-
272
29
  // src/defineConfig.ts
273
30
  var defineConfig_exports = {};
274
31
  __export(defineConfig_exports, {
@@ -276,8 +33,191 @@ __export(defineConfig_exports, {
276
33
  });
277
34
  module.exports = __toCommonJS(defineConfig_exports);
278
35
 
279
- // ../driver-adapter-utils/dist/index.mjs
280
- var import_debug = __toESM(require_dist(), 1);
36
+ // ../debug/dist/index.mjs
37
+ var __defProp2 = Object.defineProperty;
38
+ var __export2 = (target, all4) => {
39
+ for (var name in all4)
40
+ __defProp2(target, name, { get: all4[name], enumerable: true });
41
+ };
42
+ var colors_exports = {};
43
+ __export2(colors_exports, {
44
+ $: () => $,
45
+ bgBlack: () => bgBlack,
46
+ bgBlue: () => bgBlue,
47
+ bgCyan: () => bgCyan,
48
+ bgGreen: () => bgGreen,
49
+ bgMagenta: () => bgMagenta,
50
+ bgRed: () => bgRed,
51
+ bgWhite: () => bgWhite,
52
+ bgYellow: () => bgYellow,
53
+ black: () => black,
54
+ blue: () => blue,
55
+ bold: () => bold,
56
+ cyan: () => cyan,
57
+ dim: () => dim,
58
+ gray: () => gray,
59
+ green: () => green,
60
+ grey: () => grey,
61
+ hidden: () => hidden,
62
+ inverse: () => inverse,
63
+ italic: () => italic,
64
+ magenta: () => magenta,
65
+ red: () => red,
66
+ reset: () => reset,
67
+ strikethrough: () => strikethrough,
68
+ underline: () => underline,
69
+ white: () => white,
70
+ yellow: () => yellow
71
+ });
72
+ var FORCE_COLOR;
73
+ var NODE_DISABLE_COLORS;
74
+ var NO_COLOR;
75
+ var TERM;
76
+ var isTTY = true;
77
+ if (typeof process !== "undefined") {
78
+ ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
79
+ isTTY = process.stdout && process.stdout.isTTY;
80
+ }
81
+ var $ = {
82
+ enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
83
+ };
84
+ function init(x, y) {
85
+ let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
86
+ let open = `\x1B[${x}m`, close2 = `\x1B[${y}m`;
87
+ return function(txt) {
88
+ if (!$.enabled || txt == null) return txt;
89
+ return open + (!!~("" + txt).indexOf(close2) ? txt.replace(rgx, close2 + open) : txt) + close2;
90
+ };
91
+ }
92
+ var reset = init(0, 0);
93
+ var bold = init(1, 22);
94
+ var dim = init(2, 22);
95
+ var italic = init(3, 23);
96
+ var underline = init(4, 24);
97
+ var inverse = init(7, 27);
98
+ var hidden = init(8, 28);
99
+ var strikethrough = init(9, 29);
100
+ var black = init(30, 39);
101
+ var red = init(31, 39);
102
+ var green = init(32, 39);
103
+ var yellow = init(33, 39);
104
+ var blue = init(34, 39);
105
+ var magenta = init(35, 39);
106
+ var cyan = init(36, 39);
107
+ var white = init(37, 39);
108
+ var gray = init(90, 39);
109
+ var grey = init(90, 39);
110
+ var bgBlack = init(40, 49);
111
+ var bgRed = init(41, 49);
112
+ var bgGreen = init(42, 49);
113
+ var bgYellow = init(43, 49);
114
+ var bgBlue = init(44, 49);
115
+ var bgMagenta = init(45, 49);
116
+ var bgCyan = init(46, 49);
117
+ var bgWhite = init(47, 49);
118
+ var MAX_ARGS_HISTORY = 100;
119
+ var COLORS = ["green", "yellow", "blue", "magenta", "cyan", "red"];
120
+ var argsHistory = [];
121
+ var lastTimestamp = Date.now();
122
+ var lastColor = 0;
123
+ var processEnv = typeof process !== "undefined" ? process.env : {};
124
+ globalThis.DEBUG ??= processEnv.DEBUG ?? "";
125
+ globalThis.DEBUG_COLORS ??= processEnv.DEBUG_COLORS ? processEnv.DEBUG_COLORS === "true" : true;
126
+ var topProps = {
127
+ enable(namespace) {
128
+ if (typeof namespace === "string") {
129
+ globalThis.DEBUG = namespace;
130
+ }
131
+ },
132
+ disable() {
133
+ const prev = globalThis.DEBUG;
134
+ globalThis.DEBUG = "";
135
+ return prev;
136
+ },
137
+ // this is the core logic to check if logging should happen or not
138
+ enabled(namespace) {
139
+ const listenedNamespaces = globalThis.DEBUG.split(",").map((s) => {
140
+ return s.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
141
+ });
142
+ const isListened = listenedNamespaces.some((listenedNamespace) => {
143
+ if (listenedNamespace === "" || listenedNamespace[0] === "-") return false;
144
+ return namespace.match(RegExp(listenedNamespace.split("*").join(".*") + "$"));
145
+ });
146
+ const isExcluded = listenedNamespaces.some((listenedNamespace) => {
147
+ if (listenedNamespace === "" || listenedNamespace[0] !== "-") return false;
148
+ return namespace.match(RegExp(listenedNamespace.slice(1).split("*").join(".*") + "$"));
149
+ });
150
+ return isListened && !isExcluded;
151
+ },
152
+ log: (...args2) => {
153
+ const [namespace, format7, ...rest] = args2;
154
+ const logWithFormatting = console.warn ?? console.log;
155
+ logWithFormatting(`${namespace} ${format7}`, ...rest);
156
+ },
157
+ formatters: {}
158
+ // not implemented
159
+ };
160
+ function debugCreate(namespace) {
161
+ const instanceProps = {
162
+ color: COLORS[lastColor++ % COLORS.length],
163
+ enabled: topProps.enabled(namespace),
164
+ namespace,
165
+ log: topProps.log,
166
+ extend: () => {
167
+ }
168
+ // not implemented
169
+ };
170
+ const debugCall = (...args2) => {
171
+ const { enabled: enabled2, namespace: namespace2, color, log } = instanceProps;
172
+ if (args2.length !== 0) {
173
+ argsHistory.push([namespace2, ...args2]);
174
+ }
175
+ if (argsHistory.length > MAX_ARGS_HISTORY) {
176
+ argsHistory.shift();
177
+ }
178
+ if (topProps.enabled(namespace2) || enabled2) {
179
+ const stringArgs = args2.map((arg) => {
180
+ if (typeof arg === "string") {
181
+ return arg;
182
+ }
183
+ return safeStringify(arg);
184
+ });
185
+ const ms = `+${Date.now() - lastTimestamp}ms`;
186
+ lastTimestamp = Date.now();
187
+ if (globalThis.DEBUG_COLORS) {
188
+ log(colors_exports[color](bold(namespace2)), ...stringArgs, colors_exports[color](ms));
189
+ } else {
190
+ log(namespace2, ...stringArgs, ms);
191
+ }
192
+ }
193
+ };
194
+ return new Proxy(debugCall, {
195
+ get: (_, prop) => instanceProps[prop],
196
+ set: (_, prop, value3) => instanceProps[prop] = value3
197
+ });
198
+ }
199
+ var Debug = new Proxy(debugCreate, {
200
+ get: (_, prop) => topProps[prop],
201
+ set: (_, prop, value3) => topProps[prop] = value3
202
+ });
203
+ function safeStringify(value3, indent = 2) {
204
+ const cache = /* @__PURE__ */ new Set();
205
+ return JSON.stringify(
206
+ value3,
207
+ (key, value22) => {
208
+ if (typeof value22 === "object" && value22 !== null) {
209
+ if (cache.has(value22)) {
210
+ return `[Circular *]`;
211
+ }
212
+ cache.add(value22);
213
+ } else if (typeof value22 === "bigint") {
214
+ return value22.toString();
215
+ }
216
+ return value22;
217
+ },
218
+ indent
219
+ );
220
+ }
281
221
 
282
222
  // ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/Function.js
283
223
  var isFunction = (input) => typeof input === "function";
@@ -22459,7 +22399,7 @@ function defaultConfig() {
22459
22399
  }
22460
22400
 
22461
22401
  // src/defineConfig.ts
22462
- var debug = (0, import_debug.Debug)("prisma:config:defineConfig");
22402
+ var debug = Debug("prisma:config:defineConfig");
22463
22403
  function defineConfig(configInput) {
22464
22404
  const config2 = defaultConfig();
22465
22405
  defineSchemaConfig(config2, configInput);
package/dist/index.js CHANGED
@@ -9,9 +9,6 @@ var __typeError = (msg) => {
9
9
  throw TypeError(msg);
10
10
  };
11
11
  var __defNormalProp = (obj, key, value3) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value3 }) : obj[key] = value3;
12
- var __commonJS = (cb, mod) => function __require() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
- };
15
12
  var __export = (target, all5) => {
16
13
  for (var name in all5)
17
14
  __defProp(target, name, { get: all5[name], enumerable: true });
@@ -39,236 +36,6 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
39
36
  var __privateAdd = (obj, member, value3) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value3);
40
37
  var __privateSet = (obj, member, value3, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value3) : member.set(obj, value3), value3);
41
38
 
42
- // ../debug/dist/index.js
43
- var require_dist = __commonJS({
44
- "../debug/dist/index.js"(exports2, module2) {
45
- "use strict";
46
- var __defProp2 = Object.defineProperty;
47
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
48
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
49
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
50
- var __export2 = (target, all5) => {
51
- for (var name in all5)
52
- __defProp2(target, name, { get: all5[name], enumerable: true });
53
- };
54
- var __copyProps2 = (to, from, except, desc) => {
55
- if (from && typeof from === "object" || typeof from === "function") {
56
- for (let key of __getOwnPropNames2(from))
57
- if (!__hasOwnProp2.call(to, key) && key !== except)
58
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
59
- }
60
- return to;
61
- };
62
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
63
- var index_exports2 = {};
64
- __export2(index_exports2, {
65
- Debug: () => Debug3,
66
- clearLogs: () => clearLogs,
67
- default: () => index_default,
68
- getLogs: () => getLogs
69
- });
70
- module2.exports = __toCommonJS2(index_exports2);
71
- var colors_exports = {};
72
- __export2(colors_exports, {
73
- $: () => $,
74
- bgBlack: () => bgBlack,
75
- bgBlue: () => bgBlue,
76
- bgCyan: () => bgCyan,
77
- bgGreen: () => bgGreen,
78
- bgMagenta: () => bgMagenta,
79
- bgRed: () => bgRed,
80
- bgWhite: () => bgWhite,
81
- bgYellow: () => bgYellow,
82
- black: () => black,
83
- blue: () => blue,
84
- bold: () => bold,
85
- cyan: () => cyan,
86
- dim: () => dim,
87
- gray: () => gray,
88
- green: () => green,
89
- grey: () => grey,
90
- hidden: () => hidden,
91
- inverse: () => inverse2,
92
- italic: () => italic,
93
- magenta: () => magenta,
94
- red: () => red,
95
- reset: () => reset,
96
- strikethrough: () => strikethrough,
97
- underline: () => underline,
98
- white: () => white,
99
- yellow: () => yellow
100
- });
101
- var FORCE_COLOR;
102
- var NODE_DISABLE_COLORS;
103
- var NO_COLOR;
104
- var TERM;
105
- var isTTY = true;
106
- if (typeof process !== "undefined") {
107
- ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
108
- isTTY = process.stdout && process.stdout.isTTY;
109
- }
110
- var $ = {
111
- enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
112
- };
113
- function init(x, y) {
114
- let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
115
- let open = `\x1B[${x}m`, close2 = `\x1B[${y}m`;
116
- return function(txt) {
117
- if (!$.enabled || txt == null) return txt;
118
- return open + (!!~("" + txt).indexOf(close2) ? txt.replace(rgx, close2 + open) : txt) + close2;
119
- };
120
- }
121
- var reset = init(0, 0);
122
- var bold = init(1, 22);
123
- var dim = init(2, 22);
124
- var italic = init(3, 23);
125
- var underline = init(4, 24);
126
- var inverse2 = init(7, 27);
127
- var hidden = init(8, 28);
128
- var strikethrough = init(9, 29);
129
- var black = init(30, 39);
130
- var red = init(31, 39);
131
- var green = init(32, 39);
132
- var yellow = init(33, 39);
133
- var blue = init(34, 39);
134
- var magenta = init(35, 39);
135
- var cyan = init(36, 39);
136
- var white = init(37, 39);
137
- var gray = init(90, 39);
138
- var grey = init(90, 39);
139
- var bgBlack = init(40, 49);
140
- var bgRed = init(41, 49);
141
- var bgGreen = init(42, 49);
142
- var bgYellow = init(43, 49);
143
- var bgBlue = init(44, 49);
144
- var bgMagenta = init(45, 49);
145
- var bgCyan = init(46, 49);
146
- var bgWhite = init(47, 49);
147
- var MAX_ARGS_HISTORY = 100;
148
- var COLORS = ["green", "yellow", "blue", "magenta", "cyan", "red"];
149
- var argsHistory = [];
150
- var lastTimestamp = Date.now();
151
- var lastColor = 0;
152
- var processEnv = typeof process !== "undefined" ? process.env : {};
153
- globalThis.DEBUG ??= processEnv.DEBUG ?? "";
154
- globalThis.DEBUG_COLORS ??= processEnv.DEBUG_COLORS ? processEnv.DEBUG_COLORS === "true" : true;
155
- var topProps = {
156
- enable(namespace) {
157
- if (typeof namespace === "string") {
158
- globalThis.DEBUG = namespace;
159
- }
160
- },
161
- disable() {
162
- const prev = globalThis.DEBUG;
163
- globalThis.DEBUG = "";
164
- return prev;
165
- },
166
- // this is the core logic to check if logging should happen or not
167
- enabled(namespace) {
168
- const listenedNamespaces = globalThis.DEBUG.split(",").map((s) => {
169
- return s.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
170
- });
171
- const isListened = listenedNamespaces.some((listenedNamespace) => {
172
- if (listenedNamespace === "" || listenedNamespace[0] === "-") return false;
173
- return namespace.match(RegExp(listenedNamespace.split("*").join(".*") + "$"));
174
- });
175
- const isExcluded = listenedNamespaces.some((listenedNamespace) => {
176
- if (listenedNamespace === "" || listenedNamespace[0] !== "-") return false;
177
- return namespace.match(RegExp(listenedNamespace.slice(1).split("*").join(".*") + "$"));
178
- });
179
- return isListened && !isExcluded;
180
- },
181
- log: (...args2) => {
182
- const [namespace, format7, ...rest] = args2;
183
- const logWithFormatting = console.warn ?? console.log;
184
- logWithFormatting(`${namespace} ${format7}`, ...rest);
185
- },
186
- formatters: {}
187
- // not implemented
188
- };
189
- function debugCreate(namespace) {
190
- const instanceProps = {
191
- color: COLORS[lastColor++ % COLORS.length],
192
- enabled: topProps.enabled(namespace),
193
- namespace,
194
- log: topProps.log,
195
- extend: () => {
196
- }
197
- // not implemented
198
- };
199
- const debugCall = (...args2) => {
200
- const { enabled: enabled2, namespace: namespace2, color, log } = instanceProps;
201
- if (args2.length !== 0) {
202
- argsHistory.push([namespace2, ...args2]);
203
- }
204
- if (argsHistory.length > MAX_ARGS_HISTORY) {
205
- argsHistory.shift();
206
- }
207
- if (topProps.enabled(namespace2) || enabled2) {
208
- const stringArgs = args2.map((arg) => {
209
- if (typeof arg === "string") {
210
- return arg;
211
- }
212
- return safeStringify(arg);
213
- });
214
- const ms = `+${Date.now() - lastTimestamp}ms`;
215
- lastTimestamp = Date.now();
216
- if (globalThis.DEBUG_COLORS) {
217
- log(colors_exports[color](bold(namespace2)), ...stringArgs, colors_exports[color](ms));
218
- } else {
219
- log(namespace2, ...stringArgs, ms);
220
- }
221
- }
222
- };
223
- return new Proxy(debugCall, {
224
- get: (_, prop) => instanceProps[prop],
225
- set: (_, prop, value3) => instanceProps[prop] = value3
226
- });
227
- }
228
- var Debug3 = new Proxy(debugCreate, {
229
- get: (_, prop) => topProps[prop],
230
- set: (_, prop, value3) => topProps[prop] = value3
231
- });
232
- function safeStringify(value3, indent = 2) {
233
- const cache = /* @__PURE__ */ new Set();
234
- return JSON.stringify(
235
- value3,
236
- (key, value22) => {
237
- if (typeof value22 === "object" && value22 !== null) {
238
- if (cache.has(value22)) {
239
- return `[Circular *]`;
240
- }
241
- cache.add(value22);
242
- } else if (typeof value22 === "bigint") {
243
- return value22.toString();
244
- }
245
- return value22;
246
- },
247
- indent
248
- );
249
- }
250
- function getLogs(numChars = 7500) {
251
- const logs = argsHistory.map(([namespace, ...args2]) => {
252
- return `${namespace} ${args2.map((arg) => {
253
- if (typeof arg === "string") {
254
- return arg;
255
- } else {
256
- return JSON.stringify(arg);
257
- }
258
- }).join(" ")}`;
259
- }).join("\n");
260
- if (logs.length < numChars) {
261
- return logs;
262
- }
263
- return logs.slice(-numChars);
264
- }
265
- function clearLogs() {
266
- argsHistory.length = 0;
267
- }
268
- var index_default = Debug3;
269
- }
270
- });
271
-
272
39
  // src/index.ts
273
40
  var index_exports = {};
274
41
  __export(index_exports, {
@@ -22589,11 +22356,194 @@ function defaultTestConfig() {
22589
22356
  });
22590
22357
  }
22591
22358
 
22592
- // ../driver-adapter-utils/dist/index.mjs
22593
- var import_debug = __toESM(require_dist(), 1);
22359
+ // ../debug/dist/index.mjs
22360
+ var __defProp2 = Object.defineProperty;
22361
+ var __export2 = (target, all5) => {
22362
+ for (var name in all5)
22363
+ __defProp2(target, name, { get: all5[name], enumerable: true });
22364
+ };
22365
+ var colors_exports = {};
22366
+ __export2(colors_exports, {
22367
+ $: () => $,
22368
+ bgBlack: () => bgBlack,
22369
+ bgBlue: () => bgBlue,
22370
+ bgCyan: () => bgCyan,
22371
+ bgGreen: () => bgGreen,
22372
+ bgMagenta: () => bgMagenta,
22373
+ bgRed: () => bgRed,
22374
+ bgWhite: () => bgWhite,
22375
+ bgYellow: () => bgYellow,
22376
+ black: () => black,
22377
+ blue: () => blue,
22378
+ bold: () => bold,
22379
+ cyan: () => cyan,
22380
+ dim: () => dim,
22381
+ gray: () => gray,
22382
+ green: () => green,
22383
+ grey: () => grey,
22384
+ hidden: () => hidden,
22385
+ inverse: () => inverse2,
22386
+ italic: () => italic,
22387
+ magenta: () => magenta,
22388
+ red: () => red,
22389
+ reset: () => reset,
22390
+ strikethrough: () => strikethrough,
22391
+ underline: () => underline,
22392
+ white: () => white,
22393
+ yellow: () => yellow
22394
+ });
22395
+ var FORCE_COLOR;
22396
+ var NODE_DISABLE_COLORS;
22397
+ var NO_COLOR;
22398
+ var TERM;
22399
+ var isTTY = true;
22400
+ if (typeof process !== "undefined") {
22401
+ ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
22402
+ isTTY = process.stdout && process.stdout.isTTY;
22403
+ }
22404
+ var $ = {
22405
+ enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
22406
+ };
22407
+ function init(x, y) {
22408
+ let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
22409
+ let open = `\x1B[${x}m`, close2 = `\x1B[${y}m`;
22410
+ return function(txt) {
22411
+ if (!$.enabled || txt == null) return txt;
22412
+ return open + (!!~("" + txt).indexOf(close2) ? txt.replace(rgx, close2 + open) : txt) + close2;
22413
+ };
22414
+ }
22415
+ var reset = init(0, 0);
22416
+ var bold = init(1, 22);
22417
+ var dim = init(2, 22);
22418
+ var italic = init(3, 23);
22419
+ var underline = init(4, 24);
22420
+ var inverse2 = init(7, 27);
22421
+ var hidden = init(8, 28);
22422
+ var strikethrough = init(9, 29);
22423
+ var black = init(30, 39);
22424
+ var red = init(31, 39);
22425
+ var green = init(32, 39);
22426
+ var yellow = init(33, 39);
22427
+ var blue = init(34, 39);
22428
+ var magenta = init(35, 39);
22429
+ var cyan = init(36, 39);
22430
+ var white = init(37, 39);
22431
+ var gray = init(90, 39);
22432
+ var grey = init(90, 39);
22433
+ var bgBlack = init(40, 49);
22434
+ var bgRed = init(41, 49);
22435
+ var bgGreen = init(42, 49);
22436
+ var bgYellow = init(43, 49);
22437
+ var bgBlue = init(44, 49);
22438
+ var bgMagenta = init(45, 49);
22439
+ var bgCyan = init(46, 49);
22440
+ var bgWhite = init(47, 49);
22441
+ var MAX_ARGS_HISTORY = 100;
22442
+ var COLORS = ["green", "yellow", "blue", "magenta", "cyan", "red"];
22443
+ var argsHistory = [];
22444
+ var lastTimestamp = Date.now();
22445
+ var lastColor = 0;
22446
+ var processEnv = typeof process !== "undefined" ? process.env : {};
22447
+ globalThis.DEBUG ??= processEnv.DEBUG ?? "";
22448
+ globalThis.DEBUG_COLORS ??= processEnv.DEBUG_COLORS ? processEnv.DEBUG_COLORS === "true" : true;
22449
+ var topProps = {
22450
+ enable(namespace) {
22451
+ if (typeof namespace === "string") {
22452
+ globalThis.DEBUG = namespace;
22453
+ }
22454
+ },
22455
+ disable() {
22456
+ const prev = globalThis.DEBUG;
22457
+ globalThis.DEBUG = "";
22458
+ return prev;
22459
+ },
22460
+ // this is the core logic to check if logging should happen or not
22461
+ enabled(namespace) {
22462
+ const listenedNamespaces = globalThis.DEBUG.split(",").map((s) => {
22463
+ return s.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
22464
+ });
22465
+ const isListened = listenedNamespaces.some((listenedNamespace) => {
22466
+ if (listenedNamespace === "" || listenedNamespace[0] === "-") return false;
22467
+ return namespace.match(RegExp(listenedNamespace.split("*").join(".*") + "$"));
22468
+ });
22469
+ const isExcluded = listenedNamespaces.some((listenedNamespace) => {
22470
+ if (listenedNamespace === "" || listenedNamespace[0] !== "-") return false;
22471
+ return namespace.match(RegExp(listenedNamespace.slice(1).split("*").join(".*") + "$"));
22472
+ });
22473
+ return isListened && !isExcluded;
22474
+ },
22475
+ log: (...args2) => {
22476
+ const [namespace, format7, ...rest] = args2;
22477
+ const logWithFormatting = console.warn ?? console.log;
22478
+ logWithFormatting(`${namespace} ${format7}`, ...rest);
22479
+ },
22480
+ formatters: {}
22481
+ // not implemented
22482
+ };
22483
+ function debugCreate(namespace) {
22484
+ const instanceProps = {
22485
+ color: COLORS[lastColor++ % COLORS.length],
22486
+ enabled: topProps.enabled(namespace),
22487
+ namespace,
22488
+ log: topProps.log,
22489
+ extend: () => {
22490
+ }
22491
+ // not implemented
22492
+ };
22493
+ const debugCall = (...args2) => {
22494
+ const { enabled: enabled2, namespace: namespace2, color, log } = instanceProps;
22495
+ if (args2.length !== 0) {
22496
+ argsHistory.push([namespace2, ...args2]);
22497
+ }
22498
+ if (argsHistory.length > MAX_ARGS_HISTORY) {
22499
+ argsHistory.shift();
22500
+ }
22501
+ if (topProps.enabled(namespace2) || enabled2) {
22502
+ const stringArgs = args2.map((arg) => {
22503
+ if (typeof arg === "string") {
22504
+ return arg;
22505
+ }
22506
+ return safeStringify(arg);
22507
+ });
22508
+ const ms = `+${Date.now() - lastTimestamp}ms`;
22509
+ lastTimestamp = Date.now();
22510
+ if (globalThis.DEBUG_COLORS) {
22511
+ log(colors_exports[color](bold(namespace2)), ...stringArgs, colors_exports[color](ms));
22512
+ } else {
22513
+ log(namespace2, ...stringArgs, ms);
22514
+ }
22515
+ }
22516
+ };
22517
+ return new Proxy(debugCall, {
22518
+ get: (_, prop) => instanceProps[prop],
22519
+ set: (_, prop, value3) => instanceProps[prop] = value3
22520
+ });
22521
+ }
22522
+ var Debug2 = new Proxy(debugCreate, {
22523
+ get: (_, prop) => topProps[prop],
22524
+ set: (_, prop, value3) => topProps[prop] = value3
22525
+ });
22526
+ function safeStringify(value3, indent = 2) {
22527
+ const cache = /* @__PURE__ */ new Set();
22528
+ return JSON.stringify(
22529
+ value3,
22530
+ (key, value22) => {
22531
+ if (typeof value22 === "object" && value22 !== null) {
22532
+ if (cache.has(value22)) {
22533
+ return `[Circular *]`;
22534
+ }
22535
+ cache.add(value22);
22536
+ } else if (typeof value22 === "bigint") {
22537
+ return value22.toString();
22538
+ }
22539
+ return value22;
22540
+ },
22541
+ indent
22542
+ );
22543
+ }
22594
22544
 
22595
22545
  // src/defineConfig.ts
22596
- var debug = (0, import_debug.Debug)("prisma:config:defineConfig");
22546
+ var debug = Debug2("prisma:config:defineConfig");
22597
22547
  function defineConfig(configInput) {
22598
22548
  const config2 = defaultConfig();
22599
22549
  defineSchemaConfig(config2, configInput);
@@ -22621,7 +22571,7 @@ function defineStudioConfig(config2, configInput) {
22621
22571
  var import_node_fs = __toESM(require("node:fs"));
22622
22572
  var import_node_path = __toESM(require("node:path"));
22623
22573
  var import_node_process = __toESM(require("node:process"));
22624
- var debug2 = (0, import_debug.Debug)("prisma:config:loadConfigFromFile");
22574
+ var debug2 = Debug2("prisma:config:loadConfigFromFile");
22625
22575
  async function loadConfigFromFile({
22626
22576
  configFile,
22627
22577
  configRoot = import_node_process.default.cwd()
@@ -9,9 +9,6 @@ var __typeError = (msg) => {
9
9
  throw TypeError(msg);
10
10
  };
11
11
  var __defNormalProp = (obj, key, value3) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value3 }) : obj[key] = value3;
12
- var __commonJS = (cb, mod) => function __require() {
13
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
- };
15
12
  var __export = (target, all5) => {
16
13
  for (var name in all5)
17
14
  __defProp(target, name, { get: all5[name], enumerable: true });
@@ -39,236 +36,6 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
39
36
  var __privateAdd = (obj, member, value3) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value3);
40
37
  var __privateSet = (obj, member, value3, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value3) : member.set(obj, value3), value3);
41
38
 
42
- // ../debug/dist/index.js
43
- var require_dist = __commonJS({
44
- "../debug/dist/index.js"(exports2, module2) {
45
- "use strict";
46
- var __defProp2 = Object.defineProperty;
47
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
48
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
49
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
50
- var __export2 = (target, all5) => {
51
- for (var name in all5)
52
- __defProp2(target, name, { get: all5[name], enumerable: true });
53
- };
54
- var __copyProps2 = (to, from, except, desc) => {
55
- if (from && typeof from === "object" || typeof from === "function") {
56
- for (let key of __getOwnPropNames2(from))
57
- if (!__hasOwnProp2.call(to, key) && key !== except)
58
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
59
- }
60
- return to;
61
- };
62
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
63
- var index_exports = {};
64
- __export2(index_exports, {
65
- Debug: () => Debug3,
66
- clearLogs: () => clearLogs,
67
- default: () => index_default,
68
- getLogs: () => getLogs
69
- });
70
- module2.exports = __toCommonJS2(index_exports);
71
- var colors_exports = {};
72
- __export2(colors_exports, {
73
- $: () => $,
74
- bgBlack: () => bgBlack,
75
- bgBlue: () => bgBlue,
76
- bgCyan: () => bgCyan,
77
- bgGreen: () => bgGreen,
78
- bgMagenta: () => bgMagenta,
79
- bgRed: () => bgRed,
80
- bgWhite: () => bgWhite,
81
- bgYellow: () => bgYellow,
82
- black: () => black,
83
- blue: () => blue,
84
- bold: () => bold,
85
- cyan: () => cyan,
86
- dim: () => dim,
87
- gray: () => gray,
88
- green: () => green,
89
- grey: () => grey,
90
- hidden: () => hidden,
91
- inverse: () => inverse2,
92
- italic: () => italic,
93
- magenta: () => magenta,
94
- red: () => red,
95
- reset: () => reset,
96
- strikethrough: () => strikethrough,
97
- underline: () => underline,
98
- white: () => white,
99
- yellow: () => yellow
100
- });
101
- var FORCE_COLOR;
102
- var NODE_DISABLE_COLORS;
103
- var NO_COLOR;
104
- var TERM;
105
- var isTTY = true;
106
- if (typeof process !== "undefined") {
107
- ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
108
- isTTY = process.stdout && process.stdout.isTTY;
109
- }
110
- var $ = {
111
- enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
112
- };
113
- function init(x, y) {
114
- let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
115
- let open = `\x1B[${x}m`, close2 = `\x1B[${y}m`;
116
- return function(txt) {
117
- if (!$.enabled || txt == null) return txt;
118
- return open + (!!~("" + txt).indexOf(close2) ? txt.replace(rgx, close2 + open) : txt) + close2;
119
- };
120
- }
121
- var reset = init(0, 0);
122
- var bold = init(1, 22);
123
- var dim = init(2, 22);
124
- var italic = init(3, 23);
125
- var underline = init(4, 24);
126
- var inverse2 = init(7, 27);
127
- var hidden = init(8, 28);
128
- var strikethrough = init(9, 29);
129
- var black = init(30, 39);
130
- var red = init(31, 39);
131
- var green = init(32, 39);
132
- var yellow = init(33, 39);
133
- var blue = init(34, 39);
134
- var magenta = init(35, 39);
135
- var cyan = init(36, 39);
136
- var white = init(37, 39);
137
- var gray = init(90, 39);
138
- var grey = init(90, 39);
139
- var bgBlack = init(40, 49);
140
- var bgRed = init(41, 49);
141
- var bgGreen = init(42, 49);
142
- var bgYellow = init(43, 49);
143
- var bgBlue = init(44, 49);
144
- var bgMagenta = init(45, 49);
145
- var bgCyan = init(46, 49);
146
- var bgWhite = init(47, 49);
147
- var MAX_ARGS_HISTORY = 100;
148
- var COLORS = ["green", "yellow", "blue", "magenta", "cyan", "red"];
149
- var argsHistory = [];
150
- var lastTimestamp = Date.now();
151
- var lastColor = 0;
152
- var processEnv = typeof process !== "undefined" ? process.env : {};
153
- globalThis.DEBUG ??= processEnv.DEBUG ?? "";
154
- globalThis.DEBUG_COLORS ??= processEnv.DEBUG_COLORS ? processEnv.DEBUG_COLORS === "true" : true;
155
- var topProps = {
156
- enable(namespace) {
157
- if (typeof namespace === "string") {
158
- globalThis.DEBUG = namespace;
159
- }
160
- },
161
- disable() {
162
- const prev = globalThis.DEBUG;
163
- globalThis.DEBUG = "";
164
- return prev;
165
- },
166
- // this is the core logic to check if logging should happen or not
167
- enabled(namespace) {
168
- const listenedNamespaces = globalThis.DEBUG.split(",").map((s) => {
169
- return s.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
170
- });
171
- const isListened = listenedNamespaces.some((listenedNamespace) => {
172
- if (listenedNamespace === "" || listenedNamespace[0] === "-") return false;
173
- return namespace.match(RegExp(listenedNamespace.split("*").join(".*") + "$"));
174
- });
175
- const isExcluded = listenedNamespaces.some((listenedNamespace) => {
176
- if (listenedNamespace === "" || listenedNamespace[0] !== "-") return false;
177
- return namespace.match(RegExp(listenedNamespace.slice(1).split("*").join(".*") + "$"));
178
- });
179
- return isListened && !isExcluded;
180
- },
181
- log: (...args2) => {
182
- const [namespace, format7, ...rest] = args2;
183
- const logWithFormatting = console.warn ?? console.log;
184
- logWithFormatting(`${namespace} ${format7}`, ...rest);
185
- },
186
- formatters: {}
187
- // not implemented
188
- };
189
- function debugCreate(namespace) {
190
- const instanceProps = {
191
- color: COLORS[lastColor++ % COLORS.length],
192
- enabled: topProps.enabled(namespace),
193
- namespace,
194
- log: topProps.log,
195
- extend: () => {
196
- }
197
- // not implemented
198
- };
199
- const debugCall = (...args2) => {
200
- const { enabled: enabled2, namespace: namespace2, color, log } = instanceProps;
201
- if (args2.length !== 0) {
202
- argsHistory.push([namespace2, ...args2]);
203
- }
204
- if (argsHistory.length > MAX_ARGS_HISTORY) {
205
- argsHistory.shift();
206
- }
207
- if (topProps.enabled(namespace2) || enabled2) {
208
- const stringArgs = args2.map((arg) => {
209
- if (typeof arg === "string") {
210
- return arg;
211
- }
212
- return safeStringify(arg);
213
- });
214
- const ms = `+${Date.now() - lastTimestamp}ms`;
215
- lastTimestamp = Date.now();
216
- if (globalThis.DEBUG_COLORS) {
217
- log(colors_exports[color](bold(namespace2)), ...stringArgs, colors_exports[color](ms));
218
- } else {
219
- log(namespace2, ...stringArgs, ms);
220
- }
221
- }
222
- };
223
- return new Proxy(debugCall, {
224
- get: (_, prop) => instanceProps[prop],
225
- set: (_, prop, value3) => instanceProps[prop] = value3
226
- });
227
- }
228
- var Debug3 = new Proxy(debugCreate, {
229
- get: (_, prop) => topProps[prop],
230
- set: (_, prop, value3) => topProps[prop] = value3
231
- });
232
- function safeStringify(value3, indent = 2) {
233
- const cache = /* @__PURE__ */ new Set();
234
- return JSON.stringify(
235
- value3,
236
- (key, value22) => {
237
- if (typeof value22 === "object" && value22 !== null) {
238
- if (cache.has(value22)) {
239
- return `[Circular *]`;
240
- }
241
- cache.add(value22);
242
- } else if (typeof value22 === "bigint") {
243
- return value22.toString();
244
- }
245
- return value22;
246
- },
247
- indent
248
- );
249
- }
250
- function getLogs(numChars = 7500) {
251
- const logs = argsHistory.map(([namespace, ...args2]) => {
252
- return `${namespace} ${args2.map((arg) => {
253
- if (typeof arg === "string") {
254
- return arg;
255
- } else {
256
- return JSON.stringify(arg);
257
- }
258
- }).join(" ")}`;
259
- }).join("\n");
260
- if (logs.length < numChars) {
261
- return logs;
262
- }
263
- return logs.slice(-numChars);
264
- }
265
- function clearLogs() {
266
- argsHistory.length = 0;
267
- }
268
- var index_default = Debug3;
269
- }
270
- });
271
-
272
39
  // src/loadConfigFromFile.ts
273
40
  var loadConfigFromFile_exports = {};
274
41
  __export(loadConfigFromFile_exports, {
@@ -279,8 +46,191 @@ var import_node_fs = __toESM(require("node:fs"));
279
46
  var import_node_path = __toESM(require("node:path"));
280
47
  var import_node_process = __toESM(require("node:process"));
281
48
 
282
- // ../driver-adapter-utils/dist/index.mjs
283
- var import_debug = __toESM(require_dist(), 1);
49
+ // ../debug/dist/index.mjs
50
+ var __defProp2 = Object.defineProperty;
51
+ var __export2 = (target, all5) => {
52
+ for (var name in all5)
53
+ __defProp2(target, name, { get: all5[name], enumerable: true });
54
+ };
55
+ var colors_exports = {};
56
+ __export2(colors_exports, {
57
+ $: () => $,
58
+ bgBlack: () => bgBlack,
59
+ bgBlue: () => bgBlue,
60
+ bgCyan: () => bgCyan,
61
+ bgGreen: () => bgGreen,
62
+ bgMagenta: () => bgMagenta,
63
+ bgRed: () => bgRed,
64
+ bgWhite: () => bgWhite,
65
+ bgYellow: () => bgYellow,
66
+ black: () => black,
67
+ blue: () => blue,
68
+ bold: () => bold,
69
+ cyan: () => cyan,
70
+ dim: () => dim,
71
+ gray: () => gray,
72
+ green: () => green,
73
+ grey: () => grey,
74
+ hidden: () => hidden,
75
+ inverse: () => inverse,
76
+ italic: () => italic,
77
+ magenta: () => magenta,
78
+ red: () => red,
79
+ reset: () => reset,
80
+ strikethrough: () => strikethrough,
81
+ underline: () => underline,
82
+ white: () => white,
83
+ yellow: () => yellow
84
+ });
85
+ var FORCE_COLOR;
86
+ var NODE_DISABLE_COLORS;
87
+ var NO_COLOR;
88
+ var TERM;
89
+ var isTTY = true;
90
+ if (typeof process !== "undefined") {
91
+ ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
92
+ isTTY = process.stdout && process.stdout.isTTY;
93
+ }
94
+ var $ = {
95
+ enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
96
+ };
97
+ function init(x, y) {
98
+ let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
99
+ let open = `\x1B[${x}m`, close2 = `\x1B[${y}m`;
100
+ return function(txt) {
101
+ if (!$.enabled || txt == null) return txt;
102
+ return open + (!!~("" + txt).indexOf(close2) ? txt.replace(rgx, close2 + open) : txt) + close2;
103
+ };
104
+ }
105
+ var reset = init(0, 0);
106
+ var bold = init(1, 22);
107
+ var dim = init(2, 22);
108
+ var italic = init(3, 23);
109
+ var underline = init(4, 24);
110
+ var inverse = init(7, 27);
111
+ var hidden = init(8, 28);
112
+ var strikethrough = init(9, 29);
113
+ var black = init(30, 39);
114
+ var red = init(31, 39);
115
+ var green = init(32, 39);
116
+ var yellow = init(33, 39);
117
+ var blue = init(34, 39);
118
+ var magenta = init(35, 39);
119
+ var cyan = init(36, 39);
120
+ var white = init(37, 39);
121
+ var gray = init(90, 39);
122
+ var grey = init(90, 39);
123
+ var bgBlack = init(40, 49);
124
+ var bgRed = init(41, 49);
125
+ var bgGreen = init(42, 49);
126
+ var bgYellow = init(43, 49);
127
+ var bgBlue = init(44, 49);
128
+ var bgMagenta = init(45, 49);
129
+ var bgCyan = init(46, 49);
130
+ var bgWhite = init(47, 49);
131
+ var MAX_ARGS_HISTORY = 100;
132
+ var COLORS = ["green", "yellow", "blue", "magenta", "cyan", "red"];
133
+ var argsHistory = [];
134
+ var lastTimestamp = Date.now();
135
+ var lastColor = 0;
136
+ var processEnv = typeof process !== "undefined" ? process.env : {};
137
+ globalThis.DEBUG ??= processEnv.DEBUG ?? "";
138
+ globalThis.DEBUG_COLORS ??= processEnv.DEBUG_COLORS ? processEnv.DEBUG_COLORS === "true" : true;
139
+ var topProps = {
140
+ enable(namespace) {
141
+ if (typeof namespace === "string") {
142
+ globalThis.DEBUG = namespace;
143
+ }
144
+ },
145
+ disable() {
146
+ const prev = globalThis.DEBUG;
147
+ globalThis.DEBUG = "";
148
+ return prev;
149
+ },
150
+ // this is the core logic to check if logging should happen or not
151
+ enabled(namespace) {
152
+ const listenedNamespaces = globalThis.DEBUG.split(",").map((s) => {
153
+ return s.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
154
+ });
155
+ const isListened = listenedNamespaces.some((listenedNamespace) => {
156
+ if (listenedNamespace === "" || listenedNamespace[0] === "-") return false;
157
+ return namespace.match(RegExp(listenedNamespace.split("*").join(".*") + "$"));
158
+ });
159
+ const isExcluded = listenedNamespaces.some((listenedNamespace) => {
160
+ if (listenedNamespace === "" || listenedNamespace[0] !== "-") return false;
161
+ return namespace.match(RegExp(listenedNamespace.slice(1).split("*").join(".*") + "$"));
162
+ });
163
+ return isListened && !isExcluded;
164
+ },
165
+ log: (...args2) => {
166
+ const [namespace, format7, ...rest] = args2;
167
+ const logWithFormatting = console.warn ?? console.log;
168
+ logWithFormatting(`${namespace} ${format7}`, ...rest);
169
+ },
170
+ formatters: {}
171
+ // not implemented
172
+ };
173
+ function debugCreate(namespace) {
174
+ const instanceProps = {
175
+ color: COLORS[lastColor++ % COLORS.length],
176
+ enabled: topProps.enabled(namespace),
177
+ namespace,
178
+ log: topProps.log,
179
+ extend: () => {
180
+ }
181
+ // not implemented
182
+ };
183
+ const debugCall = (...args2) => {
184
+ const { enabled: enabled2, namespace: namespace2, color, log } = instanceProps;
185
+ if (args2.length !== 0) {
186
+ argsHistory.push([namespace2, ...args2]);
187
+ }
188
+ if (argsHistory.length > MAX_ARGS_HISTORY) {
189
+ argsHistory.shift();
190
+ }
191
+ if (topProps.enabled(namespace2) || enabled2) {
192
+ const stringArgs = args2.map((arg) => {
193
+ if (typeof arg === "string") {
194
+ return arg;
195
+ }
196
+ return safeStringify(arg);
197
+ });
198
+ const ms = `+${Date.now() - lastTimestamp}ms`;
199
+ lastTimestamp = Date.now();
200
+ if (globalThis.DEBUG_COLORS) {
201
+ log(colors_exports[color](bold(namespace2)), ...stringArgs, colors_exports[color](ms));
202
+ } else {
203
+ log(namespace2, ...stringArgs, ms);
204
+ }
205
+ }
206
+ };
207
+ return new Proxy(debugCall, {
208
+ get: (_, prop) => instanceProps[prop],
209
+ set: (_, prop, value3) => instanceProps[prop] = value3
210
+ });
211
+ }
212
+ var Debug = new Proxy(debugCreate, {
213
+ get: (_, prop) => topProps[prop],
214
+ set: (_, prop, value3) => topProps[prop] = value3
215
+ });
216
+ function safeStringify(value3, indent = 2) {
217
+ const cache = /* @__PURE__ */ new Set();
218
+ return JSON.stringify(
219
+ value3,
220
+ (key, value22) => {
221
+ if (typeof value22 === "object" && value22 !== null) {
222
+ if (cache.has(value22)) {
223
+ return `[Circular *]`;
224
+ }
225
+ cache.add(value22);
226
+ } else if (typeof value22 === "bigint") {
227
+ return value22.toString();
228
+ }
229
+ return value22;
230
+ },
231
+ indent
232
+ );
233
+ }
284
234
 
285
235
  // ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/Function.js
286
236
  var isFunction = (input) => typeof input === "function";
@@ -22577,7 +22527,7 @@ function parsePrismaConfigInternalShape(input) {
22577
22527
  }
22578
22528
 
22579
22529
  // src/loadConfigFromFile.ts
22580
- var debug = (0, import_debug.Debug)("prisma:config:loadConfigFromFile");
22530
+ var debug = Debug("prisma:config:loadConfigFromFile");
22581
22531
  async function loadConfigFromFile({
22582
22532
  configFile,
22583
22533
  configRoot = import_node_process.default.cwd()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/config",
3
- "version": "6.4.0-dev.48",
3
+ "version": "6.4.0-dev.50",
4
4
  "description": "Internal package used to define and read Prisma configuration files",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "esbuild-register": "3.6.0",
19
19
  "jest": "29.7.0",
20
20
  "jest-junit": "16.0.0",
21
- "@prisma/get-platform": "6.4.0-dev.48",
22
- "@prisma/driver-adapter-utils": "6.4.0-dev.48"
21
+ "@prisma/driver-adapter-utils": "6.4.0-dev.50",
22
+ "@prisma/get-platform": "6.4.0-dev.50"
23
23
  },
24
24
  "files": [
25
25
  "dist"