@modern-js/repo-generator 3.1.26 → 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 +203 -236
  2. package/package.json +12 -12
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
  };
@@ -8987,13 +8990,13 @@ var require_chalk = __commonJS({
8987
8990
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
8988
8991
  }
8989
8992
  }
8990
- function translateLevel(e3) {
8993
+ function translateLevel2(e3) {
8991
8994
  if (e3 === 0) {
8992
8995
  return false;
8993
8996
  }
8994
8997
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
8995
8998
  }
8996
- function supportsColor(e3, t3) {
8999
+ function supportsColor2(e3, t3) {
8997
9000
  if (c === 0) {
8998
9001
  return 0;
8999
9002
  }
@@ -9050,10 +9053,10 @@ var require_chalk = __commonJS({
9050
9053
  return n3;
9051
9054
  }
9052
9055
  function getSupportLevel(e3) {
9053
- const t3 = supportsColor(e3, e3 && e3.isTTY);
9054
- return translateLevel(t3);
9056
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
9057
+ return translateLevel2(t3);
9055
9058
  }
9056
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
9059
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
9057
9060
  }, 37: (e2) => {
9058
9061
  "use strict";
9059
9062
  e2.exports = require("os");
@@ -18128,13 +18131,13 @@ var require_debug = __commonJS({
18128
18131
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
18129
18132
  }
18130
18133
  }
18131
- function translateLevel(e3) {
18134
+ function translateLevel2(e3) {
18132
18135
  if (e3 === 0) {
18133
18136
  return false;
18134
18137
  }
18135
18138
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
18136
18139
  }
18137
- function supportsColor(e3, t3) {
18140
+ function supportsColor2(e3, t3) {
18138
18141
  if (c === 0) {
18139
18142
  return 0;
18140
18143
  }
@@ -18191,10 +18194,10 @@ var require_debug = __commonJS({
18191
18194
  return r3;
18192
18195
  }
18193
18196
  function getSupportLevel(e3) {
18194
- const t3 = supportsColor(e3, e3 && e3.isTTY);
18195
- return translateLevel(t3);
18197
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
18198
+ return translateLevel2(t3);
18196
18199
  }
18197
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
18200
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
18198
18201
  }, 37: (e2) => {
18199
18202
  "use strict";
18200
18203
  e2.exports = require("os");
@@ -43484,10 +43487,10 @@ var require_ms = __commonJS({
43484
43487
  }
43485
43488
  });
43486
43489
 
43487
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js
43490
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
43488
43491
  var require_common2 = __commonJS({
43489
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/common.js"(exports, module2) {
43490
- function setup(env) {
43492
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
43493
+ function setup(env2) {
43491
43494
  createDebug.debug = createDebug;
43492
43495
  createDebug.default = createDebug;
43493
43496
  createDebug.coerce = coerce;
@@ -43496,8 +43499,8 @@ var require_common2 = __commonJS({
43496
43499
  createDebug.enabled = enabled;
43497
43500
  createDebug.humanize = require_ms();
43498
43501
  createDebug.destroy = destroy2;
43499
- Object.keys(env).forEach((key) => {
43500
- createDebug[key] = env[key];
43502
+ Object.keys(env2).forEach((key) => {
43503
+ createDebug[key] = env2[key];
43501
43504
  });
43502
43505
  createDebug.names = [];
43503
43506
  createDebug.skips = [];
@@ -43647,9 +43650,9 @@ var require_common2 = __commonJS({
43647
43650
  }
43648
43651
  });
43649
43652
 
43650
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js
43653
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
43651
43654
  var require_browser = __commonJS({
43652
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/browser.js"(exports, module2) {
43655
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
43653
43656
  exports.formatArgs = formatArgs;
43654
43657
  exports.save = save;
43655
43658
  exports.load = load;
@@ -43816,136 +43819,144 @@ var require_browser = __commonJS({
43816
43819
  }
43817
43820
  });
43818
43821
 
43819
- // ../../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
43820
- var require_has_flag = __commonJS({
43821
- "../../../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module2) {
43822
- "use strict";
43823
- module2.exports = (flag, argv = process.argv) => {
43824
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
43825
- const position = argv.indexOf(prefix + flag);
43826
- const terminatorPosition = argv.indexOf("--");
43827
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
43828
- };
43829
- }
43822
+ // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
43823
+ var supports_color_exports = {};
43824
+ __export(supports_color_exports, {
43825
+ createSupportsColor: () => createSupportsColor,
43826
+ default: () => supports_color_default
43830
43827
  });
43831
-
43832
- // ../../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
43833
- var require_supports_color = __commonJS({
43834
- "../../../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module2) {
43835
- "use strict";
43836
- var os2 = require("os");
43837
- var tty = require("tty");
43838
- var hasFlag = require_has_flag();
43839
- var { env } = process;
43840
- var flagForceColor;
43841
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
43842
- flagForceColor = 0;
43843
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
43844
- flagForceColor = 1;
43828
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
43829
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
43830
+ const position = argv.indexOf(prefix + flag);
43831
+ const terminatorPosition = argv.indexOf("--");
43832
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
43833
+ }
43834
+ function envForceColor() {
43835
+ if ("FORCE_COLOR" in env) {
43836
+ if (env.FORCE_COLOR === "true") {
43837
+ return 1;
43845
43838
  }
43846
- function envForceColor() {
43847
- if ("FORCE_COLOR" in env) {
43848
- if (env.FORCE_COLOR === "true") {
43849
- return 1;
43850
- }
43851
- if (env.FORCE_COLOR === "false") {
43852
- return 0;
43853
- }
43854
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
43855
- }
43839
+ if (env.FORCE_COLOR === "false") {
43840
+ return 0;
43856
43841
  }
43857
- function translateLevel(level) {
43858
- if (level === 0) {
43859
- return false;
43860
- }
43861
- return {
43862
- level,
43863
- hasBasic: true,
43864
- has256: level >= 2,
43865
- has16m: level >= 3
43866
- };
43842
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
43843
+ }
43844
+ }
43845
+ function translateLevel(level) {
43846
+ if (level === 0) {
43847
+ return false;
43848
+ }
43849
+ return {
43850
+ level,
43851
+ hasBasic: true,
43852
+ has256: level >= 2,
43853
+ has16m: level >= 3
43854
+ };
43855
+ }
43856
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
43857
+ const noFlagForceColor = envForceColor();
43858
+ if (noFlagForceColor !== void 0) {
43859
+ flagForceColor = noFlagForceColor;
43860
+ }
43861
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
43862
+ if (forceColor === 0) {
43863
+ return 0;
43864
+ }
43865
+ if (sniffFlags) {
43866
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
43867
+ return 3;
43867
43868
  }
43868
- function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
43869
- const noFlagForceColor = envForceColor();
43870
- if (noFlagForceColor !== void 0) {
43871
- flagForceColor = noFlagForceColor;
43872
- }
43873
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
43874
- if (forceColor === 0) {
43875
- return 0;
43876
- }
43877
- if (sniffFlags) {
43878
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
43879
- return 3;
43880
- }
43881
- if (hasFlag("color=256")) {
43882
- return 2;
43883
- }
43884
- }
43885
- if (haveStream && !streamIsTTY && forceColor === void 0) {
43886
- return 0;
43887
- }
43888
- const min = forceColor || 0;
43889
- if (env.TERM === "dumb") {
43890
- return min;
43891
- }
43892
- if (process.platform === "win32") {
43893
- const osRelease = os2.release().split(".");
43894
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
43895
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
43896
- }
43897
- return 1;
43898
- }
43899
- if ("CI" in env) {
43900
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
43901
- return 1;
43902
- }
43903
- return min;
43904
- }
43905
- if ("TEAMCITY_VERSION" in env) {
43906
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
43907
- }
43908
- if (env.COLORTERM === "truecolor") {
43909
- return 3;
43910
- }
43911
- if ("TERM_PROGRAM" in env) {
43912
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
43913
- switch (env.TERM_PROGRAM) {
43914
- case "iTerm.app":
43915
- return version >= 3 ? 3 : 2;
43916
- case "Apple_Terminal":
43917
- return 2;
43918
- }
43869
+ if (hasFlag("color=256")) {
43870
+ return 2;
43871
+ }
43872
+ }
43873
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) {
43874
+ return 1;
43875
+ }
43876
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
43877
+ return 0;
43878
+ }
43879
+ const min = forceColor || 0;
43880
+ if (env.TERM === "dumb") {
43881
+ return min;
43882
+ }
43883
+ if (import_node_process.default.platform === "win32") {
43884
+ const osRelease = import_node_os.default.release().split(".");
43885
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
43886
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
43887
+ }
43888
+ return 1;
43889
+ }
43890
+ if ("CI" in env) {
43891
+ if ("GITHUB_ACTIONS" in env) {
43892
+ return 3;
43893
+ }
43894
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
43895
+ return 1;
43896
+ }
43897
+ return min;
43898
+ }
43899
+ if ("TEAMCITY_VERSION" in env) {
43900
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
43901
+ }
43902
+ if (env.COLORTERM === "truecolor") {
43903
+ return 3;
43904
+ }
43905
+ if (env.TERM === "xterm-kitty") {
43906
+ return 3;
43907
+ }
43908
+ if ("TERM_PROGRAM" in env) {
43909
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
43910
+ switch (env.TERM_PROGRAM) {
43911
+ case "iTerm.app": {
43912
+ return version >= 3 ? 3 : 2;
43919
43913
  }
43920
- if (/-256(color)?$/i.test(env.TERM)) {
43914
+ case "Apple_Terminal": {
43921
43915
  return 2;
43922
43916
  }
43923
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
43924
- return 1;
43925
- }
43926
- if ("COLORTERM" in env) {
43927
- return 1;
43928
- }
43929
- return min;
43930
43917
  }
43931
- function getSupportLevel(stream, options = {}) {
43932
- const level = supportsColor(stream, __spreadValues({
43933
- streamIsTTY: stream && stream.isTTY
43934
- }, options));
43935
- return translateLevel(level);
43918
+ }
43919
+ if (/-256(color)?$/i.test(env.TERM)) {
43920
+ return 2;
43921
+ }
43922
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
43923
+ return 1;
43924
+ }
43925
+ if ("COLORTERM" in env) {
43926
+ return 1;
43927
+ }
43928
+ return min;
43929
+ }
43930
+ function createSupportsColor(stream, options = {}) {
43931
+ const level = _supportsColor(stream, __spreadValues({
43932
+ streamIsTTY: stream && stream.isTTY
43933
+ }, options));
43934
+ return translateLevel(level);
43935
+ }
43936
+ var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
43937
+ var init_supports_color = __esm({
43938
+ "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
43939
+ import_node_process = __toESM(require("process"));
43940
+ import_node_os = __toESM(require("os"));
43941
+ import_node_tty = __toESM(require("tty"));
43942
+ ({ env } = import_node_process.default);
43943
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
43944
+ flagForceColor = 0;
43945
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
43946
+ flagForceColor = 1;
43936
43947
  }
43937
- module2.exports = {
43938
- supportsColor: getSupportLevel,
43939
- stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
43940
- stderr: getSupportLevel({ isTTY: tty.isatty(2) })
43948
+ supportsColor = {
43949
+ stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
43950
+ stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
43941
43951
  };
43952
+ supports_color_default = supportsColor;
43942
43953
  }
43943
43954
  });
43944
43955
 
43945
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js
43956
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
43946
43957
  var require_node = __commonJS({
43947
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/node.js"(exports, module2) {
43948
- var tty = require("tty");
43958
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
43959
+ var tty2 = require("tty");
43949
43960
  var util = require("util");
43950
43961
  exports.init = init;
43951
43962
  exports.log = log;
@@ -43960,8 +43971,8 @@ var require_node = __commonJS({
43960
43971
  );
43961
43972
  exports.colors = [6, 2, 3, 4, 5, 1];
43962
43973
  try {
43963
- const supportsColor = require_supports_color();
43964
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
43974
+ const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
43975
+ if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
43965
43976
  exports.colors = [
43966
43977
  20,
43967
43978
  21,
@@ -44063,7 +44074,7 @@ var require_node = __commonJS({
44063
44074
  return obj;
44064
44075
  }, {});
44065
44076
  function useColors() {
44066
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
44077
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
44067
44078
  }
44068
44079
  function formatArgs(args) {
44069
44080
  const { namespace: name, useColors: useColors2 } = this;
@@ -44116,9 +44127,9 @@ var require_node = __commonJS({
44116
44127
  }
44117
44128
  });
44118
44129
 
44119
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js
44130
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
44120
44131
  var require_src3 = __commonJS({
44121
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@8.1.1/node_modules/debug/src/index.js"(exports, module2) {
44132
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
44122
44133
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
44123
44134
  module2.exports = require_browser();
44124
44135
  } else {
@@ -52464,15 +52475,15 @@ var require_runtime = __commonJS({
52464
52475
  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] + ").");
52465
52476
  }
52466
52477
  }
52467
- function template(templateSpec, env) {
52468
- if (!env) {
52478
+ function template(templateSpec, env2) {
52479
+ if (!env2) {
52469
52480
  throw new _exception2["default"]("No environment passed to template");
52470
52481
  }
52471
52482
  if (!templateSpec || !templateSpec.main) {
52472
52483
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
52473
52484
  }
52474
52485
  templateSpec.main.decorator = templateSpec.main_d;
52475
- env.VM.checkRevision(templateSpec.compiler);
52486
+ env2.VM.checkRevision(templateSpec.compiler);
52476
52487
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
52477
52488
  function invokePartialWrapper(partial, context, options) {
52478
52489
  if (options.hash) {
@@ -52481,14 +52492,14 @@ var require_runtime = __commonJS({
52481
52492
  options.ids[0] = true;
52482
52493
  }
52483
52494
  }
52484
- partial = env.VM.resolvePartial.call(this, partial, context, options);
52495
+ partial = env2.VM.resolvePartial.call(this, partial, context, options);
52485
52496
  var extendedOptions = Utils.extend({}, options, {
52486
52497
  hooks: this.hooks,
52487
52498
  protoAccessControl: this.protoAccessControl
52488
52499
  });
52489
- var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
52490
- if (result == null && env.compile) {
52491
- options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
52500
+ var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
52501
+ if (result == null && env2.compile) {
52502
+ options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
52492
52503
  result = options.partials[options.name](context, extendedOptions);
52493
52504
  }
52494
52505
  if (result != null) {
@@ -52573,7 +52584,7 @@ var require_runtime = __commonJS({
52573
52584
  },
52574
52585
  // An empty object to use as replacement for null-contexts
52575
52586
  nullContext: Object.seal({}),
52576
- noop: env.VM.noop,
52587
+ noop: env2.VM.noop,
52577
52588
  compilerInfo: templateSpec.compiler
52578
52589
  };
52579
52590
  function ret(context) {
@@ -52600,14 +52611,14 @@ var require_runtime = __commonJS({
52600
52611
  ret.isTop = true;
52601
52612
  ret._setup = function(options) {
52602
52613
  if (!options.partial) {
52603
- var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
52614
+ var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
52604
52615
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
52605
52616
  container.helpers = mergedHelpers;
52606
52617
  if (templateSpec.usePartial) {
52607
- container.partials = container.mergeIfNeeded(options.partials, env.partials);
52618
+ container.partials = container.mergeIfNeeded(options.partials, env2.partials);
52608
52619
  }
52609
52620
  if (templateSpec.usePartial || templateSpec.useDecorators) {
52610
- container.decorators = Utils.extend({}, env.decorators, options.decorators);
52621
+ container.decorators = Utils.extend({}, env2.decorators, options.decorators);
52611
52622
  }
52612
52623
  container.hooks = {};
52613
52624
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -54409,7 +54420,7 @@ var require_compiler = __commonJS({
54409
54420
  }
54410
54421
  }
54411
54422
  };
54412
- function precompile(input, options, env) {
54423
+ function precompile(input, options, env2) {
54413
54424
  if (input == null || typeof input !== "string" && input.type !== "Program") {
54414
54425
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
54415
54426
  }
@@ -54420,10 +54431,10 @@ var require_compiler = __commonJS({
54420
54431
  if (options.compat) {
54421
54432
  options.useDepths = true;
54422
54433
  }
54423
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
54424
- return new env.JavaScriptCompiler().compile(environment, options);
54434
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
54435
+ return new env2.JavaScriptCompiler().compile(environment, options);
54425
54436
  }
54426
- function compile3(input, options, env) {
54437
+ function compile3(input, options, env2) {
54427
54438
  if (options === void 0)
54428
54439
  options = {};
54429
54440
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -54438,8 +54449,8 @@ var require_compiler = __commonJS({
54438
54449
  }
54439
54450
  var compiled = void 0;
54440
54451
  function compileInput() {
54441
- var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
54442
- return env.template(templateSpec);
54452
+ var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
54453
+ return env2.template(templateSpec);
54443
54454
  }
54444
54455
  function ret(context, execOptions) {
54445
54456
  if (!compiled) {
@@ -63043,7 +63054,7 @@ var require_innerFrom = __commonJS({
63043
63054
  exports.fromIterable = fromIterable;
63044
63055
  function fromAsyncIterable(asyncIterable) {
63045
63056
  return new Observable_1.Observable(function(subscriber) {
63046
- process2(asyncIterable, subscriber).catch(function(err) {
63057
+ process3(asyncIterable, subscriber).catch(function(err) {
63047
63058
  return subscriber.error(err);
63048
63059
  });
63049
63060
  });
@@ -63053,7 +63064,7 @@ var require_innerFrom = __commonJS({
63053
63064
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
63054
63065
  }
63055
63066
  exports.fromReadableStreamLike = fromReadableStreamLike;
63056
- function process2(asyncIterable, subscriber) {
63067
+ function process3(asyncIterable, subscriber) {
63057
63068
  var asyncIterable_1, asyncIterable_1_1;
63058
63069
  var e_2, _a2;
63059
63070
  return __awaiter6(this, void 0, void 0, function() {
@@ -70332,11 +70343,11 @@ var require_signals = __commonJS({
70332
70343
  // ../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
70333
70344
  var require_signal_exit = __commonJS({
70334
70345
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
70335
- var process2 = global.process;
70336
- var processOk = function(process3) {
70337
- 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";
70346
+ var process3 = global.process;
70347
+ var processOk = function(process4) {
70348
+ 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";
70338
70349
  };
70339
- if (!processOk(process2)) {
70350
+ if (!processOk(process3)) {
70340
70351
  module2.exports = function() {
70341
70352
  return function() {
70342
70353
  };
@@ -70344,15 +70355,15 @@ var require_signal_exit = __commonJS({
70344
70355
  } else {
70345
70356
  assert = require("assert");
70346
70357
  signals = require_signals();
70347
- isWin = /^win/i.test(process2.platform);
70358
+ isWin = /^win/i.test(process3.platform);
70348
70359
  EE = require("events");
70349
70360
  if (typeof EE !== "function") {
70350
70361
  EE = EE.EventEmitter;
70351
70362
  }
70352
- if (process2.__signal_exit_emitter__) {
70353
- emitter = process2.__signal_exit_emitter__;
70363
+ if (process3.__signal_exit_emitter__) {
70364
+ emitter = process3.__signal_exit_emitter__;
70354
70365
  } else {
70355
- emitter = process2.__signal_exit_emitter__ = new EE();
70366
+ emitter = process3.__signal_exit_emitter__ = new EE();
70356
70367
  emitter.count = 0;
70357
70368
  emitter.emitted = {};
70358
70369
  }
@@ -70389,12 +70400,12 @@ var require_signal_exit = __commonJS({
70389
70400
  loaded = false;
70390
70401
  signals.forEach(function(sig) {
70391
70402
  try {
70392
- process2.removeListener(sig, sigListeners[sig]);
70403
+ process3.removeListener(sig, sigListeners[sig]);
70393
70404
  } catch (er) {
70394
70405
  }
70395
70406
  });
70396
- process2.emit = originalProcessEmit;
70397
- process2.reallyExit = originalProcessReallyExit;
70407
+ process3.emit = originalProcessEmit;
70408
+ process3.reallyExit = originalProcessReallyExit;
70398
70409
  emitter.count -= 1;
70399
70410
  };
70400
70411
  module2.exports.unload = unload;
@@ -70411,7 +70422,7 @@ var require_signal_exit = __commonJS({
70411
70422
  if (!processOk(global.process)) {
70412
70423
  return;
70413
70424
  }
70414
- var listeners = process2.listeners(sig);
70425
+ var listeners = process3.listeners(sig);
70415
70426
  if (listeners.length === emitter.count) {
70416
70427
  unload();
70417
70428
  emit("exit", null, sig);
@@ -70419,7 +70430,7 @@ var require_signal_exit = __commonJS({
70419
70430
  if (isWin && sig === "SIGHUP") {
70420
70431
  sig = "SIGINT";
70421
70432
  }
70422
- process2.kill(process2.pid, sig);
70433
+ process3.kill(process3.pid, sig);
70423
70434
  }
70424
70435
  };
70425
70436
  });
@@ -70435,36 +70446,36 @@ var require_signal_exit = __commonJS({
70435
70446
  emitter.count += 1;
70436
70447
  signals = signals.filter(function(sig) {
70437
70448
  try {
70438
- process2.on(sig, sigListeners[sig]);
70449
+ process3.on(sig, sigListeners[sig]);
70439
70450
  return true;
70440
70451
  } catch (er) {
70441
70452
  return false;
70442
70453
  }
70443
70454
  });
70444
- process2.emit = processEmit;
70445
- process2.reallyExit = processReallyExit;
70455
+ process3.emit = processEmit;
70456
+ process3.reallyExit = processReallyExit;
70446
70457
  };
70447
70458
  module2.exports.load = load;
70448
- originalProcessReallyExit = process2.reallyExit;
70459
+ originalProcessReallyExit = process3.reallyExit;
70449
70460
  processReallyExit = function processReallyExit2(code) {
70450
70461
  if (!processOk(global.process)) {
70451
70462
  return;
70452
70463
  }
70453
- process2.exitCode = code || /* istanbul ignore next */
70464
+ process3.exitCode = code || /* istanbul ignore next */
70454
70465
  0;
70455
- emit("exit", process2.exitCode, null);
70456
- emit("afterexit", process2.exitCode, null);
70457
- originalProcessReallyExit.call(process2, process2.exitCode);
70466
+ emit("exit", process3.exitCode, null);
70467
+ emit("afterexit", process3.exitCode, null);
70468
+ originalProcessReallyExit.call(process3, process3.exitCode);
70458
70469
  };
70459
- originalProcessEmit = process2.emit;
70470
+ originalProcessEmit = process3.emit;
70460
70471
  processEmit = function processEmit2(ev, arg) {
70461
70472
  if (ev === "exit" && processOk(global.process)) {
70462
70473
  if (arg !== void 0) {
70463
- process2.exitCode = arg;
70474
+ process3.exitCode = arg;
70464
70475
  }
70465
70476
  var ret = originalProcessEmit.apply(this, arguments);
70466
- emit("exit", process2.exitCode, null);
70467
- emit("afterexit", process2.exitCode, null);
70477
+ emit("exit", process3.exitCode, null);
70478
+ emit("afterexit", process3.exitCode, null);
70468
70479
  return ret;
70469
70480
  } else {
70470
70481
  return originalProcessEmit.apply(this, arguments);
@@ -96815,13 +96826,13 @@ var require_chalk2 = __commonJS({
96815
96826
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
96816
96827
  }
96817
96828
  }
96818
- function translateLevel(e3) {
96829
+ function translateLevel2(e3) {
96819
96830
  if (e3 === 0) {
96820
96831
  return false;
96821
96832
  }
96822
96833
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
96823
96834
  }
96824
- function supportsColor(e3, t3) {
96835
+ function supportsColor2(e3, t3) {
96825
96836
  if (c === 0) {
96826
96837
  return 0;
96827
96838
  }
@@ -96878,10 +96889,10 @@ var require_chalk2 = __commonJS({
96878
96889
  return n3;
96879
96890
  }
96880
96891
  function getSupportLevel(e3) {
96881
- const t3 = supportsColor(e3, e3 && e3.isTTY);
96882
- return translateLevel(t3);
96892
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
96893
+ return translateLevel2(t3);
96883
96894
  }
96884
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
96895
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
96885
96896
  }, 37: (e2) => {
96886
96897
  "use strict";
96887
96898
  e2.exports = require("os");
@@ -105956,13 +105967,13 @@ var require_debug3 = __commonJS({
105956
105967
  c = a.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(a.FORCE_COLOR, 10), 3);
105957
105968
  }
105958
105969
  }
105959
- function translateLevel(e3) {
105970
+ function translateLevel2(e3) {
105960
105971
  if (e3 === 0) {
105961
105972
  return false;
105962
105973
  }
105963
105974
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
105964
105975
  }
105965
- function supportsColor(e3, t3) {
105976
+ function supportsColor2(e3, t3) {
105966
105977
  if (c === 0) {
105967
105978
  return 0;
105968
105979
  }
@@ -106019,10 +106030,10 @@ var require_debug3 = __commonJS({
106019
106030
  return r3;
106020
106031
  }
106021
106032
  function getSupportLevel(e3) {
106022
- const t3 = supportsColor(e3, e3 && e3.isTTY);
106023
- return translateLevel(t3);
106033
+ const t3 = supportsColor2(e3, e3 && e3.isTTY);
106034
+ return translateLevel2(t3);
106024
106035
  }
106025
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, n.isatty(1))), stderr: translateLevel(supportsColor(true, n.isatty(2))) };
106036
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, n.isatty(1))), stderr: translateLevel2(supportsColor2(true, n.isatty(2))) };
106026
106037
  }, 37: (e2) => {
106027
106038
  "use strict";
106028
106039
  e2.exports = require("os");
@@ -124629,49 +124640,6 @@ var require_prettyInstructions = __commonJS({
124629
124640
  }
124630
124641
  });
124631
124642
 
124632
- // ../../../toolkit/utils/dist/cjs/cli/print.js
124633
- var require_print = __commonJS({
124634
- "../../../toolkit/utils/dist/cjs/cli/print.js"(exports) {
124635
- "use strict";
124636
- Object.defineProperty(exports, "__esModule", {
124637
- value: true
124638
- });
124639
- Object.defineProperty(exports, "printBuildError", {
124640
- enumerable: true,
124641
- get: function() {
124642
- return printBuildError;
124643
- }
124644
- });
124645
- var _compiled = require_compiled();
124646
- var _logger = require_logger2();
124647
- function printBuildError(err) {
124648
- const message = err != null && err.message;
124649
- const stack = err != null && err.stack;
124650
- if (stack && typeof message === "string" && message.indexOf("from Terser") !== -1) {
124651
- try {
124652
- const matched = /(.+)\[(.+):(.+),(.+)\]\[.+\]/.exec(stack);
124653
- if (!matched) {
124654
- throw new Error("Using errors for control flow is bad.");
124655
- }
124656
- const problemPath = matched[2];
124657
- const line = matched[3];
124658
- const column = matched[4];
124659
- _logger.logger.error(`Failed to minify the code from this file:
124660
-
124661
- ${_compiled.chalk.yellow(` ${problemPath}:${line}${column !== "0" ? ":" + column : ""}`)}
124662
- `);
124663
- } catch (ignored) {
124664
- _logger.logger.error(`Failed to minify the bundle. ${err}
124665
- `);
124666
- }
124667
- } else {
124668
- _logger.logger.error((message || err) + "\n");
124669
- }
124670
- _logger.logger.log();
124671
- }
124672
- }
124673
- });
124674
-
124675
124643
  // ../../../toolkit/utils/dist/cjs/cli/require.js
124676
124644
  var require_require = __commonJS({
124677
124645
  "../../../toolkit/utils/dist/cjs/cli/require.js"(exports, module2) {
@@ -124904,7 +124872,6 @@ var require_cli = __commonJS({
124904
124872
  _export_star._(require_pathSerializer(), exports);
124905
124873
  _export_star._(require_port(), exports);
124906
124874
  _export_star._(require_prettyInstructions(), exports);
124907
- _export_star._(require_print(), exports);
124908
124875
  _export_star._(require_require(), exports);
124909
124876
  _export_star._(require_runtimeExports(), exports);
124910
124877
  _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.26",
18
+ "version": "3.1.27",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -29,17 +29,17 @@
29
29
  "@types/node": "^14",
30
30
  "jest": "^29",
31
31
  "typescript": "^5",
32
- "@modern-js/generator-common": "3.1.26",
33
- "@modern-js/module-generator": "3.1.26",
34
- "@modern-js/monorepo-generator": "3.1.26",
35
- "@modern-js/mwa-generator": "3.1.26",
36
- "@modern-js/doc-generator": "3.1.26",
37
- "@modern-js/utils": "2.25.1",
38
- "@modern-js/base-generator": "3.1.26",
39
- "@modern-js/generator-plugin": "3.1.26",
40
- "@modern-js/generator-utils": "3.1.26",
41
- "@scripts/jest-config": "2.25.1",
42
- "@scripts/build": "2.25.1"
32
+ "@modern-js/generator-common": "3.1.27",
33
+ "@modern-js/module-generator": "3.1.27",
34
+ "@modern-js/monorepo-generator": "3.1.27",
35
+ "@modern-js/mwa-generator": "3.1.27",
36
+ "@modern-js/doc-generator": "3.1.27",
37
+ "@modern-js/utils": "2.25.2",
38
+ "@modern-js/generator-plugin": "3.1.27",
39
+ "@modern-js/generator-utils": "3.1.27",
40
+ "@modern-js/base-generator": "3.1.27",
41
+ "@scripts/jest-config": "2.25.2",
42
+ "@scripts/build": "2.25.2"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {