@modern-js/repo-generator 0.0.0-next-20240929025301 → 0.0.0-next-20240929094052

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.
Files changed (2) hide show
  1. package/dist/index.js +136 -889
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -150,9 +150,9 @@ var require_ms = __commonJS({
150
150
  }
151
151
  });
152
152
 
153
- // ../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js
153
+ // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/common.js
154
154
  var require_common = __commonJS({
155
- "../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
155
+ "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
156
156
  "use strict";
157
157
  function setup(env2) {
158
158
  createDebug.debug = createDebug;
@@ -314,9 +314,9 @@ var require_common = __commonJS({
314
314
  }
315
315
  });
316
316
 
317
- // ../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js
317
+ // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/browser.js
318
318
  var require_browser = __commonJS({
319
- "../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
319
+ "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
320
320
  "use strict";
321
321
  exports.formatArgs = formatArgs;
322
322
  exports.save = save;
@@ -485,124 +485,145 @@ var require_browser = __commonJS({
485
485
  }
486
486
  });
487
487
 
488
- // ../../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
489
- var require_has_flag = __commonJS({
490
- "../../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
491
- "use strict";
492
- module2.exports = (flag, argv = process.argv) => {
493
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
494
- const position = argv.indexOf(prefix + flag);
495
- const terminatorPosition = argv.indexOf("--");
496
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
497
- };
498
- }
488
+ // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
489
+ var supports_color_exports = {};
490
+ __export(supports_color_exports, {
491
+ createSupportsColor: () => createSupportsColor,
492
+ default: () => supports_color_default
499
493
  });
500
-
501
- // ../../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
502
- var require_supports_color = __commonJS({
503
- "../../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
504
- "use strict";
505
- var os3 = require("os");
506
- var tty2 = require("tty");
507
- var hasFlag2 = require_has_flag();
508
- var { env: env2 } = process;
509
- var forceColor;
510
- if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
511
- forceColor = 0;
512
- } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
513
- forceColor = 1;
514
- }
515
- if ("FORCE_COLOR" in env2) {
516
- if (env2.FORCE_COLOR === "true") {
517
- forceColor = 1;
518
- } else if (env2.FORCE_COLOR === "false") {
519
- forceColor = 0;
520
- } else {
521
- forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
522
- }
494
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
495
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
496
+ const position = argv.indexOf(prefix + flag);
497
+ const terminatorPosition = argv.indexOf("--");
498
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
499
+ }
500
+ function envForceColor() {
501
+ if ("FORCE_COLOR" in env) {
502
+ if (env.FORCE_COLOR === "true") {
503
+ return 1;
523
504
  }
524
- function translateLevel2(level) {
525
- if (level === 0) {
526
- return false;
527
- }
528
- return {
529
- level,
530
- hasBasic: true,
531
- has256: level >= 2,
532
- has16m: level >= 3
533
- };
505
+ if (env.FORCE_COLOR === "false") {
506
+ return 0;
534
507
  }
535
- function supportsColor2(haveStream, streamIsTTY) {
536
- if (forceColor === 0) {
537
- return 0;
538
- }
539
- if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
540
- return 3;
541
- }
542
- if (hasFlag2("color=256")) {
543
- return 2;
544
- }
545
- if (haveStream && !streamIsTTY && forceColor === void 0) {
546
- return 0;
547
- }
548
- const min = forceColor || 0;
549
- if (env2.TERM === "dumb") {
550
- return min;
551
- }
552
- if (process.platform === "win32") {
553
- const osRelease = os3.release().split(".");
554
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
555
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
556
- }
557
- return 1;
558
- }
559
- if ("CI" in env2) {
560
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
561
- return 1;
562
- }
563
- return min;
564
- }
565
- if ("TEAMCITY_VERSION" in env2) {
566
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
567
- }
568
- if (env2.COLORTERM === "truecolor") {
569
- return 3;
570
- }
571
- if ("TERM_PROGRAM" in env2) {
572
- const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
573
- switch (env2.TERM_PROGRAM) {
574
- case "iTerm.app":
575
- return version >= 3 ? 3 : 2;
576
- case "Apple_Terminal":
577
- return 2;
578
- }
508
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
509
+ }
510
+ }
511
+ function translateLevel(level) {
512
+ if (level === 0) {
513
+ return false;
514
+ }
515
+ return {
516
+ level,
517
+ hasBasic: true,
518
+ has256: level >= 2,
519
+ has16m: level >= 3
520
+ };
521
+ }
522
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
523
+ const noFlagForceColor = envForceColor();
524
+ if (noFlagForceColor !== void 0) {
525
+ flagForceColor = noFlagForceColor;
526
+ }
527
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
528
+ if (forceColor === 0) {
529
+ return 0;
530
+ }
531
+ if (sniffFlags) {
532
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
533
+ return 3;
534
+ }
535
+ if (hasFlag("color=256")) {
536
+ return 2;
537
+ }
538
+ }
539
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
540
+ return 1;
541
+ }
542
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
543
+ return 0;
544
+ }
545
+ const min = forceColor || 0;
546
+ if (env.TERM === "dumb") {
547
+ return min;
548
+ }
549
+ if (import_node_process.default.platform === "win32") {
550
+ const osRelease = import_node_os.default.release().split(".");
551
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
552
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
553
+ }
554
+ return 1;
555
+ }
556
+ if ("CI" in env) {
557
+ if ("GITHUB_ACTIONS" in env) {
558
+ return 3;
559
+ }
560
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
561
+ return 1;
562
+ }
563
+ return min;
564
+ }
565
+ if ("TEAMCITY_VERSION" in env) {
566
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
567
+ }
568
+ if (env.COLORTERM === "truecolor") {
569
+ return 3;
570
+ }
571
+ if (env.TERM === "xterm-kitty") {
572
+ return 3;
573
+ }
574
+ if ("TERM_PROGRAM" in env) {
575
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
576
+ switch (env.TERM_PROGRAM) {
577
+ case "iTerm.app": {
578
+ return version >= 3 ? 3 : 2;
579
579
  }
580
- if (/-256(color)?$/i.test(env2.TERM)) {
580
+ case "Apple_Terminal": {
581
581
  return 2;
582
582
  }
583
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
584
- return 1;
585
- }
586
- if ("COLORTERM" in env2) {
587
- return 1;
588
- }
589
- return min;
590
583
  }
591
- function getSupportLevel(stream4) {
592
- const level = supportsColor2(stream4, stream4 && stream4.isTTY);
593
- return translateLevel2(level);
584
+ }
585
+ if (/-256(color)?$/i.test(env.TERM)) {
586
+ return 2;
587
+ }
588
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
589
+ return 1;
590
+ }
591
+ if ("COLORTERM" in env) {
592
+ return 1;
593
+ }
594
+ return min;
595
+ }
596
+ function createSupportsColor(stream4, options = {}) {
597
+ const level = _supportsColor(stream4, {
598
+ streamIsTTY: stream4 && stream4.isTTY,
599
+ ...options
600
+ });
601
+ return translateLevel(level);
602
+ }
603
+ var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
604
+ var init_supports_color = __esm({
605
+ "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
606
+ "use strict";
607
+ import_node_process = __toESM(require("process"));
608
+ import_node_os = __toESM(require("os"));
609
+ import_node_tty = __toESM(require("tty"));
610
+ ({ env } = import_node_process.default);
611
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
612
+ flagForceColor = 0;
613
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
614
+ flagForceColor = 1;
594
615
  }
595
- module2.exports = {
596
- supportsColor: getSupportLevel,
597
- stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
598
- stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
616
+ supportsColor = {
617
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
618
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
599
619
  };
620
+ supports_color_default = supportsColor;
600
621
  }
601
622
  });
