@prisma/migrate 7.8.0 → 7.9.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/chunk-EYEKG56L.js +299 -0
- package/dist/utils/setupMSSQL.js +5439 -13973
- package/dist/utils/setupMongo.js +692 -164
- package/package.json +9 -9
- package/dist/chunk-SFU5FRZP.js +0 -828
package/dist/chunk-SFU5FRZP.js
DELETED
|
@@ -1,828 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var chunk_SFU5FRZP_exports = {};
|
|
30
|
-
__export(chunk_SFU5FRZP_exports, {
|
|
31
|
-
init_supports_color: () => init_supports_color,
|
|
32
|
-
require_ms: () => require_ms,
|
|
33
|
-
require_src: () => require_src,
|
|
34
|
-
supports_color_exports: () => supports_color_exports
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(chunk_SFU5FRZP_exports);
|
|
37
|
-
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
38
|
-
var import_node_process = __toESM(require("node:process"));
|
|
39
|
-
var import_node_os = __toESM(require("node:os"));
|
|
40
|
-
var import_node_tty = __toESM(require("node:tty"));
|
|
41
|
-
var require_ms = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
42
|
-
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js"(exports, module2) {
|
|
43
|
-
"use strict";
|
|
44
|
-
var s = 1e3;
|
|
45
|
-
var m = s * 60;
|
|
46
|
-
var h = m * 60;
|
|
47
|
-
var d = h * 24;
|
|
48
|
-
var w = d * 7;
|
|
49
|
-
var y = d * 365.25;
|
|
50
|
-
module2.exports = function(val, options) {
|
|
51
|
-
options = options || {};
|
|
52
|
-
var type = typeof val;
|
|
53
|
-
if (type === "string" && val.length > 0) {
|
|
54
|
-
return parse(val);
|
|
55
|
-
} else if (type === "number" && isFinite(val)) {
|
|
56
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
57
|
-
}
|
|
58
|
-
throw new Error(
|
|
59
|
-
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
function parse(str) {
|
|
63
|
-
str = String(str);
|
|
64
|
-
if (str.length > 100) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
68
|
-
str
|
|
69
|
-
);
|
|
70
|
-
if (!match) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
var n = parseFloat(match[1]);
|
|
74
|
-
var type = (match[2] || "ms").toLowerCase();
|
|
75
|
-
switch (type) {
|
|
76
|
-
case "years":
|
|
77
|
-
case "year":
|
|
78
|
-
case "yrs":
|
|
79
|
-
case "yr":
|
|
80
|
-
case "y":
|
|
81
|
-
return n * y;
|
|
82
|
-
case "weeks":
|
|
83
|
-
case "week":
|
|
84
|
-
case "w":
|
|
85
|
-
return n * w;
|
|
86
|
-
case "days":
|
|
87
|
-
case "day":
|
|
88
|
-
case "d":
|
|
89
|
-
return n * d;
|
|
90
|
-
case "hours":
|
|
91
|
-
case "hour":
|
|
92
|
-
case "hrs":
|
|
93
|
-
case "hr":
|
|
94
|
-
case "h":
|
|
95
|
-
return n * h;
|
|
96
|
-
case "minutes":
|
|
97
|
-
case "minute":
|
|
98
|
-
case "mins":
|
|
99
|
-
case "min":
|
|
100
|
-
case "m":
|
|
101
|
-
return n * m;
|
|
102
|
-
case "seconds":
|
|
103
|
-
case "second":
|
|
104
|
-
case "secs":
|
|
105
|
-
case "sec":
|
|
106
|
-
case "s":
|
|
107
|
-
return n * s;
|
|
108
|
-
case "milliseconds":
|
|
109
|
-
case "millisecond":
|
|
110
|
-
case "msecs":
|
|
111
|
-
case "msec":
|
|
112
|
-
case "ms":
|
|
113
|
-
return n;
|
|
114
|
-
default:
|
|
115
|
-
return void 0;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
function fmtShort(ms) {
|
|
119
|
-
var msAbs = Math.abs(ms);
|
|
120
|
-
if (msAbs >= d) {
|
|
121
|
-
return Math.round(ms / d) + "d";
|
|
122
|
-
}
|
|
123
|
-
if (msAbs >= h) {
|
|
124
|
-
return Math.round(ms / h) + "h";
|
|
125
|
-
}
|
|
126
|
-
if (msAbs >= m) {
|
|
127
|
-
return Math.round(ms / m) + "m";
|
|
128
|
-
}
|
|
129
|
-
if (msAbs >= s) {
|
|
130
|
-
return Math.round(ms / s) + "s";
|
|
131
|
-
}
|
|
132
|
-
return ms + "ms";
|
|
133
|
-
}
|
|
134
|
-
function fmtLong(ms) {
|
|
135
|
-
var msAbs = Math.abs(ms);
|
|
136
|
-
if (msAbs >= d) {
|
|
137
|
-
return plural(ms, msAbs, d, "day");
|
|
138
|
-
}
|
|
139
|
-
if (msAbs >= h) {
|
|
140
|
-
return plural(ms, msAbs, h, "hour");
|
|
141
|
-
}
|
|
142
|
-
if (msAbs >= m) {
|
|
143
|
-
return plural(ms, msAbs, m, "minute");
|
|
144
|
-
}
|
|
145
|
-
if (msAbs >= s) {
|
|
146
|
-
return plural(ms, msAbs, s, "second");
|
|
147
|
-
}
|
|
148
|
-
return ms + " ms";
|
|
149
|
-
}
|
|
150
|
-
function plural(ms, msAbs, n, name) {
|
|
151
|
-
var isPlural = msAbs >= n * 1.5;
|
|
152
|
-
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
157
|
-
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js"(exports, module2) {
|
|
158
|
-
"use strict";
|
|
159
|
-
function setup(env2) {
|
|
160
|
-
createDebug.debug = createDebug;
|
|
161
|
-
createDebug.default = createDebug;
|
|
162
|
-
createDebug.coerce = coerce;
|
|
163
|
-
createDebug.disable = disable;
|
|
164
|
-
createDebug.enable = enable;
|
|
165
|
-
createDebug.enabled = enabled;
|
|
166
|
-
createDebug.humanize = require_ms();
|
|
167
|
-
createDebug.destroy = destroy;
|
|
168
|
-
Object.keys(env2).forEach((key) => {
|
|
169
|
-
createDebug[key] = env2[key];
|
|
170
|
-
});
|
|
171
|
-
createDebug.names = [];
|
|
172
|
-
createDebug.skips = [];
|
|
173
|
-
createDebug.formatters = {};
|
|
174
|
-
function selectColor(namespace) {
|
|
175
|
-
let hash = 0;
|
|
176
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
177
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
178
|
-
hash |= 0;
|
|
179
|
-
}
|
|
180
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
181
|
-
}
|
|
182
|
-
createDebug.selectColor = selectColor;
|
|
183
|
-
function createDebug(namespace) {
|
|
184
|
-
let prevTime;
|
|
185
|
-
let enableOverride = null;
|
|
186
|
-
let namespacesCache;
|
|
187
|
-
let enabledCache;
|
|
188
|
-
function debug(...args) {
|
|
189
|
-
if (!debug.enabled) {
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
const self = debug;
|
|
193
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
194
|
-
const ms = curr - (prevTime || curr);
|
|
195
|
-
self.diff = ms;
|
|
196
|
-
self.prev = prevTime;
|
|
197
|
-
self.curr = curr;
|
|
198
|
-
prevTime = curr;
|
|
199
|
-
args[0] = createDebug.coerce(args[0]);
|
|
200
|
-
if (typeof args[0] !== "string") {
|
|
201
|
-
args.unshift("%O");
|
|
202
|
-
}
|
|
203
|
-
let index = 0;
|
|
204
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
205
|
-
if (match === "%%") {
|
|
206
|
-
return "%";
|
|
207
|
-
}
|
|
208
|
-
index++;
|
|
209
|
-
const formatter = createDebug.formatters[format];
|
|
210
|
-
if (typeof formatter === "function") {
|
|
211
|
-
const val = args[index];
|
|
212
|
-
match = formatter.call(self, val);
|
|
213
|
-
args.splice(index, 1);
|
|
214
|
-
index--;
|
|
215
|
-
}
|
|
216
|
-
return match;
|
|
217
|
-
});
|
|
218
|
-
createDebug.formatArgs.call(self, args);
|
|
219
|
-
const logFn = self.log || createDebug.log;
|
|
220
|
-
logFn.apply(self, args);
|
|
221
|
-
}
|
|
222
|
-
debug.namespace = namespace;
|
|
223
|
-
debug.useColors = createDebug.useColors();
|
|
224
|
-
debug.color = createDebug.selectColor(namespace);
|
|
225
|
-
debug.extend = extend;
|
|
226
|
-
debug.destroy = createDebug.destroy;
|
|
227
|
-
Object.defineProperty(debug, "enabled", {
|
|
228
|
-
enumerable: true,
|
|
229
|
-
configurable: false,
|
|
230
|
-
get: () => {
|
|
231
|
-
if (enableOverride !== null) {
|
|
232
|
-
return enableOverride;
|
|
233
|
-
}
|
|
234
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
235
|
-
namespacesCache = createDebug.namespaces;
|
|
236
|
-
enabledCache = createDebug.enabled(namespace);
|
|
237
|
-
}
|
|
238
|
-
return enabledCache;
|
|
239
|
-
},
|
|
240
|
-
set: (v) => {
|
|
241
|
-
enableOverride = v;
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
if (typeof createDebug.init === "function") {
|
|
245
|
-
createDebug.init(debug);
|
|
246
|
-
}
|
|
247
|
-
return debug;
|
|
248
|
-
}
|
|
249
|
-
function extend(namespace, delimiter) {
|
|
250
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
251
|
-
newDebug.log = this.log;
|
|
252
|
-
return newDebug;
|
|
253
|
-
}
|
|
254
|
-
function enable(namespaces) {
|
|
255
|
-
createDebug.save(namespaces);
|
|
256
|
-
createDebug.namespaces = namespaces;
|
|
257
|
-
createDebug.names = [];
|
|
258
|
-
createDebug.skips = [];
|
|
259
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
260
|
-
for (const ns of split) {
|
|
261
|
-
if (ns[0] === "-") {
|
|
262
|
-
createDebug.skips.push(ns.slice(1));
|
|
263
|
-
} else {
|
|
264
|
-
createDebug.names.push(ns);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
function matchesTemplate(search, template) {
|
|
269
|
-
let searchIndex = 0;
|
|
270
|
-
let templateIndex = 0;
|
|
271
|
-
let starIndex = -1;
|
|
272
|
-
let matchIndex = 0;
|
|
273
|
-
while (searchIndex < search.length) {
|
|
274
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
275
|
-
if (template[templateIndex] === "*") {
|
|
276
|
-
starIndex = templateIndex;
|
|
277
|
-
matchIndex = searchIndex;
|
|
278
|
-
templateIndex++;
|
|
279
|
-
} else {
|
|
280
|
-
searchIndex++;
|
|
281
|
-
templateIndex++;
|
|
282
|
-
}
|
|
283
|
-
} else if (starIndex !== -1) {
|
|
284
|
-
templateIndex = starIndex + 1;
|
|
285
|
-
matchIndex++;
|
|
286
|
-
searchIndex = matchIndex;
|
|
287
|
-
} else {
|
|
288
|
-
return false;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
292
|
-
templateIndex++;
|
|
293
|
-
}
|
|
294
|
-
return templateIndex === template.length;
|
|
295
|
-
}
|
|
296
|
-
function disable() {
|
|
297
|
-
const namespaces = [
|
|
298
|
-
...createDebug.names,
|
|
299
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
300
|
-
].join(",");
|
|
301
|
-
createDebug.enable("");
|
|
302
|
-
return namespaces;
|
|
303
|
-
}
|
|
304
|
-
function enabled(name) {
|
|
305
|
-
for (const skip of createDebug.skips) {
|
|
306
|
-
if (matchesTemplate(name, skip)) {
|
|
307
|
-
return false;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
for (const ns of createDebug.names) {
|
|
311
|
-
if (matchesTemplate(name, ns)) {
|
|
312
|
-
return true;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
return false;
|
|
316
|
-
}
|
|
317
|
-
function coerce(val) {
|
|
318
|
-
if (val instanceof Error) {
|
|
319
|
-
return val.stack || val.message;
|
|
320
|
-
}
|
|
321
|
-
return val;
|
|
322
|
-
}
|
|
323
|
-
function destroy() {
|
|
324
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
325
|
-
}
|
|
326
|
-
createDebug.enable(createDebug.load());
|
|
327
|
-
return createDebug;
|
|
328
|
-
}
|
|
329
|
-
module2.exports = setup;
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
333
|
-
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js"(exports, module2) {
|
|
334
|
-
"use strict";
|
|
335
|
-
exports.formatArgs = formatArgs;
|
|
336
|
-
exports.save = save;
|
|
337
|
-
exports.load = load;
|
|
338
|
-
exports.useColors = useColors;
|
|
339
|
-
exports.storage = localstorage();
|
|
340
|
-
exports.destroy = /* @__PURE__ */ (() => {
|
|
341
|
-
let warned = false;
|
|
342
|
-
return () => {
|
|
343
|
-
if (!warned) {
|
|
344
|
-
warned = true;
|
|
345
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
})();
|
|
349
|
-
exports.colors = [
|
|
350
|
-
"#0000CC",
|
|
351
|
-
"#0000FF",
|
|
352
|
-
"#0033CC",
|
|
353
|
-
"#0033FF",
|
|
354
|
-
"#0066CC",
|
|
355
|
-
"#0066FF",
|
|
356
|
-
"#0099CC",
|
|
357
|
-
"#0099FF",
|
|
358
|
-
"#00CC00",
|
|
359
|
-
"#00CC33",
|
|
360
|
-
"#00CC66",
|
|
361
|
-
"#00CC99",
|
|
362
|
-
"#00CCCC",
|
|
363
|
-
"#00CCFF",
|
|
364
|
-
"#3300CC",
|
|
365
|
-
"#3300FF",
|
|
366
|
-
"#3333CC",
|
|
367
|
-
"#3333FF",
|
|
368
|
-
"#3366CC",
|
|
369
|
-
"#3366FF",
|
|
370
|
-
"#3399CC",
|
|
371
|
-
"#3399FF",
|
|
372
|
-
"#33CC00",
|
|
373
|
-
"#33CC33",
|
|
374
|
-
"#33CC66",
|
|
375
|
-
"#33CC99",
|
|
376
|
-
"#33CCCC",
|
|
377
|
-
"#33CCFF",
|
|
378
|
-
"#6600CC",
|
|
379
|
-
"#6600FF",
|
|
380
|
-
"#6633CC",
|
|
381
|
-
"#6633FF",
|
|
382
|
-
"#66CC00",
|
|
383
|
-
"#66CC33",
|
|
384
|
-
"#9900CC",
|
|
385
|
-
"#9900FF",
|
|
386
|
-
"#9933CC",
|
|
387
|
-
"#9933FF",
|
|
388
|
-
"#99CC00",
|
|
389
|
-
"#99CC33",
|
|
390
|
-
"#CC0000",
|
|
391
|
-
"#CC0033",
|
|
392
|
-
"#CC0066",
|
|
393
|
-
"#CC0099",
|
|
394
|
-
"#CC00CC",
|
|
395
|
-
"#CC00FF",
|
|
396
|
-
"#CC3300",
|
|
397
|
-
"#CC3333",
|
|
398
|
-
"#CC3366",
|
|
399
|
-
"#CC3399",
|
|
400
|
-
"#CC33CC",
|
|
401
|
-
"#CC33FF",
|
|
402
|
-
"#CC6600",
|
|
403
|
-
"#CC6633",
|
|
404
|
-
"#CC9900",
|
|
405
|
-
"#CC9933",
|
|
406
|
-
"#CCCC00",
|
|
407
|
-
"#CCCC33",
|
|
408
|
-
"#FF0000",
|
|
409
|
-
"#FF0033",
|
|
410
|
-
"#FF0066",
|
|
411
|
-
"#FF0099",
|
|
412
|
-
"#FF00CC",
|
|
413
|
-
"#FF00FF",
|
|
414
|
-
"#FF3300",
|
|
415
|
-
"#FF3333",
|
|
416
|
-
"#FF3366",
|
|
417
|
-
"#FF3399",
|
|
418
|
-
"#FF33CC",
|
|
419
|
-
"#FF33FF",
|
|
420
|
-
"#FF6600",
|
|
421
|
-
"#FF6633",
|
|
422
|
-
"#FF9900",
|
|
423
|
-
"#FF9933",
|
|
424
|
-
"#FFCC00",
|
|
425
|
-
"#FFCC33"
|
|
426
|
-
];
|
|
427
|
-
function useColors() {
|
|
428
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
429
|
-
return true;
|
|
430
|
-
}
|
|
431
|
-
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
432
|
-
return false;
|
|
433
|
-
}
|
|
434
|
-
let m;
|
|
435
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
436
|
-
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
437
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
438
|
-
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
439
|
-
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
440
|
-
}
|
|
441
|
-
function formatArgs(args) {
|
|
442
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
443
|
-
if (!this.useColors) {
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
const c = "color: " + this.color;
|
|
447
|
-
args.splice(1, 0, c, "color: inherit");
|
|
448
|
-
let index = 0;
|
|
449
|
-
let lastC = 0;
|
|
450
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
451
|
-
if (match === "%%") {
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
index++;
|
|
455
|
-
if (match === "%c") {
|
|
456
|
-
lastC = index;
|
|
457
|
-
}
|
|
458
|
-
});
|
|
459
|
-
args.splice(lastC, 0, c);
|
|
460
|
-
}
|
|
461
|
-
exports.log = console.debug || console.log || (() => {
|
|
462
|
-
});
|
|
463
|
-
function save(namespaces) {
|
|
464
|
-
try {
|
|
465
|
-
if (namespaces) {
|
|
466
|
-
exports.storage.setItem("debug", namespaces);
|
|
467
|
-
} else {
|
|
468
|
-
exports.storage.removeItem("debug");
|
|
469
|
-
}
|
|
470
|
-
} catch (error) {
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
function load() {
|
|
474
|
-
let r;
|
|
475
|
-
try {
|
|
476
|
-
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
477
|
-
} catch (error) {
|
|
478
|
-
}
|
|
479
|
-
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
480
|
-
r = process.env.DEBUG;
|
|
481
|
-
}
|
|
482
|
-
return r;
|
|
483
|
-
}
|
|
484
|
-
function localstorage() {
|
|
485
|
-
try {
|
|
486
|
-
return localStorage;
|
|
487
|
-
} catch (error) {
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
module2.exports = require_common()(exports);
|
|
491
|
-
var { formatters } = module2.exports;
|
|
492
|
-
formatters.j = function(v) {
|
|
493
|
-
try {
|
|
494
|
-
return JSON.stringify(v);
|
|
495
|
-
} catch (error) {
|
|
496
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
});
|
|
501
|
-
var supports_color_exports = {};
|
|
502
|
-
(0, import_chunk_2ESYSVXG.__export)(supports_color_exports, {
|
|
503
|
-
createSupportsColor: () => createSupportsColor,
|
|
504
|
-
default: () => supports_color_default
|
|
505
|
-
});
|
|
506
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
507
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
508
|
-
const position = argv.indexOf(prefix + flag);
|
|
509
|
-
const terminatorPosition = argv.indexOf("--");
|
|
510
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
511
|
-
}
|
|
512
|
-
function envForceColor() {
|
|
513
|
-
if (!("FORCE_COLOR" in env)) {
|
|
514
|
-
return;
|
|
515
|
-
}
|
|
516
|
-
if (env.FORCE_COLOR === "true") {
|
|
517
|
-
return 1;
|
|
518
|
-
}
|
|
519
|
-
if (env.FORCE_COLOR === "false") {
|
|
520
|
-
return 0;
|
|
521
|
-
}
|
|
522
|
-
if (env.FORCE_COLOR.length === 0) {
|
|
523
|
-
return 1;
|
|
524
|
-
}
|
|
525
|
-
const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
526
|
-
if (![0, 1, 2, 3].includes(level)) {
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
return level;
|
|
530
|
-
}
|
|
531
|
-
function translateLevel(level) {
|
|
532
|
-
if (level === 0) {
|
|
533
|
-
return false;
|
|
534
|
-
}
|
|
535
|
-
return {
|
|
536
|
-
level,
|
|
537
|
-
hasBasic: true,
|
|
538
|
-
has256: level >= 2,
|
|
539
|
-
has16m: level >= 3
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
543
|
-
const noFlagForceColor = envForceColor();
|
|
544
|
-
if (noFlagForceColor !== void 0) {
|
|
545
|
-
flagForceColor = noFlagForceColor;
|
|
546
|
-
}
|
|
547
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
548
|
-
if (forceColor === 0) {
|
|
549
|
-
return 0;
|
|
550
|
-
}
|
|
551
|
-
if (sniffFlags) {
|
|
552
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
553
|
-
return 3;
|
|
554
|
-
}
|
|
555
|
-
if (hasFlag("color=256")) {
|
|
556
|
-
return 2;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
560
|
-
return 1;
|
|
561
|
-
}
|
|
562
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
563
|
-
return 0;
|
|
564
|
-
}
|
|
565
|
-
const min = forceColor || 0;
|
|
566
|
-
if (env.TERM === "dumb") {
|
|
567
|
-
return min;
|
|
568
|
-
}
|
|
569
|
-
if (import_node_process.default.platform === "win32") {
|
|
570
|
-
const osRelease = import_node_os.default.release().split(".");
|
|
571
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
572
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
573
|
-
}
|
|
574
|
-
return 1;
|
|
575
|
-
}
|
|
576
|
-
if ("CI" in env) {
|
|
577
|
-
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
|
578
|
-
return 3;
|
|
579
|
-
}
|
|
580
|
-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
581
|
-
return 1;
|
|
582
|
-
}
|
|
583
|
-
return min;
|
|
584
|
-
}
|
|
585
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
586
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
587
|
-
}
|
|
588
|
-
if (env.COLORTERM === "truecolor") {
|
|
589
|
-
return 3;
|
|
590
|
-
}
|
|
591
|
-
if (env.TERM === "xterm-kitty") {
|
|
592
|
-
return 3;
|
|
593
|
-
}
|
|
594
|
-
if (env.TERM === "xterm-ghostty") {
|
|
595
|
-
return 3;
|
|
596
|
-
}
|
|
597
|
-
if (env.TERM === "wezterm") {
|
|
598
|
-
return 3;
|
|
599
|
-
}
|
|
600
|
-
if ("TERM_PROGRAM" in env) {
|
|
601
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
602
|
-
switch (env.TERM_PROGRAM) {
|
|
603
|
-
case "iTerm.app": {
|
|
604
|
-
return version >= 3 ? 3 : 2;
|
|
605
|
-
}
|
|
606
|
-
case "Apple_Terminal": {
|
|
607
|
-
return 2;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
612
|
-
return 2;
|
|
613
|
-
}
|
|
614
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
615
|
-
return 1;
|
|
616
|
-
}
|
|
617
|
-
if ("COLORTERM" in env) {
|
|
618
|
-
return 1;
|
|
619
|
-
}
|
|
620
|
-
return min;
|
|
621
|
-
}
|
|
622
|
-
function createSupportsColor(stream, options = {}) {
|
|
623
|
-
const level = _supportsColor(stream, {
|
|
624
|
-
streamIsTTY: stream && stream.isTTY,
|
|
625
|
-
...options
|
|
626
|
-
});
|
|
627
|
-
return translateLevel(level);
|
|
628
|
-
}
|
|
629
|
-
var env, flagForceColor, supportsColor, supports_color_default;
|
|
630
|
-
var init_supports_color = (0, import_chunk_2ESYSVXG.__esm)({
|
|
631
|
-
"../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js"() {
|
|
632
|
-
"use strict";
|
|
633
|
-
({ env } = import_node_process.default);
|
|
634
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
635
|
-
flagForceColor = 0;
|
|
636
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
637
|
-
flagForceColor = 1;
|
|
638
|
-
}
|
|
639
|
-
supportsColor = {
|
|
640
|
-
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
641
|
-
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
642
|
-
};
|
|
643
|
-
supports_color_default = supportsColor;
|
|
644
|
-
}
|
|
645
|
-
});
|
|
646
|
-
var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
647
|
-
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js"(exports, module2) {
|
|
648
|
-
"use strict";
|
|
649
|
-
var tty2 = (0, import_chunk_2ESYSVXG.__require)("tty");
|
|
650
|
-
var util = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
651
|
-
exports.init = init;
|
|
652
|
-
exports.log = log;
|
|
653
|
-
exports.formatArgs = formatArgs;
|
|
654
|
-
exports.save = save;
|
|
655
|
-
exports.load = load;
|
|
656
|
-
exports.useColors = useColors;
|
|
657
|
-
exports.destroy = util.deprecate(
|
|
658
|
-
() => {
|
|
659
|
-
},
|
|
660
|
-
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
661
|
-
);
|
|
662
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
663
|
-
try {
|
|
664
|
-
const supportsColor2 = (init_supports_color(), (0, import_chunk_2ESYSVXG.__toCommonJS)(supports_color_exports));
|
|
665
|
-
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
666
|
-
exports.colors = [
|
|
667
|
-
20,
|
|
668
|
-
21,
|
|
669
|
-
26,
|
|
670
|
-
27,
|
|
671
|
-
32,
|
|
672
|
-
33,
|
|
673
|
-
38,
|
|
674
|
-
39,
|
|
675
|
-
40,
|
|
676
|
-
41,
|
|
677
|
-
42,
|
|
678
|
-
43,
|
|
679
|
-
44,
|
|
680
|
-
45,
|
|
681
|
-
56,
|
|
682
|
-
57,
|
|
683
|
-
62,
|
|
684
|
-
63,
|
|
685
|
-
68,
|
|
686
|
-
69,
|
|
687
|
-
74,
|
|
688
|
-
75,
|
|
689
|
-
76,
|
|
690
|
-
77,
|
|
691
|
-
78,
|
|
692
|
-
79,
|
|
693
|
-
80,
|
|
694
|
-
81,
|
|
695
|
-
92,
|
|
696
|
-
93,
|
|
697
|
-
98,
|
|
698
|
-
99,
|
|
699
|
-
112,
|
|
700
|
-
113,
|
|
701
|
-
128,
|
|
702
|
-
129,
|
|
703
|
-
134,
|
|
704
|
-
135,
|
|
705
|
-
148,
|
|
706
|
-
149,
|
|
707
|
-
160,
|
|
708
|
-
161,
|
|
709
|
-
162,
|
|
710
|
-
163,
|
|
711
|
-
164,
|
|
712
|
-
165,
|
|
713
|
-
166,
|
|
714
|
-
167,
|
|
715
|
-
168,
|
|
716
|
-
169,
|
|
717
|
-
170,
|
|
718
|
-
171,
|
|
719
|
-
172,
|
|
720
|
-
173,
|
|
721
|
-
178,
|
|
722
|
-
179,
|
|
723
|
-
184,
|
|
724
|
-
185,
|
|
725
|
-
196,
|
|
726
|
-
197,
|
|
727
|
-
198,
|
|
728
|
-
199,
|
|
729
|
-
200,
|
|
730
|
-
201,
|
|
731
|
-
202,
|
|
732
|
-
203,
|
|
733
|
-
204,
|
|
734
|
-
205,
|
|
735
|
-
206,
|
|
736
|
-
207,
|
|
737
|
-
208,
|
|
738
|
-
209,
|
|
739
|
-
214,
|
|
740
|
-
215,
|
|
741
|
-
220,
|
|
742
|
-
221
|
|
743
|
-
];
|
|
744
|
-
}
|
|
745
|
-
} catch (error) {
|
|
746
|
-
}
|
|
747
|
-
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
748
|
-
return /^debug_/i.test(key);
|
|
749
|
-
}).reduce((obj, key) => {
|
|
750
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
751
|
-
return k.toUpperCase();
|
|
752
|
-
});
|
|
753
|
-
let val = process.env[key];
|
|
754
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
755
|
-
val = true;
|
|
756
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
757
|
-
val = false;
|
|
758
|
-
} else if (val === "null") {
|
|
759
|
-
val = null;
|
|
760
|
-
} else {
|
|
761
|
-
val = Number(val);
|
|
762
|
-
}
|
|
763
|
-
obj[prop] = val;
|
|
764
|
-
return obj;
|
|
765
|
-
}, {});
|
|
766
|
-
function useColors() {
|
|
767
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
768
|
-
}
|
|
769
|
-
function formatArgs(args) {
|
|
770
|
-
const { namespace: name, useColors: useColors2 } = this;
|
|
771
|
-
if (useColors2) {
|
|
772
|
-
const c = this.color;
|
|
773
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
774
|
-
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
775
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
776
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
777
|
-
} else {
|
|
778
|
-
args[0] = getDate() + name + " " + args[0];
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
function getDate() {
|
|
782
|
-
if (exports.inspectOpts.hideDate) {
|
|
783
|
-
return "";
|
|
784
|
-
}
|
|
785
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
786
|
-
}
|
|
787
|
-
function log(...args) {
|
|
788
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
789
|
-
}
|
|
790
|
-
function save(namespaces) {
|
|
791
|
-
if (namespaces) {
|
|
792
|
-
process.env.DEBUG = namespaces;
|
|
793
|
-
} else {
|
|
794
|
-
delete process.env.DEBUG;
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
function load() {
|
|
798
|
-
return process.env.DEBUG;
|
|
799
|
-
}
|
|
800
|
-
function init(debug) {
|
|
801
|
-
debug.inspectOpts = {};
|
|
802
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
803
|
-
for (let i = 0; i < keys.length; i++) {
|
|
804
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
module2.exports = require_common()(exports);
|
|
808
|
-
var { formatters } = module2.exports;
|
|
809
|
-
formatters.o = function(v) {
|
|
810
|
-
this.inspectOpts.colors = this.useColors;
|
|
811
|
-
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
812
|
-
};
|
|
813
|
-
formatters.O = function(v) {
|
|
814
|
-
this.inspectOpts.colors = this.useColors;
|
|
815
|
-
return util.inspect(v, this.inspectOpts);
|
|
816
|
-
};
|
|
817
|
-
}
|
|
818
|
-
});
|
|
819
|
-
var require_src = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
820
|
-
"../../node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js"(exports, module2) {
|
|
821
|
-
"use strict";
|
|
822
|
-
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
823
|
-
module2.exports = require_browser();
|
|
824
|
-
} else {
|
|
825
|
-
module2.exports = require_node();
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
});
|