@modern-js/packages-generator 3.1.25 → 3.1.27

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 +241 -255
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -22,6 +22,9 @@ var __spreadValues = (a, b) => {
22
22
  return a;
23
23
  };
24
24
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __esm = (fn, res) => function __init() {
26
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
27
+ };
25
28
  var __commonJS = (cb, mod) => function __require() {
26
29
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
30
  };
@@ -3500,13 +3503,13 @@ var require_chalk = __commonJS({
3500
3503
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
3501
3504
  }
3502
3505
  }
3503
- function translateLevel(e3) {
3506
+ function translateLevel2(e3) {
3504
3507
  if (e3 === 0) {
3505
3508
  return false;
3506
3509
  }
3507
3510
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
3508
3511
  }
3509
- function supportsColor(e3, t3) {
3512
+ function supportsColor2(e3, t3) {
3510
3513
  if (c === 0) {
3511
3514
  return 0;
3512
3515
  }
@@ -3563,10 +3566,10 @@ var require_chalk = __commonJS({
3563
3566
  return n3;
3564
3567
  }
3565
3568
  function getSupportLevel(e3) {
3566
- const t3 = supportsColor(e3, e3 && e3.isTTY);
3567
- return translateLevel(t3);
3569
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
3570
+ return translateLevel2(t3);
3568
3571
  }
3569
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
3572
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
3570
3573
  }, 37: (e2) => {
3571
3574
  "use strict";
3572
3575
  e2.exports = require("os");
@@ -12641,13 +12644,13 @@ var require_debug = __commonJS({
12641
12644
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
12642
12645
  }
12643
12646
  }
12644
- function translateLevel(e3) {
12647
+ function translateLevel2(e3) {
12645
12648
  if (e3 === 0) {
12646
12649
  return false;
12647
12650
  }
12648
12651
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
12649
12652
  }
12650
- function supportsColor(e3, t3) {
12653
+ function supportsColor2(e3, t3) {
12651
12654
  if (c === 0) {
12652
12655
  return 0;
12653
12656
  }
@@ -12704,10 +12707,10 @@ var require_debug = __commonJS({
12704
12707
  return r3;
12705
12708
  }
12706
12709
  function getSupportLevel(e3) {
12707
- const t3 = supportsColor(e3, e3 && e3.isTTY);
12708
- return translateLevel(t3);
12710
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
12711
+ return translateLevel2(t3);
12709
12712
  }
12710
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
12713
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
12711
12714
  }, 37: (e2) => {
12712
12715
  "use strict";
12713
12716
  e2.exports = require("os");
@@ -43528,15 +43531,15 @@ var require_runtime = __commonJS({
43528
43531
  throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ").");
43529
43532
  }
43530
43533
  }
43531
- function template(templateSpec, env) {
43532
- if (!env) {
43534
+ function template(templateSpec, env2) {
43535
+ if (!env2) {
43533
43536
  throw new _exception2["default"]("No environment passed to template");
43534
43537
  }
43535
43538
  if (!templateSpec || !templateSpec.main) {
43536
43539
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
43537
43540
  }
43538
43541
  templateSpec.main.decorator = templateSpec.main_d;
43539
- env.VM.checkRevision(templateSpec.compiler);
43542
+ env2.VM.checkRevision(templateSpec.compiler);
43540
43543
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
43541
43544
  function invokePartialWrapper(partial, context, options) {
43542
43545
  if (options.hash) {
@@ -43545,14 +43548,14 @@ var require_runtime = __commonJS({
43545
43548
  options.ids[0] = true;
43546
43549
  }
43547
43550
  }
43548
- partial = env.VM.resolvePartial.call(this, partial, context, options);
43551
+ partial = env2.VM.resolvePartial.call(this, partial, context, options);
43549
43552
  var extendedOptions = Utils.extend({}, options, {
43550
43553
  hooks: this.hooks,
43551
43554
  protoAccessControl: this.protoAccessControl
43552
43555
  });
43553
- var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
43554
- if (result == null && env.compile) {
43555
- options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
43556
+ var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
43557
+ if (result == null && env2.compile) {
43558
+ options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
43556
43559
  result = options.partials[options.name](context, extendedOptions);
43557
43560
  }
43558
43561
  if (result != null) {
@@ -43637,7 +43640,7 @@ var require_runtime = __commonJS({
43637
43640
  },
43638
43641
  // An empty object to use as replacement for null-contexts
43639
43642
  nullContext: Object.seal({}),
43640
- noop: env.VM.noop,
43643
+ noop: env2.VM.noop,
43641
43644
  compilerInfo: templateSpec.compiler
43642
43645
  };
43643
43646
  function ret(context) {
@@ -43664,14 +43667,14 @@ var require_runtime = __commonJS({
43664
43667
  ret.isTop = true;
43665
43668
  ret._setup = function(options) {
43666
43669
  if (!options.partial) {
43667
- var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
43670
+ var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
43668
43671
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
43669
43672
  container.helpers = mergedHelpers;
43670
43673
  if (templateSpec.usePartial) {
43671
- container.partials = container.mergeIfNeeded(options.partials, env.partials);
43674
+ container.partials = container.mergeIfNeeded(options.partials, env2.partials);
43672
43675
  }
43673
43676
  if (templateSpec.usePartial || templateSpec.useDecorators) {
43674
- container.decorators = Utils.extend({}, env.decorators, options.decorators);
43677
+ container.decorators = Utils.extend({}, env2.decorators, options.decorators);
43675
43678
  }
43676
43679
  container.hooks = {};
43677
43680
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -45473,7 +45476,7 @@ var require_compiler = __commonJS({
45473
45476
  }
45474
45477
  }
45475
45478
  };
45476
- function precompile(input, options, env) {
45479
+ function precompile(input, options, env2) {
45477
45480
  if (input == null || typeof input !== "string" && input.type !== "Program") {
45478
45481
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
45479
45482
  }
@@ -45484,10 +45487,10 @@ var require_compiler = __commonJS({
45484
45487
  if (options.compat) {
45485
45488
  options.useDepths = true;
45486
45489
  }
45487
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
45488
- return new env.JavaScriptCompiler().compile(environment, options);
45490
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
45491
+ return new env2.JavaScriptCompiler().compile(environment, options);
45489
45492
  }
45490
- function compile2(input, options, env) {
45493
+ function compile2(input, options, env2) {
45491
45494
  if (options === void 0)
45492
45495
  options = {};
45493
45496
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -45502,8 +45505,8 @@ var require_compiler = __commonJS({
45502
45505
  }
45503
45506
  var compiled = void 0;
45504
45507
  function compileInput() {
45505
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
45506
- return env.template(templateSpec);
45508
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
45509
+ return env2.template(templateSpec);
45507
45510
  }
45508
45511
  function ret(context, execOptions) {
45509
45512
  if (!compiled) {
@@ -50404,26 +50407,26 @@ var require_has_flag = __commonJS({
50404
50407
  var require_supports_color = __commonJS({
50405
50408
  "../../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
50406
50409
  "use strict";
50407
- var os = require("os");
50408
- var tty = require("tty");
50409
- var hasFlag = require_has_flag();
50410
- var { env } = process;
50410
+ var os2 = require("os");
50411
+ var tty2 = require("tty");
50412
+ var hasFlag2 = require_has_flag();
50413
+ var { env: env2 } = process;
50411
50414
  var forceColor;
50412
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
50415
+ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
50413
50416
  forceColor = 0;
50414
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
50417
+ } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
50415
50418
  forceColor = 1;
50416
50419
  }
50417
- if ("FORCE_COLOR" in env) {
50418
- if (env.FORCE_COLOR === "true") {
50420
+ if ("FORCE_COLOR" in env2) {
50421
+ if (env2.FORCE_COLOR === "true") {
50419
50422
  forceColor = 1;
50420
- } else if (env.FORCE_COLOR === "false") {
50423
+ } else if (env2.FORCE_COLOR === "false") {
50421
50424
  forceColor = 0;
50422
50425
  } else {
50423
- forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
50426
+ forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
50424
50427
  }
50425
50428
  }
50426
- function translateLevel(level) {
50429
+ function translateLevel2(level) {
50427
50430
  if (level === 0) {
50428
50431
  return false;
50429
50432
  }
@@ -50434,70 +50437,70 @@ var require_supports_color = __commonJS({
50434
50437
  has16m: level >= 3
50435
50438
  };
50436
50439
  }
50437
- function supportsColor(haveStream, streamIsTTY) {
50440
+ function supportsColor2(haveStream, streamIsTTY) {
50438
50441
  if (forceColor === 0) {
50439
50442
  return 0;
50440
50443
  }
50441
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
50444
+ if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
50442
50445
  return 3;
50443
50446
  }
50444
- if (hasFlag("color=256")) {
50447
+ if (hasFlag2("color=256")) {
50445
50448
  return 2;
50446
50449
  }
50447
50450
  if (haveStream && !streamIsTTY && forceColor === void 0) {
50448
50451
  return 0;
50449
50452
  }
50450
50453
  const min = forceColor || 0;
50451
- if (env.TERM === "dumb") {
50454
+ if (env2.TERM === "dumb") {
50452
50455
  return min;
50453
50456
  }
50454
50457
  if (process.platform === "win32") {
50455
- const osRelease = os.release().split(".");
50458
+ const osRelease = os2.release().split(".");
50456
50459
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
50457
50460
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
50458
50461
  }
50459
50462
  return 1;
50460
50463
  }
50461
- if ("CI" in env) {
50462
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
50464
+ if ("CI" in env2) {
50465
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
50463
50466
  return 1;
50464
50467
  }
50465
50468
  return min;
50466
50469
  }
50467
- if ("TEAMCITY_VERSION" in env) {
50468
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
50470
+ if ("TEAMCITY_VERSION" in env2) {
50471
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
50469
50472
  }
50470
- if (env.COLORTERM === "truecolor") {
50473
+ if (env2.COLORTERM === "truecolor") {
50471
50474
  return 3;
50472
50475
  }
50473
- if ("TERM_PROGRAM" in env) {
50474
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
50475
- switch (env.TERM_PROGRAM) {
50476
+ if ("TERM_PROGRAM" in env2) {
50477
+ const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
50478
+ switch (env2.TERM_PROGRAM) {
50476
50479
  case "iTerm.app":
50477
50480
  return version >= 3 ? 3 : 2;
50478
50481
  case "Apple_Terminal":
50479
50482
  return 2;
50480
50483
  }
50481
50484
  }
50482
- if (/-256(color)?$/i.test(env.TERM)) {
50485
+ if (/-256(color)?$/i.test(env2.TERM)) {
50483
50486
  return 2;
50484
50487
  }
50485
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
50488
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
50486
50489
  return 1;
50487
50490
  }
50488
- if ("COLORTERM" in env) {
50491
+ if ("COLORTERM" in env2) {
50489
50492
  return 1;
50490
50493
  }
50491
50494
  return min;
50492
50495
  }
50493
50496
  function getSupportLevel(stream) {
50494
- const level = supportsColor(stream, stream && stream.isTTY);
50495
- return translateLevel(level);
50497
+ const level = supportsColor2(stream, stream && stream.isTTY);
50498
+ return translateLevel2(level);
50496
50499
  }
50497
50500
  module2.exports = {
50498
50501
  supportsColor: getSupportLevel,
50499
- stdout: translateLevel(supportsColor(true, tty.isatty(1))),
50500
- stderr: translateLevel(supportsColor(true, tty.isatty(2)))
50502
+ stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
50503
+ stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
50501
50504
  };
50502
50505
  }
50503
50506
  });
@@ -55653,7 +55656,7 @@ var require_innerFrom = __commonJS({
55653
55656
  exports.fromIterable = fromIterable;
55654
55657
  function fromAsyncIterable(asyncIterable) {
55655
55658
  return new Observable_1.Observable(function(subscriber) {
55656
- process2(asyncIterable, subscriber).catch(function(err) {
55659
+ process3(asyncIterable, subscriber).catch(function(err) {
55657
55660
  return subscriber.error(err);
55658
55661
  });
55659
55662
  });
@@ -55663,7 +55666,7 @@ var require_innerFrom = __commonJS({
55663
55666
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
55664
55667
  }
55665
55668
  exports.fromReadableStreamLike = fromReadableStreamLike;
55666
- function process2(asyncIterable, subscriber) {
55669
+ function process3(asyncIterable, subscriber) {
55667
55670
  var asyncIterable_1, asyncIterable_1_1;
55668
55671
  var e_2, _a2;
55669
55672
  return __awaiter6(this, void 0, void 0, function() {
@@ -62942,11 +62945,11 @@ var require_signals = __commonJS({
62942
62945
  // ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
62943
62946
  var require_signal_exit = __commonJS({
62944
62947
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
62945
- var process2 = global.process;
62946
- var processOk = function(process3) {
62947
- return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
62948
+ var process3 = global.process;
62949
+ var processOk = function(process4) {
62950
+ return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
62948
62951
  };
62949
- if (!processOk(process2)) {
62952
+ if (!processOk(process3)) {
62950
62953
  module2.exports = function() {
62951
62954
  return function() {
62952
62955
  };
@@ -62954,15 +62957,15 @@ var require_signal_exit = __commonJS({
62954
62957
  } else {
62955
62958
  assert = require("assert");
62956
62959
  signals = require_signals();
62957
- isWin = /^win/i.test(process2.platform);
62960
+ isWin = /^win/i.test(process3.platform);
62958
62961
  EE = require("events");
62959
62962
  if (typeof EE !== "function") {
62960
62963
  EE = EE.EventEmitter;
62961
62964
  }
62962
- if (process2.__signal_exit_emitter__) {
62963
- emitter = process2.__signal_exit_emitter__;
62965
+ if (process3.__signal_exit_emitter__) {
62966
+ emitter = process3.__signal_exit_emitter__;
62964
62967
  } else {
62965
- emitter = process2.__signal_exit_emitter__ = new EE();
62968
+ emitter = process3.__signal_exit_emitter__ = new EE();
62966
62969
  emitter.count = 0;
62967
62970
  emitter.emitted = {};
62968
62971
  }
@@ -62999,12 +63002,12 @@ var require_signal_exit = __commonJS({
62999
63002
  loaded = false;
63000
63003
  signals.forEach(function(sig) {
63001
63004
  try {
63002
- process2.removeListener(sig, sigListeners[sig]);
63005
+ process3.removeListener(sig, sigListeners[sig]);
63003
63006
  } catch (er) {
63004
63007
  }
63005
63008
  });
63006
- process2.emit = originalProcessEmit;
63007
- process2.reallyExit = originalProcessReallyExit;
63009
+ process3.emit = originalProcessEmit;
63010
+ process3.reallyExit = originalProcessReallyExit;
63008
63011
  emitter.count -= 1;
63009
63012
  };
63010
63013
  module2.exports.unload = unload;
@@ -63021,7 +63024,7 @@ var require_signal_exit = __commonJS({
63021
63024
  if (!processOk(global.process)) {
63022
63025
  return;
63023
63026
  }
63024
- var listeners = process2.listeners(sig);
63027
+ var listeners = process3.listeners(sig);
63025
63028
  if (listeners.length === emitter.count) {
63026
63029
  unload();
63027
63030
  emit("exit", null, sig);
@@ -63029,7 +63032,7 @@ var require_signal_exit = __commonJS({
63029
63032
  if (isWin && sig === "SIGHUP") {
63030
63033
  sig = "SIGINT";
63031
63034
  }
63032
- process2.kill(process2.pid, sig);
63035
+ process3.kill(process3.pid, sig);
63033
63036
  }
63034
63037
  };
63035
63038
  });
@@ -63045,36 +63048,36 @@ var require_signal_exit = __commonJS({
63045
63048
  emitter.count += 1;
63046
63049
  signals = signals.filter(function(sig) {
63047
63050
  try {
63048
- process2.on(sig, sigListeners[sig]);
63051
+ process3.on(sig, sigListeners[sig]);
63049
63052
  return true;
63050
63053
  } catch (er) {
63051
63054
  return false;
63052
63055
  }
63053
63056
  });
63054
- process2.emit = processEmit;
63055
- process2.reallyExit = processReallyExit;
63057
+ process3.emit = processEmit;
63058
+ process3.reallyExit = processReallyExit;
63056
63059
  };
63057
63060
  module2.exports.load = load;
63058
- originalProcessReallyExit = process2.reallyExit;
63061
+ originalProcessReallyExit = process3.reallyExit;
63059
63062
  processReallyExit = function processReallyExit2(code) {
63060
63063
  if (!processOk(global.process)) {
63061
63064
  return;
63062
63065
  }
63063
- process2.exitCode = code || /* istanbul ignore next */
63066
+ process3.exitCode = code || /* istanbul ignore next */
63064
63067
  0;
63065
- emit("exit", process2.exitCode, null);
63066
- emit("afterexit", process2.exitCode, null);
63067
- originalProcessReallyExit.call(process2, process2.exitCode);
63068
+ emit("exit", process3.exitCode, null);
63069
+ emit("afterexit", process3.exitCode, null);
63070
+ originalProcessReallyExit.call(process3, process3.exitCode);
63068
63071
  };
63069
- originalProcessEmit = process2.emit;
63072
+ originalProcessEmit = process3.emit;
63070
63073
  processEmit = function processEmit2(ev, arg) {
63071
63074
  if (ev === "exit" && processOk(global.process)) {
63072
63075
  if (arg !== void 0) {
63073
- process2.exitCode = arg;
63076
+ process3.exitCode = arg;
63074
63077
  }
63075
63078
  var ret = originalProcessEmit.apply(this, arguments);
63076
- emit("exit", process2.exitCode, null);
63077
- emit("afterexit", process2.exitCode, null);
63079
+ emit("exit", process3.exitCode, null);
63080
+ emit("afterexit", process3.exitCode, null);
63078
63081
  return ret;
63079
63082
  } else {
63080
63083
  return originalProcessEmit.apply(this, arguments);
@@ -84902,10 +84905,10 @@ var require_ms = __commonJS({
84902
84905
  }
84903
84906
  });
84904
84907
 
84905
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js
84908
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
84906
84909
  var require_common2 = __commonJS({
84907
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module2) {
84908
- function setup(env) {
84910
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
84911
+ function setup(env2) {
84909
84912
  createDebug.debug = createDebug;
84910
84913
  createDebug.default = createDebug;
84911
84914
  createDebug.coerce = coerce;
@@ -84914,8 +84917,8 @@ var require_common2 = __commonJS({
84914
84917
  createDebug.enabled = enabled;
84915
84918
  createDebug.humanize = require_ms();
84916
84919
  createDebug.destroy = destroy2;
84917
- Object.keys(env).forEach((key) => {
84918
- createDebug[key] = env[key];
84920
+ Object.keys(env2).forEach((key) => {
84921
+ createDebug[key] = env2[key];
84919
84922
  });
84920
84923
  createDebug.names = [];
84921
84924
  createDebug.skips = [];
@@ -85065,9 +85068,9 @@ var require_common2 = __commonJS({
85065
85068
  }
85066
85069
  });
85067
85070
 
85068
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js
85071
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
85069
85072
  var require_browser = __commonJS({
85070
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module2) {
85073
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
85071
85074
  exports.formatArgs = formatArgs;
85072
85075
  exports.save = save;
85073
85076
  exports.load = load;
@@ -85234,123 +85237,144 @@ var require_browser = __commonJS({
85234
85237
  }
85235
85238
  });
85236
85239
 
85237
- // ../../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
85238
- var require_supports_color2 = __commonJS({
85239
- "../../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
85240
- "use strict";
85241
- var os = require("os");
85242
- var tty = require("tty");
85243
- var hasFlag = require_has_flag();
85244
- var { env } = process;
85245
- var flagForceColor;
85246
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
85247
- flagForceColor = 0;
85248
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
85249
- flagForceColor = 1;
85240
+ // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
85241
+ var supports_color_exports = {};
85242
+ __export(supports_color_exports, {
85243
+ createSupportsColor: () => createSupportsColor,
85244
+ default: () => supports_color_default
85245
+ });
85246
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
85247
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
85248
+ const position = argv.indexOf(prefix + flag);
85249
+ const terminatorPosition = argv.indexOf("--");
85250
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
85251
+ }
85252
+ function envForceColor() {
85253
+ if ("FORCE_COLOR" in env) {
85254
+ if (env.FORCE_COLOR === "true") {
85255
+ return 1;
85250
85256
  }
85251
- function envForceColor() {
85252
- if ("FORCE_COLOR" in env) {
85253
- if (env.FORCE_COLOR === "true") {
85254
- return 1;
85255
- }
85256
- if (env.FORCE_COLOR === "false") {
85257
- return 0;
85258
- }
85259
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
85260
- }
85257
+ if (env.FORCE_COLOR === "false") {
85258
+ return 0;
85261
85259
  }
85262
- function translateLevel(level) {
85263
- if (level === 0) {
85264
- return false;
85265
- }
85266
- return {
85267
- level,
85268
- hasBasic: true,
85269
- has256: level >= 2,
85270
- has16m: level >= 3
85271
- };
85260
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
85261
+ }
85262
+ }
85263
+ function translateLevel(level) {
85264
+ if (level === 0) {
85265
+ return false;
85266
+ }
85267
+ return {
85268
+ level,
85269
+ hasBasic: true,
85270
+ has256: level >= 2,
85271
+ has16m: level >= 3
85272
+ };
85273
+ }
85274
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
85275
+ const noFlagForceColor = envForceColor();
85276
+ if (noFlagForceColor !== void 0) {
85277
+ flagForceColor = noFlagForceColor;
85278
+ }
85279
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
85280
+ if (forceColor === 0) {
85281
+ return 0;
85282
+ }
85283
+ if (sniffFlags) {
85284
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
85285
+ return 3;
85272
85286
  }
85273
- function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
85274
- const noFlagForceColor = envForceColor();
85275
- if (noFlagForceColor !== void 0) {
85276
- flagForceColor = noFlagForceColor;
85277
- }
85278
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
85279
- if (forceColor === 0) {
85280
- return 0;
85281
- }
85282
- if (sniffFlags) {
85283
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
85284
- return 3;
85285
- }
85286
- if (hasFlag("color=256")) {
85287
- return 2;
85288
- }
85289
- }
85290
- if (haveStream && !streamIsTTY && forceColor === void 0) {
85291
- return 0;
85292
- }
85293
- const min = forceColor || 0;
85294
- if (env.TERM === "dumb") {
85295
- return min;
85296
- }
85297
- if (process.platform === "win32") {
85298
- const osRelease = os.release().split(".");
85299
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
85300
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
85301
- }
85302
- return 1;
85303
- }
85304
- if ("CI" in env) {
85305
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
85306
- return 1;
85307
- }
85308
- return min;
85309
- }
85310
- if ("TEAMCITY_VERSION" in env) {
85311
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
85312
- }
85313
- if (env.COLORTERM === "truecolor") {
85314
- return 3;
85315
- }
85316
- if ("TERM_PROGRAM" in env) {
85317
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
85318
- switch (env.TERM_PROGRAM) {
85319
- case "iTerm.app":
85320
- return version >= 3 ? 3 : 2;
85321
- case "Apple_Terminal":
85322
- return 2;
85323
- }
85287
+ if (hasFlag("color=256")) {
85288
+ return 2;
85289
+ }
85290
+ }
85291
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
85292
+ return 1;
85293
+ }
85294
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
85295
+ return 0;
85296
+ }
85297
+ const min = forceColor || 0;
85298
+ if (env.TERM === "dumb") {
85299
+ return min;
85300
+ }
85301
+ if (import_node_process.default.platform === "win32") {
85302
+ const osRelease = import_node_os.default.release().split(".");
85303
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
85304
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
85305
+ }
85306
+ return 1;
85307
+ }
85308
+ if ("CI" in env) {
85309
+ if ("GITHUB_ACTIONS" in env) {
85310
+ return 3;
85311
+ }
85312
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
85313
+ return 1;
85314
+ }
85315
+ return min;
85316
+ }
85317
+ if ("TEAMCITY_VERSION" in env) {
85318
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
85319
+ }
85320
+ if (env.COLORTERM === "truecolor") {
85321
+ return 3;
85322
+ }
85323
+ if (env.TERM === "xterm-kitty") {
85324
+ return 3;
85325
+ }
85326
+ if ("TERM_PROGRAM" in env) {
85327
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
85328
+ switch (env.TERM_PROGRAM) {
85329
+ case "iTerm.app": {
85330
+ return version >= 3 ? 3 : 2;
85324
85331
  }
85325
- if (/-256(color)?$/i.test(env.TERM)) {
85332
+ case "Apple_Terminal": {
85326
85333
  return 2;
85327
85334
  }
85328
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
85329
- return 1;
85330
- }
85331
- if ("COLORTERM" in env) {
85332
- return 1;
85333
- }
85334
- return min;
85335
85335
  }
85336
- function getSupportLevel(stream, options = {}) {
85337
- const level = supportsColor(stream, __spreadValues({
85338
- streamIsTTY: stream && stream.isTTY
85339
- }, options));
85340
- return translateLevel(level);
85336
+ }
85337
+ if (/-256(color)?$/i.test(env.TERM)) {
85338
+ return 2;
85339
+ }
85340
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
85341
+ return 1;
85342
+ }
85343
+ if ("COLORTERM" in env) {
85344
+ return 1;
85345
+ }
85346
+ return min;
85347
+ }
85348
+ function createSupportsColor(stream, options = {}) {
85349
+ const level = _supportsColor(stream, __spreadValues({
85350
+ streamIsTTY: stream && stream.isTTY
85351
+ }, options));
85352
+ return translateLevel(level);
85353
+ }
85354
+ var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
85355
+ var init_supports_color = __esm({
85356
+ "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
85357
+ import_node_process = __toESM(require("process"));
85358
+ import_node_os = __toESM(require("os"));
85359
+ import_node_tty = __toESM(require("tty"));
85360
+ ({ env } = import_node_process.default);
85361
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
85362
+ flagForceColor = 0;
85363
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
85364
+ flagForceColor = 1;
85341
85365
  }
85342
- module2.exports = {
85343
- supportsColor: getSupportLevel,
85344
- stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
85345
- stderr: getSupportLevel({ isTTY: tty.isatty(2) })
85366
+ supportsColor = {
85367
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
85368
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
85346
85369
  };
85370
+ supports_color_default = supportsColor;
85347
85371
  }
85348
85372
  });
85349
85373
 
85350
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js
85374
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
85351
85375
  var require_node2 = __commonJS({
85352
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module2) {
85353
- var tty = require("tty");
85376
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
85377
+ var tty2 = require("tty");
85354
85378
  var util = require("util");
85355
85379
  exports.init = init;
85356
85380
  exports.log = log;
@@ -85365,8 +85389,8 @@ var require_node2 = __commonJS({
85365
85389
  );
85366
85390
  exports.colors = [6, 2, 3, 4, 5, 1];
85367
85391
  try {
85368
- const supportsColor = require_supports_color2();
85369
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
85392
+ const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
85393
+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
85370
85394
  exports.colors = [
85371
85395
  20,
85372
85396
  21,
@@ -85468,7 +85492,7 @@ var require_node2 = __commonJS({
85468
85492
  return obj;
85469
85493
  }, {});
85470
85494
  function useColors() {
85471
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
85495
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
85472
85496
  }
85473
85497
  function formatArgs(args) {
85474
85498
  const { namespace: name, useColors: useColors2 } = this;
@@ -85521,9 +85545,9 @@ var require_node2 = __commonJS({
85521
85545
  }
85522
85546
  });
85523
85547
 
85524
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js
85548
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
85525
85549
  var require_src3 = __commonJS({
85526
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module2) {
85550
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
85527
85551
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
85528
85552
  module2.exports = require_browser();
85529
85553
  } else {
@@ -89925,13 +89949,13 @@ var require_chalk2 = __commonJS({
89925
89949
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
89926
89950
  }
89927
89951
  }
89928
- function translateLevel(e3) {
89952
+ function translateLevel2(e3) {
89929
89953
  if (e3 === 0) {
89930
89954
  return false;
89931
89955
  }
89932
89956
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
89933
89957
  }
89934
- function supportsColor(e3, t3) {
89958
+ function supportsColor2(e3, t3) {
89935
89959
  if (c === 0) {
89936
89960
  return 0;
89937
89961
  }
@@ -89988,10 +90012,10 @@ var require_chalk2 = __commonJS({
89988
90012
  return n3;
89989
90013
  }
89990
90014
  function getSupportLevel(e3) {
89991
- const t3 = supportsColor(e3, e3 && e3.isTTY);
89992
- return translateLevel(t3);
90015
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
90016
+ return translateLevel2(t3);
89993
90017
  }
89994
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
90018
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
89995
90019
  }, 37: (e2) => {
89996
90020
  "use strict";
89997
90021
  e2.exports = require("os");
@@ -99066,13 +99090,13 @@ var require_debug2 = __commonJS({
99066
99090
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
99067
99091
  }
99068
99092
  }
99069
- function translateLevel(e3) {
99093
+ function translateLevel2(e3) {
99070
99094
  if (e3 === 0) {
99071
99095
  return false;
99072
99096
  }
99073
99097
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
99074
99098
  }
99075
- function supportsColor(e3, t3) {
99099
+ function supportsColor2(e3, t3) {
99076
99100
  if (c === 0) {
99077
99101
  return 0;
99078
99102
  }
@@ -99129,10 +99153,10 @@ var require_debug2 = __commonJS({
99129
99153
  return r3;
99130
99154
  }
99131
99155
  function getSupportLevel(e3) {
99132
- const t3 = supportsColor(e3, e3 && e3.isTTY);
99133
- return translateLevel(t3);
99156
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
99157
+ return translateLevel2(t3);
99134
99158
  }
99135
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
99159
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
99136
99160
  }, 37: (e2) => {
99137
99161
  "use strict";
99138
99162
  e2.exports = require("os");
@@ -117209,6 +117233,9 @@ var require_path = __commonJS({
117209
117233
  },
117210
117234
  removeSlash: function() {
117211
117235
  return removeSlash;
117236
+ },
117237
+ cutNameByHyphen: function() {
117238
+ return cutNameByHyphen;
117212
117239
  }
117213
117240
  });
117214
117241
  var _interop_require_default = require_interop_require_default();
@@ -117258,6 +117285,9 @@ var require_path = __commonJS({
117258
117285
  var removeLeadingSlash = (s) => s.replace(/^\/+/, "");
117259
117286
  var removeTailSlash = (s) => s.replace(/\/+$/, "");
117260
117287
  var removeSlash = (s) => removeLeadingSlash(removeTailSlash(s));
117288
+ var cutNameByHyphen = (s) => {
117289
+ return s.split(/[-_]/)[0];
117290
+ };
117261
117291
  }
117262
117292
  });
117263
117293
 
@@ -117733,49 +117763,6 @@ var require_prettyInstructions = __commonJS({
117733
117763
  }
117734
117764
  });
117735
117765
 
117736
- // ../../../toolkit/utils/dist/cjs/cli/print.js
117737
- var require_print = __commonJS({
117738
- "../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
117739
- "use strict";
117740
- Object.defineProperty(exports, "__esModule", {
117741
- value: true
117742
- });
117743
- Object.defineProperty(exports, "printBuildError", {
117744
- enumerable: true,
117745
- get: function() {
117746
- return printBuildError;
117747
- }
117748
- });
117749
- var _compiled = require_compiled();
117750
- var _logger = require_logger2();
117751
- function printBuildError(err) {
117752
- const message = err != null && err.message;
117753
- const stack = err != null && err.stack;
117754
- if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
117755
- try {
117756
- const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
117757
- if (!matched) {
117758
- throw new Error("Using errors for control flow is bad.");
117759
- }
117760
- const problemPath = matched[2];
117761
- const line = matched[3];
117762
- const column = matched[4];
117763
- _logger.logger.error(`Failed to minify the code from this file:
117764
-
117765
- ${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
117766
- `);
117767
- } catch (ignored) {
117768
- _logger.logger.error(`Failed to minify the bundle. ${err}
117769
- `);
117770
- }
117771
- } else {
117772
- _logger.logger.error((message || err) + "\n");
117773
- }
117774
- _logger.logger.log();
117775
- }
117776
- }
117777
- });
117778
-
117779
117766
  // ../../../toolkit/utils/dist/cjs/cli/require.js
117780
117767
  var require_require = __commonJS({
117781
117768
  "../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
@@ -118008,7 +117995,6 @@ var require_cli = __commonJS({
118008
117995
  _export_star._(require_pathSerializer(), exports);
118009
117996
  _export_star._(require_port(), exports);
118010
117997
  _export_star._(require_prettyInstructions(), exports);
118011
- _export_star._(require_print(), exports);
118012
117998
  _export_star._(require_require(), exports);
118013
117999
  _export_star._(require_runtimeExports(), exports);
118014
118000
  _export_star._(require_watch(), exports);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.25",
18
+ "version": "3.1.27",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -30,10 +30,10 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/generator-common": "3.1.25",
34
- "@modern-js/generator-utils": "3.1.25",
35
- "@scripts/jest-config": "2.24.1",
36
- "@scripts/build": "2.24.1"
33
+ "@modern-js/generator-utils": "3.1.27",
34
+ "@scripts/build": "2.25.2",
35
+ "@scripts/jest-config": "2.25.2",
36
+ "@modern-js/generator-common": "3.1.27"
37
37
  },
38
38
  "sideEffects": false,
39
39
  "publishConfig": {