602
623
 
603
- // ../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js
624
+ // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/node.js
604
625
  var require_node = __commonJS({
605
- "../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
626
+ "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
606
627
  "use strict";
607
628
  var tty2 = require("tty");
608
629
  var util2 = require("util");
@@ -619,7 +640,7 @@ var require_node = __commonJS({
619
640
  );
620
641
  exports.colors = [6, 2, 3, 4, 5, 1];
621
642
  try {
622
- const supportsColor2 = require_supports_color();
643
+ const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
623
644
  if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
624
645
  exports.colors = [
625
646
  20,
@@ -775,9 +796,9 @@ var require_node = __commonJS({
775
796
  }
776
797
  });
777
798
 
778
- // ../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js
799
+ // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/index.js
779
800
  var require_src = __commonJS({
780
- "../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
801
+ "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
781
802
  "use strict";
782
803
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
783
804
  module2.exports = require_browser();
@@ -67968,780 +67989,6 @@ var require_inquirer2 = __commonJS({
67968
67989
  }
67969
67990
  });
67970
67991
 
67971
- // ../../../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
67972
- var require_ms2 = __commonJS({
67973
- "../../../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module2) {
67974
- "use strict";
67975
- var s = 1e3;
67976
- var m = s * 60;
67977
- var h = m * 60;
67978
- var d = h * 24;
67979
- var w = d * 7;
67980
- var y = d * 365.25;
67981
- module2.exports = function(val, options) {
67982
- options = options || {};
67983
- var type = typeof val;
67984
- if (type === "string" && val.length > 0) {
67985
- return parse3(val);
67986
- } else if (type === "number" && isFinite(val)) {
67987
- return options.long ? fmtLong(val) : fmtShort(val);
67988
- }
67989
- throw new Error(
67990
- "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
67991
- );
67992
- };
67993
- function parse3(str) {
67994
- str = String(str);
67995
- if (str.length > 100) {
67996
- return;
67997
- }
67998
- 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(
67999
- str
68000
- );
68001
- if (!match) {
68002
- return;
68003
- }
68004
- var n = parseFloat(match[1]);
68005
- var type = (match[2] || "ms").toLowerCase();
68006
- switch (type) {
68007
- case "years":
68008
- case "year":
68009
- case "yrs":
68010
- case "yr":
68011
- case "y":
68012
- return n * y;
68013
- case "weeks":
68014
- case "week":
68015
- case "w":
68016
- return n * w;
68017
- case "days":
68018
- case "day":
68019
- case "d":
68020
- return n * d;
68021
- case "hours":
68022
- case "hour":
68023
- case "hrs":
68024
- case "hr":
68025
- case "h":
68026
- return n * h;
68027
- case "minutes":
68028
- case "minute":
68029
- case "mins":
68030
- case "min":
68031
- case "m":
68032
- return n * m;
68033
- case "seconds":
68034
- case "second":
68035
- case "secs":
68036
- case "sec":
68037
- case "s":
68038
- return n * s;
68039
- case "milliseconds":
68040
- case "millisecond":
68041
- case "msecs":
68042
- case "msec":
68043
- case "ms":
68044
- return n;
68045
- default:
68046
- return void 0;
68047
- }
68048
- }
68049
- function fmtShort(ms) {
68050
- var msAbs = Math.abs(ms);
68051
- if (msAbs >= d) {
68052
- return Math.round(ms / d) + "d";
68053
- }
68054
- if (msAbs >= h) {
68055
- return Math.round(ms / h) + "h";
68056
- }
68057
- if (msAbs >= m) {
68058
- return Math.round(ms / m) + "m";
68059
- }
68060
- if (msAbs >= s) {
68061
- return Math.round(ms / s) + "s";
68062
- }
68063
- return ms + "ms";
68064
- }
68065
- function fmtLong(ms) {
68066
- var msAbs = Math.abs(ms);
68067
- if (msAbs >= d) {
68068
- return plural(ms, msAbs, d, "day");
68069
- }
68070
- if (msAbs >= h) {
68071
- return plural(ms, msAbs, h, "hour");
68072
- }
68073
- if (msAbs >= m) {
68074
- return plural(ms, msAbs, m, "minute");
68075
- }
68076
- if (msAbs >= s) {
68077
- return plural(ms, msAbs, s, "second");
68078
- }
68079
- return ms + " ms";
68080
- }
68081
- function plural(ms, msAbs, n, name) {
68082
- var isPlural = msAbs >= n * 1.5;
68083
- return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
68084
- }
68085
- }
68086
- });
68087
-
68088
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
68089
- var require_common3 = __commonJS({
68090
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
68091
- "use strict";
68092
- function setup(env2) {
68093
- createDebug.debug = createDebug;
68094
- createDebug.default = createDebug;
68095
- createDebug.coerce = coerce;
68096
- createDebug.disable = disable;
68097
- createDebug.enable = enable;
68098
- createDebug.enabled = enabled;
68099
- createDebug.humanize = require_ms2();
68100
- createDebug.destroy = destroy2;
68101
- Object.keys(env2).forEach((key) => {
68102
- createDebug[key] = env2[key];
68103
- });
68104
- createDebug.names = [];
68105
- createDebug.skips = [];
68106
- createDebug.formatters = {};
68107
- function selectColor(namespace) {
68108
- let hash = 0;
68109
- for (let i = 0; i < namespace.length; i++) {
68110
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
68111
- hash |= 0;
68112
- }
68113
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
68114
- }
68115
- createDebug.selectColor = selectColor;
68116
- function createDebug(namespace) {
68117
- let prevTime;
68118
- let enableOverride = null;
68119
- let namespacesCache;
68120
- let enabledCache;
68121
- function debug2(...args) {
68122
- if (!debug2.enabled) {
68123
- return;
68124
- }
68125
- const self3 = debug2;
68126
- const curr = Number(/* @__PURE__ */ new Date());
68127
- const ms = curr - (prevTime || curr);
68128
- self3.diff = ms;
68129
- self3.prev = prevTime;
68130
- self3.curr = curr;
68131
- prevTime = curr;
68132
- args[0] = createDebug.coerce(args[0]);
68133
- if (typeof args[0] !== "string") {
68134
- args.unshift("%O");
68135
- }
68136
- let index = 0;
68137
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
68138
- if (match === "%%") {
68139
- return "%";
68140
- }
68141
- index++;
68142
- const formatter = createDebug.formatters[format];
68143
- if (typeof formatter === "function") {
68144
- const val = args[index];
68145
- match = formatter.call(self3, val);
68146
- args.splice(index, 1);
68147
- index--;
68148
- }
68149
- return match;
68150
- });
68151
- createDebug.formatArgs.call(self3, args);
68152
- const logFn = self3.log || createDebug.log;
68153
- logFn.apply(self3, args);
68154
- }
68155
- debug2.namespace = namespace;
68156
- debug2.useColors = createDebug.useColors();
68157
- debug2.color = createDebug.selectColor(namespace);
68158
- debug2.extend = extend2;
68159
- debug2.destroy = createDebug.destroy;
68160
- Object.defineProperty(debug2, "enabled", {
68161
- enumerable: true,
68162
- configurable: false,
68163
- get: () => {
68164
- if (enableOverride !== null) {
68165
- return enableOverride;
68166
- }
68167
- if (namespacesCache !== createDebug.namespaces) {
68168
- namespacesCache = createDebug.namespaces;
68169
- enabledCache = createDebug.enabled(namespace);
68170
- }
68171
- return enabledCache;
68172
- },
68173
- set: (v) => {
68174
- enableOverride = v;
68175
- }
68176
- });
68177
- if (typeof createDebug.init === "function") {
68178
- createDebug.init(debug2);
68179
- }
68180
- return debug2;
68181
- }
68182
- function extend2(namespace, delimiter) {
68183
- const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
68184
- newDebug.log = this.log;
68185
- return newDebug;
68186
- }
68187
- function enable(namespaces) {
68188
- createDebug.save(namespaces);
68189
- createDebug.namespaces = namespaces;
68190
- createDebug.names = [];
68191
- createDebug.skips = [];
68192
- let i;
68193
- const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
68194
- const len = split.length;
68195
- for (i = 0; i < len; i++) {
68196
- if (!split[i]) {
68197
- continue;
68198
- }
68199
- namespaces = split[i].replace(/\*/g, ".*?");
68200
- if (namespaces[0] === "-") {
68201
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
68202
- } else {
68203
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
68204
- }
68205
- }
68206
- }
68207
- function disable() {
68208
- const namespaces = [
68209
- ...createDebug.names.map(toNamespace),
68210
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
68211
- ].join(",");
68212
- createDebug.enable("");
68213
- return namespaces;
68214
- }
68215
- function enabled(name) {
68216
- if (name[name.length - 1] === "*") {
68217
- return true;
68218
- }
68219
- let i;
68220
- let len;
68221
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
68222
- if (createDebug.skips[i].test(name)) {
68223
- return false;
68224
- }
68225
- }
68226
- for (i = 0, len = createDebug.names.length; i < len; i++) {
68227
- if (createDebug.names[i].test(name)) {
68228
- return true;
68229
- }
68230
- }
68231
- return false;
68232
- }
68233
- function toNamespace(regexp) {
68234
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
68235
- }
68236
- function coerce(val) {
68237
- if (val instanceof Error) {
68238
- return val.stack || val.message;
68239
- }
68240
- return val;
68241
- }
68242
- function destroy2() {
68243
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
68244
- }
68245
- createDebug.enable(createDebug.load());
68246
- return createDebug;
68247
- }
68248
- module2.exports = setup;
68249
- }
68250
- });
68251
-
68252
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
68253
- var require_browser2 = __commonJS({
68254
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
68255
- "use strict";
68256
- exports.formatArgs = formatArgs;
68257
- exports.save = save;
68258
- exports.load = load;
68259
- exports.useColors = useColors;
68260
- exports.storage = localstorage();
68261
- exports.destroy = (() => {
68262
- let warned = false;
68263
- return () => {
68264
- if (!warned) {
68265
- warned = true;
68266
- console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
68267
- }
68268
- };
68269
- })();
68270
- exports.colors = [
68271
- "#0000CC",
68272
- "#0000FF",
68273
- "#0033CC",
68274
- "#0033FF",
68275
- "#0066CC",
68276
- "#0066FF",
68277
- "#0099CC",
68278
- "#0099FF",
68279
- "#00CC00",
68280
- "#00CC33",
68281
- "#00CC66",
68282
- "#00CC99",
68283
- "#00CCCC",
68284
- "#00CCFF",
68285
- "#3300CC",
68286
- "#3300FF",
68287
- "#3333CC",
68288
- "#3333FF",
68289
- "#3366CC",
68290
- "#3366FF",
68291
- "#3399CC",
68292
- "#3399FF",
68293
- "#33CC00",
68294
- "#33CC33",
68295
- "#33CC66",
68296
- "#33CC99",
68297
- "#33CCCC",
68298
- "#33CCFF",
68299
- "#6600CC",
68300
- "#6600FF",
68301
- "#6633CC",
68302
- "#6633FF",
68303
- "#66CC00",
68304
- "#66CC33",
68305
- "#9900CC",
68306
- "#9900FF",
68307
- "#9933CC",
68308
- "#9933FF",
68309
- "#99CC00",
68310
- "#99CC33",
68311
- "#CC0000",
68312
- "#CC0033",
68313
- "#CC0066",
68314
- "#CC0099",
68315
- "#CC00CC",
68316
- "#CC00FF",
68317
- "#CC3300",
68318
- "#CC3333",
68319
- "#CC3366",
68320
- "#CC3399",
68321
- "#CC33CC",
68322
- "#CC33FF",
68323
- "#CC6600",
68324
- "#CC6633",
68325
- "#CC9900",
68326
- "#CC9933",
68327
- "#CCCC00",
68328
- "#CCCC33",
68329
- "#FF0000",
68330
- "#FF0033",
68331
- "#FF0066",
68332
- "#FF0099",
68333
- "#FF00CC",
68334
- "#FF00FF",
68335
- "#FF3300",
68336
- "#FF3333",
68337
- "#FF3366",
68338
- "#FF3399",
68339
- "#FF33CC",
68340
- "#FF33FF",
68341
- "#FF6600",
68342
- "#FF6633",
68343
- "#FF9900",
68344
- "#FF9933",
68345
- "#FFCC00",
68346
- "#FFCC33"
68347
- ];
68348
- function useColors() {
68349
- if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
68350
- return true;
68351
- }
68352
- if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
68353
- return false;
68354
- }
68355
- return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
68356
- typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
68357
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
68358
- typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
68359
- typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
68360
- }
68361
- function formatArgs(args) {
68362
- args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
68363
- if (!this.useColors) {
68364
- return;
68365
- }
68366
- const c = "color: " + this.color;
68367
- args.splice(1, 0, c, "color: inherit");
68368
- let index = 0;
68369
- let lastC = 0;
68370
- args[0].replace(/%[a-zA-Z%]/g, (match) => {
68371
- if (match === "%%") {
68372
- return;
68373
- }
68374
- index++;
68375
- if (match === "%c") {
68376
- lastC = index;
68377
- }
68378
- });
68379
- args.splice(lastC, 0, c);
68380
- }
68381
- exports.log = console.debug || console.log || (() => {
68382
- });
68383
- function save(namespaces) {
68384
- try {
68385
- if (namespaces) {
68386
- exports.storage.setItem("debug", namespaces);
68387
- } else {
68388
- exports.storage.removeItem("debug");
68389
- }
68390
- } catch (error) {
68391
- }
68392
- }
68393
- function load() {
68394
- let r;
68395
- try {
68396
- r = exports.storage.getItem("debug");
68397
- } catch (error) {
68398
- }
68399
- if (!r && typeof process !== "undefined" && "env" in process) {
68400
- r = process.env.DEBUG;
68401
- }
68402
- return r;
68403
- }
68404
- function localstorage() {
68405
- try {
68406
- return localStorage;
68407
- } catch (error) {
68408
- }
68409
- }
68410
- module2.exports = require_common3()(exports);
68411
- var { formatters } = module2.exports;
68412
- formatters.j = function(v) {
68413
- try {
68414
- return JSON.stringify(v);
68415
- } catch (error) {
68416
- return "[UnexpectedJSONParseError]: " + error.message;
68417
- }
68418
- };
68419
- }
68420
- });
68421
-
68422
- // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
68423
- var supports_color_exports = {};
68424
- __export(supports_color_exports, {
68425
- createSupportsColor: () => createSupportsColor,
68426
- default: () => supports_color_default
68427
- });
68428
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
68429
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
68430
- const position = argv.indexOf(prefix + flag);
68431
- const terminatorPosition = argv.indexOf("--");
68432
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
68433
- }
68434
- function envForceColor() {
68435
- if ("FORCE_COLOR" in env) {
68436
- if (env.FORCE_COLOR === "true") {
68437
- return 1;
68438
- }
68439
- if (env.FORCE_COLOR === "false") {
68440
- return 0;
68441
- }
68442
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
68443
- }
68444
- }
68445
- function translateLevel(level) {
68446
- if (level === 0) {
68447
- return false;
68448
- }
68449
- return {
68450
- level,
68451
- hasBasic: true,
68452
- has256: level >= 2,
68453
- has16m: level >= 3
68454
- };
68455
- }
68456
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
68457
- const noFlagForceColor = envForceColor();
68458
- if (noFlagForceColor !== void 0) {
68459
- flagForceColor = noFlagForceColor;
68460
- }
68461
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
68462
- if (forceColor === 0) {
68463
- return 0;
68464
- }
68465
- if (sniffFlags) {
68466
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
68467
- return 3;
68468
- }
68469
- if (hasFlag("color=256")) {
68470
- return 2;
68471
- }
68472
- }
68473
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
68474
- return 1;
68475
- }
68476
- if (haveStream && !streamIsTTY && forceColor === void 0) {
68477
- return 0;
68478
- }
68479
- const min = forceColor || 0;
68480
- if (env.TERM === "dumb") {
68481
- return min;
68482
- }
68483
- if (import_node_process.default.platform === "win32") {
68484
- const osRelease = import_node_os.default.release().split(".");
68485
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
68486
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
68487
- }
68488
- return 1;
68489
- }
68490
- if ("CI" in env) {
68491
- if ("GITHUB_ACTIONS" in env) {
68492
- return 3;
68493
- }
68494
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
68495
- return 1;
68496
- }
68497
- return min;
68498
- }
68499
- if ("TEAMCITY_VERSION" in env) {
68500
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
68501
- }
68502
- if (env.COLORTERM === "truecolor") {
68503
- return 3;
68504
- }
68505
- if (env.TERM === "xterm-kitty") {
68506
- return 3;
68507
- }
68508
- if ("TERM_PROGRAM" in env) {
68509
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
68510
- switch (env.TERM_PROGRAM) {
68511
- case "iTerm.app": {
68512
- return version >= 3 ? 3 : 2;
68513
- }
68514
- case "Apple_Terminal": {
68515
- return 2;
68516
- }
68517
- }
68518
- }
68519
- if (/-256(color)?$/i.test(env.TERM)) {
68520
- return 2;
68521
- }
68522
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
68523
- return 1;
68524
- }
68525
- if ("COLORTERM" in env) {
68526
- return 1;
68527
- }
68528
- return min;
68529
- }
68530
- function createSupportsColor(stream4, options = {}) {
68531
- const level = _supportsColor(stream4, {
68532
- streamIsTTY: stream4 && stream4.isTTY,
68533
- ...options
68534
- });
68535
- return translateLevel(level);
68536
- }
68537
- var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
68538
- var init_supports_color = __esm({
68539
- "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
68540
- "use strict";
68541
- import_node_process = __toESM(require("process"));
68542
- import_node_os = __toESM(require("os"));
68543
- import_node_tty = __toESM(require("tty"));
68544
- ({ env } = import_node_process.default);
68545
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
68546
- flagForceColor = 0;
68547
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
68548
- flagForceColor = 1;
68549
- }
68550
- supportsColor = {
68551
- stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
68552
- stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
68553
- };
68554
- supports_color_default = supportsColor;
68555
- }
68556
- });
68557
-
68558
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
68559
- var require_node3 = __commonJS({
68560
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
68561
- "use strict";
68562
- var tty2 = require("tty");
68563
- var util2 = require("util");
68564
- exports.init = init;
68565
- exports.log = log;
68566
- exports.formatArgs = formatArgs;
68567
- exports.save = save;
68568
- exports.load = load;
68569
- exports.useColors = useColors;
68570
- exports.destroy = util2.deprecate(
68571
- () => {
68572
- },
68573
- "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
68574
- );
68575
- exports.colors = [6, 2, 3, 4, 5, 1];
68576
- try {
68577
- const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
68578
- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
68579
- exports.colors = [
68580
- 20,
68581
- 21,
68582
- 26,
68583
- 27,
68584
- 32,
68585
- 33,
68586
- 38,
68587
- 39,
68588
- 40,
68589
- 41,
68590
- 42,
68591
- 43,
68592
- 44,
68593
- 45,
68594
- 56,
68595
- 57,
68596
- 62,
68597
- 63,
68598
- 68,
68599
- 69,
68600
- 74,
68601
- 75,
68602
- 76,
68603
- 77,
68604
- 78,
68605
- 79,
68606
- 80,
68607
- 81,
68608
- 92,
68609
- 93,
68610
- 98,
68611
- 99,
68612
- 112,
68613
- 113,
68614
- 128,
68615
- 129,
68616
- 134,
68617
- 135,
68618
- 148,
68619
- 149,
68620
- 160,
68621
- 161,
68622
- 162,
68623
- 163,
68624
- 164,
68625
- 165,
68626
- 166,
68627
- 167,
68628
- 168,
68629
- 169,
68630
- 170,
68631
- 171,
68632
- 172,
68633
- 173,
68634
- 178,
68635
- 179,
68636
- 184,
68637
- 185,
68638
- 196,
68639
- 197,
68640
- 198,
68641
- 199,
68642
- 200,
68643
- 201,
68644
- 202,
68645
- 203,
68646
- 204,
68647
- 205,
68648
- 206,
68649
- 207,
68650
- 208,
68651
- 209,
68652
- 214,
68653
- 215,
68654
- 220,
68655
- 221
68656
- ];
68657
- }
68658
- } catch (error) {
68659
- }
68660
- exports.inspectOpts = Object.keys(process.env).filter((key) => {
68661
- return /^debug_/i.test(key);
68662
- }).reduce((obj, key) => {
68663
- const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
68664
- return k.toUpperCase();
68665
- });
68666
- let val = process.env[key];
68667
- if (/^(yes|on|true|enabled)$/i.test(val)) {
68668
- val = true;
68669
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
68670
- val = false;
68671
- } else if (val === "null") {
68672
- val = null;
68673
- } else {
68674
- val = Number(val);
68675
- }
68676
- obj[prop] = val;
68677
- return obj;
68678
- }, {});
68679
- function useColors() {
68680
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
68681
- }
68682
- function formatArgs(args) {
68683
- const { namespace: name, useColors: useColors2 } = this;
68684
- if (useColors2) {
68685
- const c = this.color;
68686
- const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
68687
- const prefix = ` ${colorCode};1m${name} \x1B[0m`;
68688
- args[0] = prefix + args[0].split("\n").join("\n" + prefix);
68689
- args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
68690
- } else {
68691
- args[0] = getDate() + name + " " + args[0];
68692
- }
68693
- }
68694
- function getDate() {
68695
- if (exports.inspectOpts.hideDate) {
68696
- return "";
68697
- }
68698
- return (/* @__PURE__ */ new Date()).toISOString() + " ";
68699
- }
68700
- function log(...args) {
68701
- return process.stderr.write(util2.format(...args) + "\n");
68702
- }
68703
- function save(namespaces) {
68704
- if (namespaces) {
68705
- process.env.DEBUG = namespaces;
68706
- } else {
68707
- delete process.env.DEBUG;
68708
- }
68709
- }
68710
- function load() {
68711
- return process.env.DEBUG;
68712
- }
68713
- function init(debug2) {
68714
- debug2.inspectOpts = {};
68715
- const keys = Object.keys(exports.inspectOpts);
68716
- for (let i = 0; i < keys.length; i++) {
68717
- debug2.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
68718
- }
68719
- }
68720
- module2.exports = require_common3()(exports);
68721
- var { formatters } = module2.exports;
68722
- formatters.o = function(v) {
68723
- this.inspectOpts.colors = this.useColors;
68724
- return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
68725
- };
68726
- formatters.O = function(v) {
68727
- this.inspectOpts.colors = this.useColors;
68728
- return util2.inspect(v, this.inspectOpts);
68729
- };
68730
- }
68731
- });
68732
-
68733
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
68734
- var require_src4 = __commonJS({
68735
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
68736
- "use strict";
68737
- if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
68738
- module2.exports = require_browser2();
68739
- } else {
68740
- module2.exports = require_node3();
68741
- }
68742
- }
68743
- });
68744
-
68745
67992
  // ../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js
