@prisma/migrate 6.18.0-dev.11 → 6.18.0-dev.12
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 +3 -3
- package/dist/{chunk-H5CDIF7X.js → chunk-IVZSWYCG.js} +55 -31
- package/dist/chunk-Y5WDJ6P7.js +263 -0
- package/dist/commands/MigrateDiff.js +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/setupMSSQL.js +779 -775
- package/dist/utils/setupMongo.js +692 -164
- package/package.json +11 -11
- package/dist/chunk-OP2BDF75.js +0 -792
package/dist/utils/setupMSSQL.js
CHANGED
|
@@ -32,7 +32,7 @@ __export(setupMSSQL_exports, {
|
|
|
32
32
|
tearDownMSSQL: () => tearDownMSSQL
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(setupMSSQL_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_chunk_Y5WDJ6P7 = require("../chunk-Y5WDJ6P7.js");
|
|
36
36
|
var import_chunk_5R44VVVX = require("../chunk-5R44VVVX.js");
|
|
37
37
|
var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
|
|
38
38
|
var import_util = __toESM(require("util"));
|
|
@@ -69,6 +69,534 @@ var import_fs3 = require("fs");
|
|
|
69
69
|
var import_fs4 = __toESM(require("fs"));
|
|
70
70
|
var import_path3 = __toESM(require("path"));
|
|
71
71
|
var import_url = require("url");
|
|
72
|
+
var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
73
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
74
|
+
"use strict";
|
|
75
|
+
function setup(env) {
|
|
76
|
+
createDebug.debug = createDebug;
|
|
77
|
+
createDebug.default = createDebug;
|
|
78
|
+
createDebug.coerce = coerce;
|
|
79
|
+
createDebug.disable = disable2;
|
|
80
|
+
createDebug.enable = enable2;
|
|
81
|
+
createDebug.enabled = enabled2;
|
|
82
|
+
createDebug.humanize = (0, import_chunk_Y5WDJ6P7.require_ms)();
|
|
83
|
+
createDebug.destroy = destroy2;
|
|
84
|
+
Object.keys(env).forEach((key) => {
|
|
85
|
+
createDebug[key] = env[key];
|
|
86
|
+
});
|
|
87
|
+
createDebug.names = [];
|
|
88
|
+
createDebug.skips = [];
|
|
89
|
+
createDebug.formatters = {};
|
|
90
|
+
function selectColor(namespace) {
|
|
91
|
+
let hash = 0;
|
|
92
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
93
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
94
|
+
hash |= 0;
|
|
95
|
+
}
|
|
96
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
97
|
+
}
|
|
98
|
+
createDebug.selectColor = selectColor;
|
|
99
|
+
function createDebug(namespace) {
|
|
100
|
+
let prevTime;
|
|
101
|
+
let enableOverride = null;
|
|
102
|
+
let namespacesCache;
|
|
103
|
+
let enabledCache;
|
|
104
|
+
function debug(...args) {
|
|
105
|
+
if (!debug.enabled) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const self2 = debug;
|
|
109
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
110
|
+
const ms = curr - (prevTime || curr);
|
|
111
|
+
self2.diff = ms;
|
|
112
|
+
self2.prev = prevTime;
|
|
113
|
+
self2.curr = curr;
|
|
114
|
+
prevTime = curr;
|
|
115
|
+
args[0] = createDebug.coerce(args[0]);
|
|
116
|
+
if (typeof args[0] !== "string") {
|
|
117
|
+
args.unshift("%O");
|
|
118
|
+
}
|
|
119
|
+
let index = 0;
|
|
120
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
121
|
+
if (match === "%%") {
|
|
122
|
+
return "%";
|
|
123
|
+
}
|
|
124
|
+
index++;
|
|
125
|
+
const formatter = createDebug.formatters[format];
|
|
126
|
+
if (typeof formatter === "function") {
|
|
127
|
+
const val = args[index];
|
|
128
|
+
match = formatter.call(self2, val);
|
|
129
|
+
args.splice(index, 1);
|
|
130
|
+
index--;
|
|
131
|
+
}
|
|
132
|
+
return match;
|
|
133
|
+
});
|
|
134
|
+
createDebug.formatArgs.call(self2, args);
|
|
135
|
+
const logFn = self2.log || createDebug.log;
|
|
136
|
+
logFn.apply(self2, args);
|
|
137
|
+
}
|
|
138
|
+
debug.namespace = namespace;
|
|
139
|
+
debug.useColors = createDebug.useColors();
|
|
140
|
+
debug.color = createDebug.selectColor(namespace);
|
|
141
|
+
debug.extend = extend2;
|
|
142
|
+
debug.destroy = createDebug.destroy;
|
|
143
|
+
Object.defineProperty(debug, "enabled", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
configurable: false,
|
|
146
|
+
get: () => {
|
|
147
|
+
if (enableOverride !== null) {
|
|
148
|
+
return enableOverride;
|
|
149
|
+
}
|
|
150
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
151
|
+
namespacesCache = createDebug.namespaces;
|
|
152
|
+
enabledCache = createDebug.enabled(namespace);
|
|
153
|
+
}
|
|
154
|
+
return enabledCache;
|
|
155
|
+
},
|
|
156
|
+
set: (v) => {
|
|
157
|
+
enableOverride = v;
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
if (typeof createDebug.init === "function") {
|
|
161
|
+
createDebug.init(debug);
|
|
162
|
+
}
|
|
163
|
+
return debug;
|
|
164
|
+
}
|
|
165
|
+
function extend2(namespace, delimiter) {
|
|
166
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
167
|
+
newDebug.log = this.log;
|
|
168
|
+
return newDebug;
|
|
169
|
+
}
|
|
170
|
+
function enable2(namespaces) {
|
|
171
|
+
createDebug.save(namespaces);
|
|
172
|
+
createDebug.namespaces = namespaces;
|
|
173
|
+
createDebug.names = [];
|
|
174
|
+
createDebug.skips = [];
|
|
175
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
176
|
+
for (const ns of split) {
|
|
177
|
+
if (ns[0] === "-") {
|
|
178
|
+
createDebug.skips.push(ns.slice(1));
|
|
179
|
+
} else {
|
|
180
|
+
createDebug.names.push(ns);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function matchesTemplate(search, template) {
|
|
185
|
+
let searchIndex = 0;
|
|
186
|
+
let templateIndex = 0;
|
|
187
|
+
let starIndex = -1;
|
|
188
|
+
let matchIndex = 0;
|
|
189
|
+
while (searchIndex < search.length) {
|
|
190
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
191
|
+
if (template[templateIndex] === "*") {
|
|
192
|
+
starIndex = templateIndex;
|
|
193
|
+
matchIndex = searchIndex;
|
|
194
|
+
templateIndex++;
|
|
195
|
+
} else {
|
|
196
|
+
searchIndex++;
|
|
197
|
+
templateIndex++;
|
|
198
|
+
}
|
|
199
|
+
} else if (starIndex !== -1) {
|
|
200
|
+
templateIndex = starIndex + 1;
|
|
201
|
+
matchIndex++;
|
|
202
|
+
searchIndex = matchIndex;
|
|
203
|
+
} else {
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
208
|
+
templateIndex++;
|
|
209
|
+
}
|
|
210
|
+
return templateIndex === template.length;
|
|
211
|
+
}
|
|
212
|
+
function disable2() {
|
|
213
|
+
const namespaces = [
|
|
214
|
+
...createDebug.names,
|
|
215
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
216
|
+
].join(",");
|
|
217
|
+
createDebug.enable("");
|
|
218
|
+
return namespaces;
|
|
219
|
+
}
|
|
220
|
+
function enabled2(name3) {
|
|
221
|
+
for (const skip of createDebug.skips) {
|
|
222
|
+
if (matchesTemplate(name3, skip)) {
|
|
223
|
+
return false;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
for (const ns of createDebug.names) {
|
|
227
|
+
if (matchesTemplate(name3, ns)) {
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
233
|
+
function coerce(val) {
|
|
234
|
+
if (val instanceof Error) {
|
|
235
|
+
return val.stack || val.message;
|
|
236
|
+
}
|
|
237
|
+
return val;
|
|
238
|
+
}
|
|
239
|
+
function destroy2() {
|
|
240
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
241
|
+
}
|
|
242
|
+
createDebug.enable(createDebug.load());
|
|
243
|
+
return createDebug;
|
|
244
|
+
}
|
|
245
|
+
module2.exports = setup;
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
249
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
250
|
+
"use strict";
|
|
251
|
+
exports.formatArgs = formatArgs;
|
|
252
|
+
exports.save = save;
|
|
253
|
+
exports.load = load;
|
|
254
|
+
exports.useColors = useColors;
|
|
255
|
+
exports.storage = localstorage();
|
|
256
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
257
|
+
let warned = false;
|
|
258
|
+
return () => {
|
|
259
|
+
if (!warned) {
|
|
260
|
+
warned = true;
|
|
261
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
})();
|
|
265
|
+
exports.colors = [
|
|
266
|
+
"#0000CC",
|
|
267
|
+
"#0000FF",
|
|
268
|
+
"#0033CC",
|
|
269
|
+
"#0033FF",
|
|
270
|
+
"#0066CC",
|
|
271
|
+
"#0066FF",
|
|
272
|
+
"#0099CC",
|
|
273
|
+
"#0099FF",
|
|
274
|
+
"#00CC00",
|
|
275
|
+
"#00CC33",
|
|
276
|
+
"#00CC66",
|
|
277
|
+
"#00CC99",
|
|
278
|
+
"#00CCCC",
|
|
279
|
+
"#00CCFF",
|
|
280
|
+
"#3300CC",
|
|
281
|
+
"#3300FF",
|
|
282
|
+
"#3333CC",
|
|
283
|
+
"#3333FF",
|
|
284
|
+
"#3366CC",
|
|
285
|
+
"#3366FF",
|
|
286
|
+
"#3399CC",
|
|
287
|
+
"#3399FF",
|
|
288
|
+
"#33CC00",
|
|
289
|
+
"#33CC33",
|
|
290
|
+
"#33CC66",
|
|
291
|
+
"#33CC99",
|
|
292
|
+
"#33CCCC",
|
|
293
|
+
"#33CCFF",
|
|
294
|
+
"#6600CC",
|
|
295
|
+
"#6600FF",
|
|
296
|
+
"#6633CC",
|
|
297
|
+
"#6633FF",
|
|
298
|
+
"#66CC00",
|
|
299
|
+
"#66CC33",
|
|
300
|
+
"#9900CC",
|
|
301
|
+
"#9900FF",
|
|
302
|
+
"#9933CC",
|
|
303
|
+
"#9933FF",
|
|
304
|
+
"#99CC00",
|
|
305
|
+
"#99CC33",
|
|
306
|
+
"#CC0000",
|
|
307
|
+
"#CC0033",
|
|
308
|
+
"#CC0066",
|
|
309
|
+
"#CC0099",
|
|
310
|
+
"#CC00CC",
|
|
311
|
+
"#CC00FF",
|
|
312
|
+
"#CC3300",
|
|
313
|
+
"#CC3333",
|
|
314
|
+
"#CC3366",
|
|
315
|
+
"#CC3399",
|
|
316
|
+
"#CC33CC",
|
|
317
|
+
"#CC33FF",
|
|
318
|
+
"#CC6600",
|
|
319
|
+
"#CC6633",
|
|
320
|
+
"#CC9900",
|
|
321
|
+
"#CC9933",
|
|
322
|
+
"#CCCC00",
|
|
323
|
+
"#CCCC33",
|
|
324
|
+
"#FF0000",
|
|
325
|
+
"#FF0033",
|
|
326
|
+
"#FF0066",
|
|
327
|
+
"#FF0099",
|
|
328
|
+
"#FF00CC",
|
|
329
|
+
"#FF00FF",
|
|
330
|
+
"#FF3300",
|
|
331
|
+
"#FF3333",
|
|
332
|
+
"#FF3366",
|
|
333
|
+
"#FF3399",
|
|
334
|
+
"#FF33CC",
|
|
335
|
+
"#FF33FF",
|
|
336
|
+
"#FF6600",
|
|
337
|
+
"#FF6633",
|
|
338
|
+
"#FF9900",
|
|
339
|
+
"#FF9933",
|
|
340
|
+
"#FFCC00",
|
|
341
|
+
"#FFCC33"
|
|
342
|
+
];
|
|
343
|
+
function useColors() {
|
|
344
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
345
|
+
return true;
|
|
346
|
+
}
|
|
347
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
let m;
|
|
351
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
352
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
353
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
354
|
+
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
|
|
355
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
356
|
+
}
|
|
357
|
+
function formatArgs(args) {
|
|
358
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
359
|
+
if (!this.useColors) {
|
|
360
|
+
return;
|
|
361
|
+
}
|
|
362
|
+
const c = "color: " + this.color;
|
|
363
|
+
args.splice(1, 0, c, "color: inherit");
|
|
364
|
+
let index = 0;
|
|
365
|
+
let lastC = 0;
|
|
366
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
367
|
+
if (match === "%%") {
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
index++;
|
|
371
|
+
if (match === "%c") {
|
|
372
|
+
lastC = index;
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
args.splice(lastC, 0, c);
|
|
376
|
+
}
|
|
377
|
+
exports.log = console.debug || console.log || (() => {
|
|
378
|
+
});
|
|
379
|
+
function save(namespaces) {
|
|
380
|
+
try {
|
|
381
|
+
if (namespaces) {
|
|
382
|
+
exports.storage.setItem("debug", namespaces);
|
|
383
|
+
} else {
|
|
384
|
+
exports.storage.removeItem("debug");
|
|
385
|
+
}
|
|
386
|
+
} catch (error) {
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function load() {
|
|
390
|
+
let r;
|
|
391
|
+
try {
|
|
392
|
+
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
393
|
+
} catch (error) {
|
|
394
|
+
}
|
|
395
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
396
|
+
r = process.env.DEBUG;
|
|
397
|
+
}
|
|
398
|
+
return r;
|
|
399
|
+
}
|
|
400
|
+
function localstorage() {
|
|
401
|
+
try {
|
|
402
|
+
return localStorage;
|
|
403
|
+
} catch (error) {
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
module2.exports = require_common()(exports);
|
|
407
|
+
var { formatters } = module2.exports;
|
|
408
|
+
formatters.j = function(v) {
|
|
409
|
+
try {
|
|
410
|
+
return JSON.stringify(v);
|
|
411
|
+
} catch (error) {
|
|
412
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
var require_node = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
418
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports, module2) {
|
|
419
|
+
"use strict";
|
|
420
|
+
var tty = (0, import_chunk_2ESYSVXG.__require)("tty");
|
|
421
|
+
var util2 = (0, import_chunk_2ESYSVXG.__require)("util");
|
|
422
|
+
exports.init = init2;
|
|
423
|
+
exports.log = log2;
|
|
424
|
+
exports.formatArgs = formatArgs;
|
|
425
|
+
exports.save = save;
|
|
426
|
+
exports.load = load;
|
|
427
|
+
exports.useColors = useColors;
|
|
428
|
+
exports.destroy = util2.deprecate(
|
|
429
|
+
() => {
|
|
430
|
+
},
|
|
431
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
432
|
+
);
|
|
433
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
434
|
+
try {
|
|
435
|
+
const supportsColor = (0, import_chunk_Y5WDJ6P7.require_supports_color)();
|
|
436
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
437
|
+
exports.colors = [
|
|
438
|
+
20,
|
|
439
|
+
21,
|
|
440
|
+
26,
|
|
441
|
+
27,
|
|
442
|
+
32,
|
|
443
|
+
33,
|
|
444
|
+
38,
|
|
445
|
+
39,
|
|
446
|
+
40,
|
|
447
|
+
41,
|
|
448
|
+
42,
|
|
449
|
+
43,
|
|
450
|
+
44,
|
|
451
|
+
45,
|
|
452
|
+
56,
|
|
453
|
+
57,
|
|
454
|
+
62,
|
|
455
|
+
63,
|
|
456
|
+
68,
|
|
457
|
+
69,
|
|
458
|
+
74,
|
|
459
|
+
75,
|
|
460
|
+
76,
|
|
461
|
+
77,
|
|
462
|
+
78,
|
|
463
|
+
79,
|
|
464
|
+
80,
|
|
465
|
+
81,
|
|
466
|
+
92,
|
|
467
|
+
93,
|
|
468
|
+
98,
|
|
469
|
+
99,
|
|
470
|
+
112,
|
|
471
|
+
113,
|
|
472
|
+
128,
|
|
473
|
+
129,
|
|
474
|
+
134,
|
|
475
|
+
135,
|
|
476
|
+
148,
|
|
477
|
+
149,
|
|
478
|
+
160,
|
|
479
|
+
161,
|
|
480
|
+
162,
|
|
481
|
+
163,
|
|
482
|
+
164,
|
|
483
|
+
165,
|
|
484
|
+
166,
|
|
485
|
+
167,
|
|
486
|
+
168,
|
|
487
|
+
169,
|
|
488
|
+
170,
|
|
489
|
+
171,
|
|
490
|
+
172,
|
|
491
|
+
173,
|
|
492
|
+
178,
|
|
493
|
+
179,
|
|
494
|
+
184,
|
|
495
|
+
185,
|
|
496
|
+
196,
|
|
497
|
+
197,
|
|
498
|
+
198,
|
|
499
|
+
199,
|
|
500
|
+
200,
|
|
501
|
+
201,
|
|
502
|
+
202,
|
|
503
|
+
203,
|
|
504
|
+
204,
|
|
505
|
+
205,
|
|
506
|
+
206,
|
|
507
|
+
207,
|
|
508
|
+
208,
|
|
509
|
+
209,
|
|
510
|
+
214,
|
|
511
|
+
215,
|
|
512
|
+
220,
|
|
513
|
+
221
|
|
514
|
+
];
|
|
515
|
+
}
|
|
516
|
+
} catch (error) {
|
|
517
|
+
}
|
|
518
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
519
|
+
return /^debug_/i.test(key);
|
|
520
|
+
}).reduce((obj, key) => {
|
|
521
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_2, k) => {
|
|
522
|
+
return k.toUpperCase();
|
|
523
|
+
});
|
|
524
|
+
let val = process.env[key];
|
|
525
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
526
|
+
val = true;
|
|
527
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
528
|
+
val = false;
|
|
529
|
+
} else if (val === "null") {
|
|
530
|
+
val = null;
|
|
531
|
+
} else {
|
|
532
|
+
val = Number(val);
|
|
533
|
+
}
|
|
534
|
+
obj[prop] = val;
|
|
535
|
+
return obj;
|
|
536
|
+
}, {});
|
|
537
|
+
function useColors() {
|
|
538
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
539
|
+
}
|
|
540
|
+
function formatArgs(args) {
|
|
541
|
+
const { namespace: name3, useColors: useColors2 } = this;
|
|
542
|
+
if (useColors2) {
|
|
543
|
+
const c = this.color;
|
|
544
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
545
|
+
const prefix = ` ${colorCode};1m${name3} \x1B[0m`;
|
|
546
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
547
|
+
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
548
|
+
} else {
|
|
549
|
+
args[0] = getDate() + name3 + " " + args[0];
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
function getDate() {
|
|
553
|
+
if (exports.inspectOpts.hideDate) {
|
|
554
|
+
return "";
|
|
555
|
+
}
|
|
556
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
557
|
+
}
|
|
558
|
+
function log2(...args) {
|
|
559
|
+
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
560
|
+
}
|
|
561
|
+
function save(namespaces) {
|
|
562
|
+
if (namespaces) {
|
|
563
|
+
process.env.DEBUG = namespaces;
|
|
564
|
+
} else {
|
|
565
|
+
delete process.env.DEBUG;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
function load() {
|
|
569
|
+
return process.env.DEBUG;
|
|
570
|
+
}
|
|
571
|
+
function init2(debug) {
|
|
572
|
+
debug.inspectOpts = {};
|
|
573
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
574
|
+
for (let i = 0; i < keys.length; i++) {
|
|
575
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
module2.exports = require_common()(exports);
|
|
579
|
+
var { formatters } = module2.exports;
|
|
580
|
+
formatters.o = function(v) {
|
|
581
|
+
this.inspectOpts.colors = this.useColors;
|
|
582
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
583
|
+
};
|
|
584
|
+
formatters.O = function(v) {
|
|
585
|
+
this.inspectOpts.colors = this.useColors;
|
|
586
|
+
return util2.inspect(v, this.inspectOpts);
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
var require_src = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
591
|
+
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/index.js"(exports, module2) {
|
|
592
|
+
"use strict";
|
|
593
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
594
|
+
module2.exports = require_browser();
|
|
595
|
+
} else {
|
|
596
|
+
module2.exports = require_node();
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
});
|
|
72
600
|
var require_connection_string = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
73
601
|
"../../node_modules/.pnpm/@tediousjs+connection-string@0.5.0/node_modules/@tediousjs/connection-string/lib/parser/connection-string.js"(exports) {
|
|
74
602
|
"use strict";
|
|
@@ -1719,7 +2247,7 @@ var require_shared = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1719
2247
|
}
|
|
1720
2248
|
});
|
|
1721
2249
|
var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1722
|
-
"../../node_modules/.pnpm/rfdc@1.
|
|
2250
|
+
"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(exports, module2) {
|
|
1723
2251
|
"use strict";
|
|
1724
2252
|
module2.exports = rfdc;
|
|
1725
2253
|
function copyBuffer(cur) {
|
|
@@ -1731,17 +2259,27 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1731
2259
|
function rfdc(opts) {
|
|
1732
2260
|
opts = opts || {};
|
|
1733
2261
|
if (opts.circles) return rfdcCircles(opts);
|
|
2262
|
+
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
2263
|
+
constructorHandlers.set(Date, (o) => new Date(o));
|
|
2264
|
+
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
2265
|
+
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
|
|
2266
|
+
if (opts.constructorHandlers) {
|
|
2267
|
+
for (const handler2 of opts.constructorHandlers) {
|
|
2268
|
+
constructorHandlers.set(handler2[0], handler2[1]);
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
let handler = null;
|
|
1734
2272
|
return opts.proto ? cloneProto : clone;
|
|
1735
2273
|
function cloneArray(a, fn) {
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
for (
|
|
1739
|
-
|
|
1740
|
-
|
|
2274
|
+
const keys = Object.keys(a);
|
|
2275
|
+
const a2 = new Array(keys.length);
|
|
2276
|
+
for (let i = 0; i < keys.length; i++) {
|
|
2277
|
+
const k = keys[i];
|
|
2278
|
+
const cur = a[k];
|
|
1741
2279
|
if (typeof cur !== "object" || cur === null) {
|
|
1742
2280
|
a2[k] = cur;
|
|
1743
|
-
} else if (cur
|
|
1744
|
-
a2[k] =
|
|
2281
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
2282
|
+
a2[k] = handler(cur, fn);
|
|
1745
2283
|
} else if (ArrayBuffer.isView(cur)) {
|
|
1746
2284
|
a2[k] = copyBuffer(cur);
|
|
1747
2285
|
} else {
|
|
@@ -1752,22 +2290,18 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1752
2290
|
}
|
|
1753
2291
|
function clone(o) {
|
|
1754
2292
|
if (typeof o !== "object" || o === null) return o;
|
|
1755
|
-
if (o instanceof Date) return new Date(o);
|
|
1756
2293
|
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
1757
|
-
if (o
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
2294
|
+
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
2295
|
+
return handler(o, clone);
|
|
2296
|
+
}
|
|
2297
|
+
const o2 = {};
|
|
2298
|
+
for (const k in o) {
|
|
1761
2299
|
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
1762
|
-
|
|
2300
|
+
const cur = o[k];
|
|
1763
2301
|
if (typeof cur !== "object" || cur === null) {
|
|
1764
2302
|
o2[k] = cur;
|
|
1765
|
-
} else if (cur
|
|
1766
|
-
o2[k] =
|
|
1767
|
-
} else if (cur instanceof Map) {
|
|
1768
|
-
o2[k] = new Map(cloneArray(Array.from(cur), clone));
|
|
1769
|
-
} else if (cur instanceof Set) {
|
|
1770
|
-
o2[k] = new Set(cloneArray(Array.from(cur), clone));
|
|
2303
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
2304
|
+
o2[k] = handler(cur, clone);
|
|
1771
2305
|
} else if (ArrayBuffer.isView(cur)) {
|
|
1772
2306
|
o2[k] = copyBuffer(cur);
|
|
1773
2307
|
} else {
|
|
@@ -1778,21 +2312,17 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1778
2312
|
}
|
|
1779
2313
|
function cloneProto(o) {
|
|
1780
2314
|
if (typeof o !== "object" || o === null) return o;
|
|
1781
|
-
if (o instanceof Date) return new Date(o);
|
|
1782
2315
|
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
1783
|
-
if (o
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
2316
|
+
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
2317
|
+
return handler(o, cloneProto);
|
|
2318
|
+
}
|
|
2319
|
+
const o2 = {};
|
|
2320
|
+
for (const k in o) {
|
|
2321
|
+
const cur = o[k];
|
|
1788
2322
|
if (typeof cur !== "object" || cur === null) {
|
|
1789
2323
|
o2[k] = cur;
|
|
1790
|
-
} else if (cur
|
|
1791
|
-
o2[k] =
|
|
1792
|
-
} else if (cur instanceof Map) {
|
|
1793
|
-
o2[k] = new Map(cloneArray(Array.from(cur), cloneProto));
|
|
1794
|
-
} else if (cur instanceof Set) {
|
|
1795
|
-
o2[k] = new Set(cloneArray(Array.from(cur), cloneProto));
|
|
2324
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
2325
|
+
o2[k] = handler(cur, cloneProto);
|
|
1796
2326
|
} else if (ArrayBuffer.isView(cur)) {
|
|
1797
2327
|
o2[k] = copyBuffer(cur);
|
|
1798
2328
|
} else {
|
|
@@ -1803,23 +2333,33 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1803
2333
|
}
|
|
1804
2334
|
}
|
|
1805
2335
|
function rfdcCircles(opts) {
|
|
1806
|
-
|
|
1807
|
-
|
|
2336
|
+
const refs = [];
|
|
2337
|
+
const refsNew = [];
|
|
2338
|
+
const constructorHandlers = /* @__PURE__ */ new Map();
|
|
2339
|
+
constructorHandlers.set(Date, (o) => new Date(o));
|
|
2340
|
+
constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
|
|
2341
|
+
constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
|
|
2342
|
+
if (opts.constructorHandlers) {
|
|
2343
|
+
for (const handler2 of opts.constructorHandlers) {
|
|
2344
|
+
constructorHandlers.set(handler2[0], handler2[1]);
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
let handler = null;
|
|
1808
2348
|
return opts.proto ? cloneProto : clone;
|
|
1809
2349
|
function cloneArray(a, fn) {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
for (
|
|
1813
|
-
|
|
1814
|
-
|
|
2350
|
+
const keys = Object.keys(a);
|
|
2351
|
+
const a2 = new Array(keys.length);
|
|
2352
|
+
for (let i = 0; i < keys.length; i++) {
|
|
2353
|
+
const k = keys[i];
|
|
2354
|
+
const cur = a[k];
|
|
1815
2355
|
if (typeof cur !== "object" || cur === null) {
|
|
1816
2356
|
a2[k] = cur;
|
|
1817
|
-
} else if (cur
|
|
1818
|
-
a2[k] =
|
|
2357
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
2358
|
+
a2[k] = handler(cur, fn);
|
|
1819
2359
|
} else if (ArrayBuffer.isView(cur)) {
|
|
1820
2360
|
a2[k] = copyBuffer(cur);
|
|
1821
2361
|
} else {
|
|
1822
|
-
|
|
2362
|
+
const index = refs.indexOf(cur);
|
|
1823
2363
|
if (index !== -1) {
|
|
1824
2364
|
a2[k] = refsNew[index];
|
|
1825
2365
|
} else {
|
|
@@ -1831,28 +2371,24 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1831
2371
|
}
|
|
1832
2372
|
function clone(o) {
|
|
1833
2373
|
if (typeof o !== "object" || o === null) return o;
|
|
1834
|
-
if (o instanceof Date) return new Date(o);
|
|
1835
2374
|
if (Array.isArray(o)) return cloneArray(o, clone);
|
|
1836
|
-
if (o
|
|
1837
|
-
|
|
1838
|
-
|
|
2375
|
+
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
2376
|
+
return handler(o, clone);
|
|
2377
|
+
}
|
|
2378
|
+
const o2 = {};
|
|
1839
2379
|
refs.push(o);
|
|
1840
2380
|
refsNew.push(o2);
|
|
1841
|
-
for (
|
|
2381
|
+
for (const k in o) {
|
|
1842
2382
|
if (Object.hasOwnProperty.call(o, k) === false) continue;
|
|
1843
|
-
|
|
2383
|
+
const cur = o[k];
|
|
1844
2384
|
if (typeof cur !== "object" || cur === null) {
|
|
1845
2385
|
o2[k] = cur;
|
|
1846
|
-
} else if (cur
|
|
1847
|
-
o2[k] =
|
|
1848
|
-
} else if (cur instanceof Map) {
|
|
1849
|
-
o2[k] = new Map(cloneArray(Array.from(cur), clone));
|
|
1850
|
-
} else if (cur instanceof Set) {
|
|
1851
|
-
o2[k] = new Set(cloneArray(Array.from(cur), clone));
|
|
2386
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
2387
|
+
o2[k] = handler(cur, clone);
|
|
1852
2388
|
} else if (ArrayBuffer.isView(cur)) {
|
|
1853
2389
|
o2[k] = copyBuffer(cur);
|
|
1854
2390
|
} else {
|
|
1855
|
-
|
|
2391
|
+
const i = refs.indexOf(cur);
|
|
1856
2392
|
if (i !== -1) {
|
|
1857
2393
|
o2[k] = refsNew[i];
|
|
1858
2394
|
} else {
|
|
@@ -1866,27 +2402,23 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1866
2402
|
}
|
|
1867
2403
|
function cloneProto(o) {
|
|
1868
2404
|
if (typeof o !== "object" || o === null) return o;
|
|
1869
|
-
if (o instanceof Date) return new Date(o);
|
|
1870
2405
|
if (Array.isArray(o)) return cloneArray(o, cloneProto);
|
|
1871
|
-
if (o
|
|
1872
|
-
|
|
1873
|
-
|
|
2406
|
+
if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
|
|
2407
|
+
return handler(o, cloneProto);
|
|
2408
|
+
}
|
|
2409
|
+
const o2 = {};
|
|
1874
2410
|
refs.push(o);
|
|
1875
2411
|
refsNew.push(o2);
|
|
1876
|
-
for (
|
|
1877
|
-
|
|
2412
|
+
for (const k in o) {
|
|
2413
|
+
const cur = o[k];
|
|
1878
2414
|
if (typeof cur !== "object" || cur === null) {
|
|
1879
2415
|
o2[k] = cur;
|
|
1880
|
-
} else if (cur
|
|
1881
|
-
o2[k] =
|
|
1882
|
-
} else if (cur instanceof Map) {
|
|
1883
|
-
o2[k] = new Map(cloneArray(Array.from(cur), cloneProto));
|
|
1884
|
-
} else if (cur instanceof Set) {
|
|
1885
|
-
o2[k] = new Set(cloneArray(Array.from(cur), cloneProto));
|
|
2416
|
+
} else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
|
|
2417
|
+
o2[k] = handler(cur, cloneProto);
|
|
1886
2418
|
} else if (ArrayBuffer.isView(cur)) {
|
|
1887
2419
|
o2[k] = copyBuffer(cur);
|
|
1888
2420
|
} else {
|
|
1889
|
-
|
|
2421
|
+
const i = refs.indexOf(cur);
|
|
1890
2422
|
if (i !== -1) {
|
|
1891
2423
|
o2[k] = refsNew[i];
|
|
1892
2424
|
} else {
|
|
@@ -1902,7 +2434,7 @@ var require_rfdc = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
1902
2434
|
}
|
|
1903
2435
|
});
|
|
1904
2436
|
var require_default = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
1905
|
-
"../../node_modules/.pnpm/rfdc@1.
|
|
2437
|
+
"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/default.js"(exports, module2) {
|
|
1906
2438
|
"use strict";
|
|
1907
2439
|
module2.exports = require_rfdc()();
|
|
1908
2440
|
}
|
|
@@ -2006,7 +2538,7 @@ var require_connection_pool = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2006
2538
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/connection-pool.js"(exports, module2) {
|
|
2007
2539
|
"use strict";
|
|
2008
2540
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
2009
|
-
var debug =
|
|
2541
|
+
var debug = require_src()("mssql:base");
|
|
2010
2542
|
var { parseSqlConnectionString } = require_lib2();
|
|
2011
2543
|
var tarn = require_tarn();
|
|
2012
2544
|
var { IDS } = require_utils2();
|
|
@@ -2680,7 +3212,7 @@ var require_global_connection = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2680
3212
|
var require_prepared_statement = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2681
3213
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/prepared-statement.js"(exports, module2) {
|
|
2682
3214
|
"use strict";
|
|
2683
|
-
var debug =
|
|
3215
|
+
var debug = require_src()("mssql:base");
|
|
2684
3216
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
2685
3217
|
var { IDS, objectHasProperty: objectHasProperty2 } = require_utils2();
|
|
2686
3218
|
var globalConnection = require_global_connection();
|
|
@@ -2989,7 +3521,7 @@ var require_prepared_statement = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
2989
3521
|
var require_request = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
2990
3522
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/request.js"(exports, module2) {
|
|
2991
3523
|
"use strict";
|
|
2992
|
-
var debug =
|
|
3524
|
+
var debug = require_src()("mssql:base");
|
|
2993
3525
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
2994
3526
|
var { Readable } = (0, import_chunk_2ESYSVXG.__require)("node:stream");
|
|
2995
3527
|
var { IDS, objectHasProperty: objectHasProperty2 } = require_utils2();
|
|
@@ -3537,7 +4069,7 @@ var require_isolationlevel = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
3537
4069
|
var require_transaction = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
3538
4070
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/base/transaction.js"(exports, module2) {
|
|
3539
4071
|
"use strict";
|
|
3540
|
-
var debug =
|
|
4072
|
+
var debug = require_src()("mssql:base");
|
|
3541
4073
|
var { EventEmitter } = (0, import_chunk_2ESYSVXG.__require)("node:events");
|
|
3542
4074
|
var { IDS } = require_utils2();
|
|
3543
4075
|
var globalConnection = require_global_connection();
|
|
@@ -16494,725 +17026,197 @@ var require_form_data = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
16494
17026
|
};
|
|
16495
17027
|
FormData2.prototype.getBoundary = function() {
|
|
16496
17028
|
if (!this._boundary) {
|
|
16497
|
-
this._generateBoundary();
|
|
16498
|
-
}
|
|
16499
|
-
return this._boundary;
|
|
16500
|
-
};
|
|
16501
|
-
FormData2.prototype.getBuffer = function() {
|
|
16502
|
-
var dataBuffer = new Buffer.alloc(0);
|
|
16503
|
-
var boundary = this.getBoundary();
|
|
16504
|
-
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
16505
|
-
if (typeof this._streams[i] !== "function") {
|
|
16506
|
-
if (Buffer.isBuffer(this._streams[i])) {
|
|
16507
|
-
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
|
16508
|
-
} else {
|
|
16509
|
-
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
|
16510
|
-
}
|
|
16511
|
-
if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
|
16512
|
-
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData2.LINE_BREAK)]);
|
|
16513
|
-
}
|
|
16514
|
-
}
|
|
16515
|
-
}
|
|
16516
|
-
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
16517
|
-
};
|
|
16518
|
-
FormData2.prototype._generateBoundary = function() {
|
|
16519
|
-
var boundary = "--------------------------";
|
|
16520
|
-
for (var i = 0; i < 24; i++) {
|
|
16521
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
16522
|
-
}
|
|
16523
|
-
this._boundary = boundary;
|
|
16524
|
-
};
|
|
16525
|
-
FormData2.prototype.getLengthSync = function() {
|
|
16526
|
-
var knownLength = this._overheadLength + this._valueLength;
|
|
16527
|
-
if (this._streams.length) {
|
|
16528
|
-
knownLength += this._lastBoundary().length;
|
|
16529
|
-
}
|
|
16530
|
-
if (!this.hasKnownLength()) {
|
|
16531
|
-
this._error(new Error("Cannot calculate proper length in synchronous way."));
|
|
16532
|
-
}
|
|
16533
|
-
return knownLength;
|
|
16534
|
-
};
|
|
16535
|
-
FormData2.prototype.hasKnownLength = function() {
|
|
16536
|
-
var hasKnownLength = true;
|
|
16537
|
-
if (this._valuesToMeasure.length) {
|
|
16538
|
-
hasKnownLength = false;
|
|
16539
|
-
}
|
|
16540
|
-
return hasKnownLength;
|
|
16541
|
-
};
|
|
16542
|
-
FormData2.prototype.getLength = function(cb) {
|
|
16543
|
-
var knownLength = this._overheadLength + this._valueLength;
|
|
16544
|
-
if (this._streams.length) {
|
|
16545
|
-
knownLength += this._lastBoundary().length;
|
|
16546
|
-
}
|
|
16547
|
-
if (!this._valuesToMeasure.length) {
|
|
16548
|
-
process.nextTick(cb.bind(this, null, knownLength));
|
|
16549
|
-
return;
|
|
16550
|
-
}
|
|
16551
|
-
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
|
16552
|
-
if (err) {
|
|
16553
|
-
cb(err);
|
|
16554
|
-
return;
|
|
16555
|
-
}
|
|
16556
|
-
values.forEach(function(length) {
|
|
16557
|
-
knownLength += length;
|
|
16558
|
-
});
|
|
16559
|
-
cb(null, knownLength);
|
|
16560
|
-
});
|
|
16561
|
-
};
|
|
16562
|
-
FormData2.prototype.submit = function(params, cb) {
|
|
16563
|
-
var request3, options, defaults = { method: "post" };
|
|
16564
|
-
if (typeof params == "string") {
|
|
16565
|
-
params = parseUrl(params);
|
|
16566
|
-
options = populate({
|
|
16567
|
-
port: params.port,
|
|
16568
|
-
path: params.pathname,
|
|
16569
|
-
host: params.hostname,
|
|
16570
|
-
protocol: params.protocol
|
|
16571
|
-
}, defaults);
|
|
16572
|
-
} else {
|
|
16573
|
-
options = populate(params, defaults);
|
|
16574
|
-
if (!options.port) {
|
|
16575
|
-
options.port = options.protocol == "https:" ? 443 : 80;
|
|
16576
|
-
}
|
|
16577
|
-
}
|
|
16578
|
-
options.headers = this.getHeaders(params.headers);
|
|
16579
|
-
if (options.protocol == "https:") {
|
|
16580
|
-
request3 = https4.request(options);
|
|
16581
|
-
} else {
|
|
16582
|
-
request3 = http4.request(options);
|
|
16583
|
-
}
|
|
16584
|
-
this.getLength(function(err, length) {
|
|
16585
|
-
if (err && err !== "Unknown stream") {
|
|
16586
|
-
this._error(err);
|
|
16587
|
-
return;
|
|
16588
|
-
}
|
|
16589
|
-
if (length) {
|
|
16590
|
-
request3.setHeader("Content-Length", length);
|
|
16591
|
-
}
|
|
16592
|
-
this.pipe(request3);
|
|
16593
|
-
if (cb) {
|
|
16594
|
-
var onResponse;
|
|
16595
|
-
var callback = function(error, responce) {
|
|
16596
|
-
request3.removeListener("error", callback);
|
|
16597
|
-
request3.removeListener("response", onResponse);
|
|
16598
|
-
return cb.call(this, error, responce);
|
|
16599
|
-
};
|
|
16600
|
-
onResponse = callback.bind(this, null);
|
|
16601
|
-
request3.on("error", callback);
|
|
16602
|
-
request3.on("response", onResponse);
|
|
16603
|
-
}
|
|
16604
|
-
}.bind(this));
|
|
16605
|
-
return request3;
|
|
16606
|
-
};
|
|
16607
|
-
FormData2.prototype._error = function(err) {
|
|
16608
|
-
if (!this.error) {
|
|
16609
|
-
this.error = err;
|
|
16610
|
-
this.pause();
|
|
16611
|
-
this.emit("error", err);
|
|
16612
|
-
}
|
|
16613
|
-
};
|
|
16614
|
-
FormData2.prototype.toString = function() {
|
|
16615
|
-
return "[object FormData]";
|
|
16616
|
-
};
|
|
16617
|
-
setToStringTag(FormData2, "FormData");
|
|
16618
|
-
}
|
|
16619
|
-
});
|
|
16620
|
-
function formDataPolicy() {
|
|
16621
|
-
return {
|
|
16622
|
-
name: formDataPolicyName,
|
|
16623
|
-
async sendRequest(request3, next) {
|
|
16624
|
-
if (request3.formData) {
|
|
16625
|
-
const contentType = request3.headers.get("Content-Type");
|
|
16626
|
-
if (contentType && contentType.indexOf("application/x-www-form-urlencoded") !== -1) {
|
|
16627
|
-
request3.body = wwwFormUrlEncode(request3.formData);
|
|
16628
|
-
request3.formData = void 0;
|
|
16629
|
-
} else {
|
|
16630
|
-
prepareFormData(request3.formData, request3);
|
|
16631
|
-
}
|
|
16632
|
-
}
|
|
16633
|
-
return next(request3);
|
|
16634
|
-
}
|
|
16635
|
-
};
|
|
16636
|
-
}
|
|
16637
|
-
function wwwFormUrlEncode(formData) {
|
|
16638
|
-
const urlSearchParams = new URLSearchParams();
|
|
16639
|
-
for (const [key, value] of Object.entries(formData)) {
|
|
16640
|
-
if (Array.isArray(value)) {
|
|
16641
|
-
for (const subValue of value) {
|
|
16642
|
-
urlSearchParams.append(key, subValue.toString());
|
|
16643
|
-
}
|
|
16644
|
-
} else {
|
|
16645
|
-
urlSearchParams.append(key, value.toString());
|
|
16646
|
-
}
|
|
16647
|
-
}
|
|
16648
|
-
return urlSearchParams.toString();
|
|
16649
|
-
}
|
|
16650
|
-
async function prepareFormData(formData, request3) {
|
|
16651
|
-
const requestForm = new import_form_data.default();
|
|
16652
|
-
for (const formKey of Object.keys(formData)) {
|
|
16653
|
-
const formValue = formData[formKey];
|
|
16654
|
-
if (Array.isArray(formValue)) {
|
|
16655
|
-
for (const subValue of formValue) {
|
|
16656
|
-
requestForm.append(formKey, subValue);
|
|
16657
|
-
}
|
|
16658
|
-
} else {
|
|
16659
|
-
requestForm.append(formKey, formValue);
|
|
16660
|
-
}
|
|
16661
|
-
}
|
|
16662
|
-
request3.body = requestForm;
|
|
16663
|
-
request3.formData = void 0;
|
|
16664
|
-
const contentType = request3.headers.get("Content-Type");
|
|
16665
|
-
if (contentType && contentType.indexOf("multipart/form-data") !== -1) {
|
|
16666
|
-
request3.headers.set("Content-Type", `multipart/form-data; boundary=${requestForm.getBoundary()}`);
|
|
16667
|
-
}
|
|
16668
|
-
try {
|
|
16669
|
-
const contentLength = await new Promise((resolve, reject) => {
|
|
16670
|
-
requestForm.getLength((err, length) => {
|
|
16671
|
-
if (err) {
|
|
16672
|
-
reject(err);
|
|
16673
|
-
} else {
|
|
16674
|
-
resolve(length);
|
|
16675
|
-
}
|
|
16676
|
-
});
|
|
16677
|
-
});
|
|
16678
|
-
request3.headers.set("Content-Length", contentLength);
|
|
16679
|
-
} catch (e) {
|
|
16680
|
-
}
|
|
16681
|
-
}
|
|
16682
|
-
var import_form_data, formDataPolicyName;
|
|
16683
|
-
var init_formDataPolicy = (0, import_chunk_2ESYSVXG.__esm)({
|
|
16684
|
-
"../../node_modules/.pnpm/@azure+core-rest-pipeline@1.9.2/node_modules/@azure/core-rest-pipeline/dist-esm/src/policies/formDataPolicy.js"() {
|
|
16685
|
-
"use strict";
|
|
16686
|
-
import_form_data = (0, import_chunk_2ESYSVXG.__toESM)(require_form_data());
|
|
16687
|
-
formDataPolicyName = "formDataPolicy";
|
|
16688
|
-
}
|
|
16689
|
-
});
|
|
16690
|
-
var require_common = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
16691
|
-
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports, module2) {
|
|
16692
|
-
"use strict";
|
|
16693
|
-
function setup(env) {
|
|
16694
|
-
createDebug.debug = createDebug;
|
|
16695
|
-
createDebug.default = createDebug;
|
|
16696
|
-
createDebug.coerce = coerce;
|
|
16697
|
-
createDebug.disable = disable2;
|
|
16698
|
-
createDebug.enable = enable2;
|
|
16699
|
-
createDebug.enabled = enabled2;
|
|
16700
|
-
createDebug.humanize = (0, import_chunk_OP2BDF75.require_ms)();
|
|
16701
|
-
createDebug.destroy = destroy2;
|
|
16702
|
-
Object.keys(env).forEach((key) => {
|
|
16703
|
-
createDebug[key] = env[key];
|
|
16704
|
-
});
|
|
16705
|
-
createDebug.names = [];
|
|
16706
|
-
createDebug.skips = [];
|
|
16707
|
-
createDebug.formatters = {};
|
|
16708
|
-
function selectColor(namespace) {
|
|
16709
|
-
let hash = 0;
|
|
16710
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
16711
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
16712
|
-
hash |= 0;
|
|
16713
|
-
}
|
|
16714
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
16715
|
-
}
|
|
16716
|
-
createDebug.selectColor = selectColor;
|
|
16717
|
-
function createDebug(namespace) {
|
|
16718
|
-
let prevTime;
|
|
16719
|
-
let enableOverride = null;
|
|
16720
|
-
let namespacesCache;
|
|
16721
|
-
let enabledCache;
|
|
16722
|
-
function debug(...args) {
|
|
16723
|
-
if (!debug.enabled) {
|
|
16724
|
-
return;
|
|
16725
|
-
}
|
|
16726
|
-
const self2 = debug;
|
|
16727
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
16728
|
-
const ms = curr - (prevTime || curr);
|
|
16729
|
-
self2.diff = ms;
|
|
16730
|
-
self2.prev = prevTime;
|
|
16731
|
-
self2.curr = curr;
|
|
16732
|
-
prevTime = curr;
|
|
16733
|
-
args[0] = createDebug.coerce(args[0]);
|
|
16734
|
-
if (typeof args[0] !== "string") {
|
|
16735
|
-
args.unshift("%O");
|
|
16736
|
-
}
|
|
16737
|
-
let index = 0;
|
|
16738
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
16739
|
-
if (match === "%%") {
|
|
16740
|
-
return "%";
|
|
16741
|
-
}
|
|
16742
|
-
index++;
|
|
16743
|
-
const formatter = createDebug.formatters[format];
|
|
16744
|
-
if (typeof formatter === "function") {
|
|
16745
|
-
const val = args[index];
|
|
16746
|
-
match = formatter.call(self2, val);
|
|
16747
|
-
args.splice(index, 1);
|
|
16748
|
-
index--;
|
|
16749
|
-
}
|
|
16750
|
-
return match;
|
|
16751
|
-
});
|
|
16752
|
-
createDebug.formatArgs.call(self2, args);
|
|
16753
|
-
const logFn = self2.log || createDebug.log;
|
|
16754
|
-
logFn.apply(self2, args);
|
|
16755
|
-
}
|
|
16756
|
-
debug.namespace = namespace;
|
|
16757
|
-
debug.useColors = createDebug.useColors();
|
|
16758
|
-
debug.color = createDebug.selectColor(namespace);
|
|
16759
|
-
debug.extend = extend2;
|
|
16760
|
-
debug.destroy = createDebug.destroy;
|
|
16761
|
-
Object.defineProperty(debug, "enabled", {
|
|
16762
|
-
enumerable: true,
|
|
16763
|
-
configurable: false,
|
|
16764
|
-
get: () => {
|
|
16765
|
-
if (enableOverride !== null) {
|
|
16766
|
-
return enableOverride;
|
|
16767
|
-
}
|
|
16768
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
16769
|
-
namespacesCache = createDebug.namespaces;
|
|
16770
|
-
enabledCache = createDebug.enabled(namespace);
|
|
16771
|
-
}
|
|
16772
|
-
return enabledCache;
|
|
16773
|
-
},
|
|
16774
|
-
set: (v) => {
|
|
16775
|
-
enableOverride = v;
|
|
16776
|
-
}
|
|
16777
|
-
});
|
|
16778
|
-
if (typeof createDebug.init === "function") {
|
|
16779
|
-
createDebug.init(debug);
|
|
16780
|
-
}
|
|
16781
|
-
return debug;
|
|
16782
|
-
}
|
|
16783
|
-
function extend2(namespace, delimiter) {
|
|
16784
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
16785
|
-
newDebug.log = this.log;
|
|
16786
|
-
return newDebug;
|
|
16787
|
-
}
|
|
16788
|
-
function enable2(namespaces) {
|
|
16789
|
-
createDebug.save(namespaces);
|
|
16790
|
-
createDebug.namespaces = namespaces;
|
|
16791
|
-
createDebug.names = [];
|
|
16792
|
-
createDebug.skips = [];
|
|
16793
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
16794
|
-
for (const ns of split) {
|
|
16795
|
-
if (ns[0] === "-") {
|
|
16796
|
-
createDebug.skips.push(ns.slice(1));
|
|
16797
|
-
} else {
|
|
16798
|
-
createDebug.names.push(ns);
|
|
16799
|
-
}
|
|
16800
|
-
}
|
|
16801
|
-
}
|
|
16802
|
-
function matchesTemplate(search, template) {
|
|
16803
|
-
let searchIndex = 0;
|
|
16804
|
-
let templateIndex = 0;
|
|
16805
|
-
let starIndex = -1;
|
|
16806
|
-
let matchIndex = 0;
|
|
16807
|
-
while (searchIndex < search.length) {
|
|
16808
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
16809
|
-
if (template[templateIndex] === "*") {
|
|
16810
|
-
starIndex = templateIndex;
|
|
16811
|
-
matchIndex = searchIndex;
|
|
16812
|
-
templateIndex++;
|
|
16813
|
-
} else {
|
|
16814
|
-
searchIndex++;
|
|
16815
|
-
templateIndex++;
|
|
16816
|
-
}
|
|
16817
|
-
} else if (starIndex !== -1) {
|
|
16818
|
-
templateIndex = starIndex + 1;
|
|
16819
|
-
matchIndex++;
|
|
16820
|
-
searchIndex = matchIndex;
|
|
16821
|
-
} else {
|
|
16822
|
-
return false;
|
|
16823
|
-
}
|
|
16824
|
-
}
|
|
16825
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
16826
|
-
templateIndex++;
|
|
16827
|
-
}
|
|
16828
|
-
return templateIndex === template.length;
|
|
16829
|
-
}
|
|
16830
|
-
function disable2() {
|
|
16831
|
-
const namespaces = [
|
|
16832
|
-
...createDebug.names,
|
|
16833
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
16834
|
-
].join(",");
|
|
16835
|
-
createDebug.enable("");
|
|
16836
|
-
return namespaces;
|
|
17029
|
+
this._generateBoundary();
|
|
16837
17030
|
}
|
|
16838
|
-
|
|
16839
|
-
|
|
16840
|
-
|
|
16841
|
-
|
|
17031
|
+
return this._boundary;
|
|
17032
|
+
};
|
|
17033
|
+
FormData2.prototype.getBuffer = function() {
|
|
17034
|
+
var dataBuffer = new Buffer.alloc(0);
|
|
17035
|
+
var boundary = this.getBoundary();
|
|
17036
|
+
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
17037
|
+
if (typeof this._streams[i] !== "function") {
|
|
17038
|
+
if (Buffer.isBuffer(this._streams[i])) {
|
|
17039
|
+
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
|
17040
|
+
} else {
|
|
17041
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
|
16842
17042
|
}
|
|
16843
|
-
|
|
16844
|
-
|
|
16845
|
-
if (matchesTemplate(name3, ns)) {
|
|
16846
|
-
return true;
|
|
17043
|
+
if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
|
17044
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData2.LINE_BREAK)]);
|
|
16847
17045
|
}
|
|
16848
17046
|
}
|
|
16849
|
-
return false;
|
|
16850
17047
|
}
|
|
16851
|
-
|
|
16852
|
-
|
|
16853
|
-
|
|
16854
|
-
|
|
16855
|
-
|
|
17048
|
+
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
17049
|
+
};
|
|
17050
|
+
FormData2.prototype._generateBoundary = function() {
|
|
17051
|
+
var boundary = "--------------------------";
|
|
17052
|
+
for (var i = 0; i < 24; i++) {
|
|
17053
|
+
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
16856
17054
|
}
|
|
16857
|
-
|
|
16858
|
-
|
|
17055
|
+
this._boundary = boundary;
|
|
17056
|
+
};
|
|
17057
|
+
FormData2.prototype.getLengthSync = function() {
|
|
17058
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
17059
|
+
if (this._streams.length) {
|
|
17060
|
+
knownLength += this._lastBoundary().length;
|
|
16859
17061
|
}
|
|
16860
|
-
|
|
16861
|
-
|
|
16862
|
-
}
|
|
16863
|
-
module2.exports = setup;
|
|
16864
|
-
}
|
|
16865
|
-
});
|
|
16866
|
-
var require_browser = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
16867
|
-
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js"(exports, module2) {
|
|
16868
|
-
"use strict";
|
|
16869
|
-
exports.formatArgs = formatArgs;
|
|
16870
|
-
exports.save = save;
|
|
16871
|
-
exports.load = load;
|
|
16872
|
-
exports.useColors = useColors;
|
|
16873
|
-
exports.storage = localstorage();
|
|
16874
|
-
exports.destroy = /* @__PURE__ */ (() => {
|
|
16875
|
-
let warned = false;
|
|
16876
|
-
return () => {
|
|
16877
|
-
if (!warned) {
|
|
16878
|
-
warned = true;
|
|
16879
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
16880
|
-
}
|
|
16881
|
-
};
|
|
16882
|
-
})();
|
|
16883
|
-
exports.colors = [
|
|
16884
|
-
"#0000CC",
|
|
16885
|
-
"#0000FF",
|
|
16886
|
-
"#0033CC",
|
|
16887
|
-
"#0033FF",
|
|
16888
|
-
"#0066CC",
|
|
16889
|
-
"#0066FF",
|
|
16890
|
-
"#0099CC",
|
|
16891
|
-
"#0099FF",
|
|
16892
|
-
"#00CC00",
|
|
16893
|
-
"#00CC33",
|
|
16894
|
-
"#00CC66",
|
|
16895
|
-
"#00CC99",
|
|
16896
|
-
"#00CCCC",
|
|
16897
|
-
"#00CCFF",
|
|
16898
|
-
"#3300CC",
|
|
16899
|
-
"#3300FF",
|
|
16900
|
-
"#3333CC",
|
|
16901
|
-
"#3333FF",
|
|
16902
|
-
"#3366CC",
|
|
16903
|
-
"#3366FF",
|
|
16904
|
-
"#3399CC",
|
|
16905
|
-
"#3399FF",
|
|
16906
|
-
"#33CC00",
|
|
16907
|
-
"#33CC33",
|
|
16908
|
-
"#33CC66",
|
|
16909
|
-
"#33CC99",
|
|
16910
|
-
"#33CCCC",
|
|
16911
|
-
"#33CCFF",
|
|
16912
|
-
"#6600CC",
|
|
16913
|
-
"#6600FF",
|
|
16914
|
-
"#6633CC",
|
|
16915
|
-
"#6633FF",
|
|
16916
|
-
"#66CC00",
|
|
16917
|
-
"#66CC33",
|
|
16918
|
-
"#9900CC",
|
|
16919
|
-
"#9900FF",
|
|
16920
|
-
"#9933CC",
|
|
16921
|
-
"#9933FF",
|
|
16922
|
-
"#99CC00",
|
|
16923
|
-
"#99CC33",
|
|
16924
|
-
"#CC0000",
|
|
16925
|
-
"#CC0033",
|
|
16926
|
-
"#CC0066",
|
|
16927
|
-
"#CC0099",
|
|
16928
|
-
"#CC00CC",
|
|
16929
|
-
"#CC00FF",
|
|
16930
|
-
"#CC3300",
|
|
16931
|
-
"#CC3333",
|
|
16932
|
-
"#CC3366",
|
|
16933
|
-
"#CC3399",
|
|
16934
|
-
"#CC33CC",
|
|
16935
|
-
"#CC33FF",
|
|
16936
|
-
"#CC6600",
|
|
16937
|
-
"#CC6633",
|
|
16938
|
-
"#CC9900",
|
|
16939
|
-
"#CC9933",
|
|
16940
|
-
"#CCCC00",
|
|
16941
|
-
"#CCCC33",
|
|
16942
|
-
"#FF0000",
|
|
16943
|
-
"#FF0033",
|
|
16944
|
-
"#FF0066",
|
|
16945
|
-
"#FF0099",
|
|
16946
|
-
"#FF00CC",
|
|
16947
|
-
"#FF00FF",
|
|
16948
|
-
"#FF3300",
|
|
16949
|
-
"#FF3333",
|
|
16950
|
-
"#FF3366",
|
|
16951
|
-
"#FF3399",
|
|
16952
|
-
"#FF33CC",
|
|
16953
|
-
"#FF33FF",
|
|
16954
|
-
"#FF6600",
|
|
16955
|
-
"#FF6633",
|
|
16956
|
-
"#FF9900",
|
|
16957
|
-
"#FF9933",
|
|
16958
|
-
"#FFCC00",
|
|
16959
|
-
"#FFCC33"
|
|
16960
|
-
];
|
|
16961
|
-
function useColors() {
|
|
16962
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
16963
|
-
return true;
|
|
17062
|
+
if (!this.hasKnownLength()) {
|
|
17063
|
+
this._error(new Error("Cannot calculate proper length in synchronous way."));
|
|
16964
17064
|
}
|
|
16965
|
-
|
|
16966
|
-
|
|
17065
|
+
return knownLength;
|
|
17066
|
+
};
|
|
17067
|
+
FormData2.prototype.hasKnownLength = function() {
|
|
17068
|
+
var hasKnownLength = true;
|
|
17069
|
+
if (this._valuesToMeasure.length) {
|
|
17070
|
+
hasKnownLength = false;
|
|
16967
17071
|
}
|
|
16968
|
-
|
|
16969
|
-
|
|
16970
|
-
|
|
16971
|
-
|
|
16972
|
-
|
|
16973
|
-
|
|
16974
|
-
|
|
16975
|
-
|
|
16976
|
-
|
|
16977
|
-
if (!this.useColors) {
|
|
17072
|
+
return hasKnownLength;
|
|
17073
|
+
};
|
|
17074
|
+
FormData2.prototype.getLength = function(cb) {
|
|
17075
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
17076
|
+
if (this._streams.length) {
|
|
17077
|
+
knownLength += this._lastBoundary().length;
|
|
17078
|
+
}
|
|
17079
|
+
if (!this._valuesToMeasure.length) {
|
|
17080
|
+
process.nextTick(cb.bind(this, null, knownLength));
|
|
16978
17081
|
return;
|
|
16979
17082
|
}
|
|
16980
|
-
|
|
16981
|
-
|
|
16982
|
-
|
|
16983
|
-
let lastC = 0;
|
|
16984
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
16985
|
-
if (match === "%%") {
|
|
17083
|
+
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
|
17084
|
+
if (err) {
|
|
17085
|
+
cb(err);
|
|
16986
17086
|
return;
|
|
16987
17087
|
}
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
17088
|
+
values.forEach(function(length) {
|
|
17089
|
+
knownLength += length;
|
|
17090
|
+
});
|
|
17091
|
+
cb(null, knownLength);
|
|
16992
17092
|
});
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
|
|
16999
|
-
|
|
17000
|
-
|
|
17001
|
-
|
|
17002
|
-
|
|
17093
|
+
};
|
|
17094
|
+
FormData2.prototype.submit = function(params, cb) {
|
|
17095
|
+
var request3, options, defaults = { method: "post" };
|
|
17096
|
+
if (typeof params == "string") {
|
|
17097
|
+
params = parseUrl(params);
|
|
17098
|
+
options = populate({
|
|
17099
|
+
port: params.port,
|
|
17100
|
+
path: params.pathname,
|
|
17101
|
+
host: params.hostname,
|
|
17102
|
+
protocol: params.protocol
|
|
17103
|
+
}, defaults);
|
|
17104
|
+
} else {
|
|
17105
|
+
options = populate(params, defaults);
|
|
17106
|
+
if (!options.port) {
|
|
17107
|
+
options.port = options.protocol == "https:" ? 443 : 80;
|
|
17003
17108
|
}
|
|
17004
|
-
} catch (error) {
|
|
17005
|
-
}
|
|
17006
|
-
}
|
|
17007
|
-
function load() {
|
|
17008
|
-
let r;
|
|
17009
|
-
try {
|
|
17010
|
-
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
17011
|
-
} catch (error) {
|
|
17012
|
-
}
|
|
17013
|
-
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
17014
|
-
r = process.env.DEBUG;
|
|
17015
17109
|
}
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
|
|
17021
|
-
} catch (error) {
|
|
17110
|
+
options.headers = this.getHeaders(params.headers);
|
|
17111
|
+
if (options.protocol == "https:") {
|
|
17112
|
+
request3 = https4.request(options);
|
|
17113
|
+
} else {
|
|
17114
|
+
request3 = http4.request(options);
|
|
17022
17115
|
}
|
|
17023
|
-
|
|
17024
|
-
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
|
|
17028
|
-
|
|
17029
|
-
|
|
17030
|
-
|
|
17116
|
+
this.getLength(function(err, length) {
|
|
17117
|
+
if (err && err !== "Unknown stream") {
|
|
17118
|
+
this._error(err);
|
|
17119
|
+
return;
|
|
17120
|
+
}
|
|
17121
|
+
if (length) {
|
|
17122
|
+
request3.setHeader("Content-Length", length);
|
|
17123
|
+
}
|
|
17124
|
+
this.pipe(request3);
|
|
17125
|
+
if (cb) {
|
|
17126
|
+
var onResponse;
|
|
17127
|
+
var callback = function(error, responce) {
|
|
17128
|
+
request3.removeListener("error", callback);
|
|
17129
|
+
request3.removeListener("response", onResponse);
|
|
17130
|
+
return cb.call(this, error, responce);
|
|
17131
|
+
};
|
|
17132
|
+
onResponse = callback.bind(this, null);
|
|
17133
|
+
request3.on("error", callback);
|
|
17134
|
+
request3.on("response", onResponse);
|
|
17135
|
+
}
|
|
17136
|
+
}.bind(this));
|
|
17137
|
+
return request3;
|
|
17138
|
+
};
|
|
17139
|
+
FormData2.prototype._error = function(err) {
|
|
17140
|
+
if (!this.error) {
|
|
17141
|
+
this.error = err;
|
|
17142
|
+
this.pause();
|
|
17143
|
+
this.emit("error", err);
|
|
17031
17144
|
}
|
|
17032
17145
|
};
|
|
17146
|
+
FormData2.prototype.toString = function() {
|
|
17147
|
+
return "[object FormData]";
|
|
17148
|
+
};
|
|
17149
|
+
setToStringTag(FormData2, "FormData");
|
|
17033
17150
|
}
|
|
17034
17151
|
});
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17043
|
-
|
|
17044
|
-
|
|
17045
|
-
|
|
17046
|
-
|
|
17047
|
-
() => {
|
|
17048
|
-
},
|
|
17049
|
-
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
17050
|
-
);
|
|
17051
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
17052
|
-
try {
|
|
17053
|
-
const supportsColor = (0, import_chunk_OP2BDF75.require_supports_color)();
|
|
17054
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
17055
|
-
exports.colors = [
|
|
17056
|
-
20,
|
|
17057
|
-
21,
|
|
17058
|
-
26,
|
|
17059
|
-
27,
|
|
17060
|
-
32,
|
|
17061
|
-
33,
|
|
17062
|
-
38,
|
|
17063
|
-
39,
|
|
17064
|
-
40,
|
|
17065
|
-
41,
|
|
17066
|
-
42,
|
|
17067
|
-
43,
|
|
17068
|
-
44,
|
|
17069
|
-
45,
|
|
17070
|
-
56,
|
|
17071
|
-
57,
|
|
17072
|
-
62,
|
|
17073
|
-
63,
|
|
17074
|
-
68,
|
|
17075
|
-
69,
|
|
17076
|
-
74,
|
|
17077
|
-
75,
|
|
17078
|
-
76,
|
|
17079
|
-
77,
|
|
17080
|
-
78,
|
|
17081
|
-
79,
|
|
17082
|
-
80,
|
|
17083
|
-
81,
|
|
17084
|
-
92,
|
|
17085
|
-
93,
|
|
17086
|
-
98,
|
|
17087
|
-
99,
|
|
17088
|
-
112,
|
|
17089
|
-
113,
|
|
17090
|
-
128,
|
|
17091
|
-
129,
|
|
17092
|
-
134,
|
|
17093
|
-
135,
|
|
17094
|
-
148,
|
|
17095
|
-
149,
|
|
17096
|
-
160,
|
|
17097
|
-
161,
|
|
17098
|
-
162,
|
|
17099
|
-
163,
|
|
17100
|
-
164,
|
|
17101
|
-
165,
|
|
17102
|
-
166,
|
|
17103
|
-
167,
|
|
17104
|
-
168,
|
|
17105
|
-
169,
|
|
17106
|
-
170,
|
|
17107
|
-
171,
|
|
17108
|
-
172,
|
|
17109
|
-
173,
|
|
17110
|
-
178,
|
|
17111
|
-
179,
|
|
17112
|
-
184,
|
|
17113
|
-
185,
|
|
17114
|
-
196,
|
|
17115
|
-
197,
|
|
17116
|
-
198,
|
|
17117
|
-
199,
|
|
17118
|
-
200,
|
|
17119
|
-
201,
|
|
17120
|
-
202,
|
|
17121
|
-
203,
|
|
17122
|
-
204,
|
|
17123
|
-
205,
|
|
17124
|
-
206,
|
|
17125
|
-
207,
|
|
17126
|
-
208,
|
|
17127
|
-
209,
|
|
17128
|
-
214,
|
|
17129
|
-
215,
|
|
17130
|
-
220,
|
|
17131
|
-
221
|
|
17132
|
-
];
|
|
17133
|
-
}
|
|
17134
|
-
} catch (error) {
|
|
17135
|
-
}
|
|
17136
|
-
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
17137
|
-
return /^debug_/i.test(key);
|
|
17138
|
-
}).reduce((obj, key) => {
|
|
17139
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_2, k) => {
|
|
17140
|
-
return k.toUpperCase();
|
|
17141
|
-
});
|
|
17142
|
-
let val = process.env[key];
|
|
17143
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
17144
|
-
val = true;
|
|
17145
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
17146
|
-
val = false;
|
|
17147
|
-
} else if (val === "null") {
|
|
17148
|
-
val = null;
|
|
17149
|
-
} else {
|
|
17150
|
-
val = Number(val);
|
|
17151
|
-
}
|
|
17152
|
-
obj[prop] = val;
|
|
17153
|
-
return obj;
|
|
17154
|
-
}, {});
|
|
17155
|
-
function useColors() {
|
|
17156
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
17157
|
-
}
|
|
17158
|
-
function formatArgs(args) {
|
|
17159
|
-
const { namespace: name3, useColors: useColors2 } = this;
|
|
17160
|
-
if (useColors2) {
|
|
17161
|
-
const c = this.color;
|
|
17162
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
17163
|
-
const prefix = ` ${colorCode};1m${name3} \x1B[0m`;
|
|
17164
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
17165
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
17166
|
-
} else {
|
|
17167
|
-
args[0] = getDate() + name3 + " " + args[0];
|
|
17168
|
-
}
|
|
17169
|
-
}
|
|
17170
|
-
function getDate() {
|
|
17171
|
-
if (exports.inspectOpts.hideDate) {
|
|
17172
|
-
return "";
|
|
17152
|
+
function formDataPolicy() {
|
|
17153
|
+
return {
|
|
17154
|
+
name: formDataPolicyName,
|
|
17155
|
+
async sendRequest(request3, next) {
|
|
17156
|
+
if (request3.formData) {
|
|
17157
|
+
const contentType = request3.headers.get("Content-Type");
|
|
17158
|
+
if (contentType && contentType.indexOf("application/x-www-form-urlencoded") !== -1) {
|
|
17159
|
+
request3.body = wwwFormUrlEncode(request3.formData);
|
|
17160
|
+
request3.formData = void 0;
|
|
17161
|
+
} else {
|
|
17162
|
+
prepareFormData(request3.formData, request3);
|
|
17163
|
+
}
|
|
17173
17164
|
}
|
|
17174
|
-
return (
|
|
17175
|
-
}
|
|
17176
|
-
function log2(...args) {
|
|
17177
|
-
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
17165
|
+
return next(request3);
|
|
17178
17166
|
}
|
|
17179
|
-
|
|
17180
|
-
|
|
17181
|
-
|
|
17182
|
-
|
|
17183
|
-
|
|
17167
|
+
};
|
|
17168
|
+
}
|
|
17169
|
+
function wwwFormUrlEncode(formData) {
|
|
17170
|
+
const urlSearchParams = new URLSearchParams();
|
|
17171
|
+
for (const [key, value] of Object.entries(formData)) {
|
|
17172
|
+
if (Array.isArray(value)) {
|
|
17173
|
+
for (const subValue of value) {
|
|
17174
|
+
urlSearchParams.append(key, subValue.toString());
|
|
17184
17175
|
}
|
|
17176
|
+
} else {
|
|
17177
|
+
urlSearchParams.append(key, value.toString());
|
|
17185
17178
|
}
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17189
|
-
|
|
17190
|
-
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
|
|
17179
|
+
}
|
|
17180
|
+
return urlSearchParams.toString();
|
|
17181
|
+
}
|
|
17182
|
+
async function prepareFormData(formData, request3) {
|
|
17183
|
+
const requestForm = new import_form_data.default();
|
|
17184
|
+
for (const formKey of Object.keys(formData)) {
|
|
17185
|
+
const formValue = formData[formKey];
|
|
17186
|
+
if (Array.isArray(formValue)) {
|
|
17187
|
+
for (const subValue of formValue) {
|
|
17188
|
+
requestForm.append(formKey, subValue);
|
|
17194
17189
|
}
|
|
17190
|
+
} else {
|
|
17191
|
+
requestForm.append(formKey, formValue);
|
|
17195
17192
|
}
|
|
17196
|
-
module2.exports = require_common()(exports);
|
|
17197
|
-
var { formatters } = module2.exports;
|
|
17198
|
-
formatters.o = function(v) {
|
|
17199
|
-
this.inspectOpts.colors = this.useColors;
|
|
17200
|
-
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
17201
|
-
};
|
|
17202
|
-
formatters.O = function(v) {
|
|
17203
|
-
this.inspectOpts.colors = this.useColors;
|
|
17204
|
-
return util2.inspect(v, this.inspectOpts);
|
|
17205
|
-
};
|
|
17206
17193
|
}
|
|
17207
|
-
|
|
17208
|
-
|
|
17209
|
-
|
|
17194
|
+
request3.body = requestForm;
|
|
17195
|
+
request3.formData = void 0;
|
|
17196
|
+
const contentType = request3.headers.get("Content-Type");
|
|
17197
|
+
if (contentType && contentType.indexOf("multipart/form-data") !== -1) {
|
|
17198
|
+
request3.headers.set("Content-Type", `multipart/form-data; boundary=${requestForm.getBoundary()}`);
|
|
17199
|
+
}
|
|
17200
|
+
try {
|
|
17201
|
+
const contentLength = await new Promise((resolve, reject) => {
|
|
17202
|
+
requestForm.getLength((err, length) => {
|
|
17203
|
+
if (err) {
|
|
17204
|
+
reject(err);
|
|
17205
|
+
} else {
|
|
17206
|
+
resolve(length);
|
|
17207
|
+
}
|
|
17208
|
+
});
|
|
17209
|
+
});
|
|
17210
|
+
request3.headers.set("Content-Length", contentLength);
|
|
17211
|
+
} catch (e) {
|
|
17212
|
+
}
|
|
17213
|
+
}
|
|
17214
|
+
var import_form_data, formDataPolicyName;
|
|
17215
|
+
var init_formDataPolicy = (0, import_chunk_2ESYSVXG.__esm)({
|
|
17216
|
+
"../../node_modules/.pnpm/@azure+core-rest-pipeline@1.9.2/node_modules/@azure/core-rest-pipeline/dist-esm/src/policies/formDataPolicy.js"() {
|
|
17210
17217
|
"use strict";
|
|
17211
|
-
|
|
17212
|
-
|
|
17213
|
-
} else {
|
|
17214
|
-
module2.exports = require_node();
|
|
17215
|
-
}
|
|
17218
|
+
import_form_data = (0, import_chunk_2ESYSVXG.__toESM)(require_form_data());
|
|
17219
|
+
formDataPolicyName = "formDataPolicy";
|
|
17216
17220
|
}
|
|
17217
17221
|
});
|
|
17218
17222
|
var require_promisify = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
@@ -17235,14 +17239,14 @@ var require_promisify = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17235
17239
|
exports.default = promisify2;
|
|
17236
17240
|
}
|
|
17237
17241
|
});
|
|
17238
|
-
var
|
|
17242
|
+
var require_src2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
17239
17243
|
"../../node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js"(exports, module2) {
|
|
17240
17244
|
"use strict";
|
|
17241
17245
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
17242
17246
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
17243
17247
|
};
|
|
17244
17248
|
var events_1 = (0, import_chunk_2ESYSVXG.__require)("events");
|
|
17245
|
-
var debug_1 = __importDefault(
|
|
17249
|
+
var debug_1 = __importDefault(require_src());
|
|
17246
17250
|
var promisify_1 = __importDefault(require_promisify());
|
|
17247
17251
|
var debug = debug_1.default("agent-base");
|
|
17248
17252
|
function isAgent(v) {
|
|
@@ -17423,7 +17427,7 @@ var require_parse_proxy_response = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17423
17427
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
17424
17428
|
};
|
|
17425
17429
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17426
|
-
var debug_1 = __importDefault(
|
|
17430
|
+
var debug_1 = __importDefault(require_src());
|
|
17427
17431
|
var debug = debug_1.default("https-proxy-agent:parse-proxy-response");
|
|
17428
17432
|
function parseProxyResponse(socket) {
|
|
17429
17433
|
return new Promise((resolve, reject) => {
|
|
@@ -17518,8 +17522,8 @@ var require_agent = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17518
17522
|
var tls_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("tls"));
|
|
17519
17523
|
var url_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("url"));
|
|
17520
17524
|
var assert_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("assert"));
|
|
17521
|
-
var debug_1 = __importDefault(
|
|
17522
|
-
var agent_base_1 =
|
|
17525
|
+
var debug_1 = __importDefault(require_src());
|
|
17526
|
+
var agent_base_1 = require_src2();
|
|
17523
17527
|
var parse_proxy_response_1 = __importDefault(require_parse_proxy_response());
|
|
17524
17528
|
var debug = debug_1.default("https-proxy-agent:agent");
|
|
17525
17529
|
var HttpsProxyAgent2 = class extends agent_base_1.Agent {
|
|
@@ -17719,9 +17723,9 @@ var require_agent2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
17719
17723
|
var net_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("net"));
|
|
17720
17724
|
var tls_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("tls"));
|
|
17721
17725
|
var url_1 = __importDefault((0, import_chunk_2ESYSVXG.__require)("url"));
|
|
17722
|
-
var debug_1 = __importDefault(
|
|
17726
|
+
var debug_1 = __importDefault(require_src());
|
|
17723
17727
|
var once_1 = __importDefault(require_dist2());
|
|
17724
|
-
var agent_base_1 =
|
|
17728
|
+
var agent_base_1 = require_src2();
|
|
17725
17729
|
var debug = (0, debug_1.default)("http-proxy-agent");
|
|
17726
17730
|
function isHTTPS(protocol) {
|
|
17727
17731
|
return typeof protocol === "string" ? /^https:?$/i.test(protocol) : false;
|
|
@@ -30136,7 +30140,7 @@ var require_TokenExpiredError = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
30136
30140
|
var require_timespan = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
30137
30141
|
"../../node_modules/.pnpm/jsonwebtoken@9.0.2/node_modules/jsonwebtoken/lib/timespan.js"(exports, module2) {
|
|
30138
30142
|
"use strict";
|
|
30139
|
-
var ms = (0,
|
|
30143
|
+
var ms = (0, import_chunk_Y5WDJ6P7.require_ms)();
|
|
30140
30144
|
module2.exports = function(time, iat) {
|
|
30141
30145
|
var timestamp = iat || Math.floor(Date.now() / 1e3);
|
|
30142
30146
|
if (typeof time === "string") {
|
|
@@ -67597,7 +67601,7 @@ var require_connection_pool2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
67597
67601
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/tedious/connection-pool.js"(exports, module2) {
|
|
67598
67602
|
"use strict";
|
|
67599
67603
|
var tds = require_tedious();
|
|
67600
|
-
var debug =
|
|
67604
|
+
var debug = require_src()("mssql:tedi");
|
|
67601
67605
|
var BaseConnectionPool = require_connection_pool();
|
|
67602
67606
|
var { IDS } = require_utils2();
|
|
67603
67607
|
var shared = require_shared();
|
|
@@ -67740,7 +67744,7 @@ var require_connection_pool2 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
67740
67744
|
var require_transaction3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
67741
67745
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/tedious/transaction.js"(exports, module2) {
|
|
67742
67746
|
"use strict";
|
|
67743
|
-
var debug =
|
|
67747
|
+
var debug = require_src()("mssql:tedi");
|
|
67744
67748
|
var BaseTransaction = require_transaction();
|
|
67745
67749
|
var { IDS } = require_utils2();
|
|
67746
67750
|
var TransactionError = require_transaction_error();
|
|
@@ -68019,7 +68023,7 @@ var require_request3 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
|
68019
68023
|
"../../node_modules/.pnpm/mssql@11.0.1/node_modules/mssql/lib/tedious/request.js"(exports, module2) {
|
|
68020
68024
|
"use strict";
|
|
68021
68025
|
var tds = require_tedious();
|
|
68022
|
-
var debug =
|
|
68026
|
+
var debug = require_src()("mssql:tedi");
|
|
68023
68027
|
var BaseRequest = require_request();
|
|
68024
68028
|
var RequestError = require_request_error();
|
|
68025
68029
|
var { IDS, objectHasProperty: objectHasProperty2 } = require_utils2();
|