68746
67993
  var require_get_type = __commonJS({
68747
67994
  "../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/utils/get-type.js"(exports) {
@@ -68894,7 +68141,7 @@ var require_filter3 = __commonJS({
68894
68141
  return r;
68895
68142
  };
68896
68143
  Object.defineProperty(exports, "__esModule", { value: true });
68897
- var debug_1 = require_src4();
68144
+ var debug_1 = require_src();
68898
68145
  var mongo_eql_1 = require_mongo_eql();
68899
68146
  var ops = require_ops();
68900
68147
  var get_type_1 = require_get_type();
@@ -69054,7 +68301,7 @@ var require_mods = __commonJS({
69054
68301
  return r;
69055
68302
  };
69056
68303
  Object.defineProperty(exports, "__esModule", { value: true });
69057
- var debug_1 = require_src4();
68304
+ var debug_1 = require_src();
69058
68305
  var mongoDot = require_mongo_dot();
69059
68306
  var mongo_eql_1 = require_mongo_eql();
69060
68307
  var get_type_1 = require_get_type();
@@ -69515,7 +68762,7 @@ var require_query = __commonJS({
69515
68762
  "../../../../node_modules/.pnpm/declaration-update@0.0.2/node_modules/declaration-update/dist/query.js"(exports) {
69516
68763
  "use strict";
69517
68764
  Object.defineProperty(exports, "__esModule", { value: true });
69518
- var debug_1 = require_src4();
68765
+ var debug_1 = require_src();
69519
68766
  var filter_1 = require_filter3();
69520
68767
  var mods = require_mods();
69521
68768
  var mongoDot = require_mongo_dot();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-20240929025301",
18
+ "version": "0.0.0-next-20240929094052",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,7 +23,7 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "dependencies": {
26
- "@modern-js/utils": "0.0.0-next-20240929025301"
26
+ "@modern-js/utils": "0.0.0-next-20240929094052"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@modern-js/codesmith": "2.5.1",
@@ -32,14 +32,14 @@
32
32
  "@types/node": "^14",
33
33
  "jest": "^29",
34
34
  "typescript": "^5",
35
- "@modern-js/base-generator": "0.0.0-next-20240929025301",
36
- "@modern-js/generator-common": "0.0.0-next-20240929025301",
37
- "@modern-js/generator-plugin": "0.0.0-next-20240929025301",
38
- "@modern-js/module-generator": "0.0.0-next-20240929025301",
39
- "@scripts/jest-config": "0.0.0-next-20240929025301",
40
- "@modern-js/generator-utils": "0.0.0-next-20240929025301",
41
- "@modern-js/mwa-generator": "0.0.0-next-20240929025301",
42
- "@scripts/build": "0.0.0-next-20240929025301"
35
+ "@modern-js/base-generator": "0.0.0-next-20240929094052",
36
+ "@modern-js/generator-plugin": "0.0.0-next-20240929094052",
37
+ "@modern-js/generator-common": "0.0.0-next-20240929094052",
38
+ "@modern-js/generator-utils": "0.0.0-next-20240929094052",
39
+ "@modern-js/mwa-generator": "0.0.0-next-20240929094052",
40
+ "@modern-js/module-generator": "0.0.0-next-20240929094052",
41
+ "@scripts/build": "0.0.0-next-20240929094052",
42
+ "@scripts/jest-config": "0.0.0-next-20240929094052"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {