@modern-js/repo-generator 0.0.0-nightly-20240108170623 → 0.0.0-nightly-20240110170629

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 +160 -190
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
- };
11
8
  var __commonJS = (cb, mod) => function __require() {
12
9
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
10
  };
@@ -8707,11 +8704,11 @@ var require_ms = __commonJS({
8707
8704
  }
8708
8705
  });
8709
8706
 
8710
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js
8707
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js
8711
8708
  var require_common2 = __commonJS({
8712
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
8709
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
8713
8710
  "use strict";
8714
- function setup(env2) {
8711
+ function setup(env) {
8715
8712
  createDebug.debug = createDebug;
8716
8713
  createDebug.default = createDebug;
8717
8714
  createDebug.coerce = coerce;
@@ -8720,8 +8717,8 @@ var require_common2 = __commonJS({
8720
8717
  createDebug.enabled = enabled;
8721
8718
  createDebug.humanize = require_ms();
8722
8719
  createDebug.destroy = destroy2;
8723
- Object.keys(env2).forEach((key) => {
8724
- createDebug[key] = env2[key];
8720
+ Object.keys(env).forEach((key) => {
8721
+ createDebug[key] = env[key];
8725
8722
  });
8726
8723
  createDebug.names = [];
8727
8724
  createDebug.skips = [];
@@ -8871,9 +8868,9 @@ var require_common2 = __commonJS({
8871
8868
  }
8872
8869
  });
8873
8870
 
8874
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js
8871
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js
8875
8872
  var require_browser = __commonJS({
8876
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
8873
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
8877
8874
  "use strict";
8878
8875
  exports.formatArgs = formatArgs;
8879
8876
  exports.save = save;
@@ -9041,147 +9038,120 @@ var require_browser = __commonJS({
9041
9038
  }
9042
9039
  });
9043
9040
 
9044
- // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
9045
- var supports_color_exports = {};
9046
- __export(supports_color_exports, {
9047
- createSupportsColor: () => createSupportsColor,
9048
- default: () => supports_color_default
9049
- });
9050
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
9051
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
9052
- const position = argv.indexOf(prefix + flag);
9053
- const terminatorPosition = argv.indexOf("--");
9054
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
9055
- }
9056
- function envForceColor() {
9057
- if ("FORCE_COLOR" in env) {
9058
- if (env.FORCE_COLOR === "true") {
9059
- return 1;
9060
- }
9061
- if (env.FORCE_COLOR === "false") {
9062
- return 0;
9063
- }
9064
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
9065
- }
9066
- }
9067
- function translateLevel(level) {
9068
- if (level === 0) {
9069
- return false;
9070
- }
9071
- return {
9072
- level,
9073
- hasBasic: true,
9074
- has256: level >= 2,
9075
- has16m: level >= 3
9076
- };
9077
- }
9078
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
9079
- const noFlagForceColor = envForceColor();
9080
- if (noFlagForceColor !== void 0) {
9081
- flagForceColor = noFlagForceColor;
9082
- }
9083
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
9084
- if (forceColor === 0) {
9085
- return 0;
9086
- }
9087
- if (sniffFlags) {
9088
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
9089
- return 3;
9090
- }
9091
- if (hasFlag("color=256")) {
9092
- return 2;
9093
- }
9094
- }
9095
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
9096
- return 1;
9097
- }
9098
- if (haveStream && !streamIsTTY && forceColor === void 0) {
9099
- return 0;
9100
- }
9101
- const min = forceColor || 0;
9102
- if (env.TERM === "dumb") {
9103
- return min;
9041
+ // ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
9042
+ var require_has_flag = __commonJS({
9043
+ "../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
9044
+ "use strict";
9045
+ module2.exports = (flag, argv) => {
9046
+ argv = argv || process.argv;
9047
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
9048
+ const pos = argv.indexOf(prefix + flag);
9049
+ const terminatorPos = argv.indexOf("--");
9050
+ return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
9051
+ };
9104
9052
  }
9105
- if (import_node_process.default.platform === "win32") {
9106
- const osRelease = import_node_os.default.release().split(".");
9107
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
9108
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
9053
+ });
9054
+
9055
+ // ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
9056
+ var require_supports_color = __commonJS({
9057
+ "../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
9058
+ "use strict";
9059
+ var os2 = require("os");
9060
+ var hasFlag = require_has_flag();
9061
+ var env = process.env;
9062
+ var forceColor;
9063
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
9064
+ forceColor = false;
9065
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
9066
+ forceColor = true;
9109
9067
  }
9110
- return 1;
9111
- }
9112
- if ("CI" in env) {
9113
- if ("GITHUB_ACTIONS" in env) {
9114
- return 3;
9068
+ if ("FORCE_COLOR" in env) {
9069
+ forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
9115
9070
  }
9116
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
9117
- return 1;
9071
+ function translateLevel(level) {
9072
+ if (level === 0) {
9073
+ return false;
9074
+ }
9075
+ return {
9076
+ level,
9077
+ hasBasic: true,
9078
+ has256: level >= 2,
9079
+ has16m: level >= 3
9080
+ };
9118
9081
  }
9119
- return min;
9120
- }
9121
- if ("TEAMCITY_VERSION" in env) {
9122
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
9123
- }
9124
- if (env.COLORTERM === "truecolor") {
9125
- return 3;
9126
- }
9127
- if (env.TERM === "xterm-kitty") {
9128
- return 3;
9129
- }
9130
- if ("TERM_PROGRAM" in env) {
9131
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
9132
- switch (env.TERM_PROGRAM) {
9133
- case "iTerm.app": {
9134
- return version >= 3 ? 3 : 2;
9082
+ function supportsColor(stream) {
9083
+ if (forceColor === false) {
9084
+ return 0;
9085
+ }
9086
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
9087
+ return 3;
9088
+ }
9089
+ if (hasFlag("color=256")) {
9090
+ return 2;
9091
+ }
9092
+ if (stream && !stream.isTTY && forceColor !== true) {
9093
+ return 0;
9094
+ }
9095
+ const min = forceColor ? 1 : 0;
9096
+ if (process.platform === "win32") {
9097
+ const osRelease = os2.release().split(".");
9098
+ if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
9099
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
9100
+ }
9101
+ return 1;
9102
+ }
9103
+ if ("CI" in env) {
9104
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
9105
+ return 1;
9106
+ }
9107
+ return min;
9108
+ }
9109
+ if ("TEAMCITY_VERSION" in env) {
9110
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
9111
+ }
9112
+ if (env.COLORTERM === "truecolor") {
9113
+ return 3;
9135
9114
  }
9136
- case "Apple_Terminal": {
9115
+ if ("TERM_PROGRAM" in env) {
9116
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
9117
+ switch (env.TERM_PROGRAM) {
9118
+ case "iTerm.app":
9119
+ return version >= 3 ? 3 : 2;
9120
+ case "Apple_Terminal":
9121
+ return 2;
9122
+ }
9123
+ }
9124
+ if (/-256(color)?$/i.test(env.TERM)) {
9137
9125
  return 2;
9138
9126
  }
9127
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
9128
+ return 1;
9129
+ }
9130
+ if ("COLORTERM" in env) {
9131
+ return 1;
9132
+ }
9133
+ if (env.TERM === "dumb") {
9134
+ return min;
9135
+ }
9136
+ return min;
9139
9137
  }
9140
- }
9141
- if (/-256(color)?$/i.test(env.TERM)) {
9142
- return 2;
9143
- }
9144
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
9145
- return 1;
9146
- }
9147
- if ("COLORTERM" in env) {
9148
- return 1;
9149
- }
9150
- return min;
9151
- }
9152
- function createSupportsColor(stream, options = {}) {
9153
- const level = _supportsColor(stream, {
9154
- streamIsTTY: stream && stream.isTTY,
9155
- ...options
9156
- });
9157
- return translateLevel(level);
9158
- }
9159
- var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
9160
- var init_supports_color = __esm({
9161
- "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
9162
- "use strict";
9163
- import_node_process = __toESM(require("process"));
9164
- import_node_os = __toESM(require("os"));
9165
- import_node_tty = __toESM(require("tty"));
9166
- ({ env } = import_node_process.default);
9167
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
9168
- flagForceColor = 0;
9169
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
9170
- flagForceColor = 1;
9138
+ function getSupportLevel(stream) {
9139
+ const level = supportsColor(stream);
9140
+ return translateLevel(level);
9171
9141
  }
9172
- supportsColor = {
9173
- stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
9174
- stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
9142
+ module2.exports = {
9143
+ supportsColor: getSupportLevel,
9144
+ stdout: getSupportLevel(process.stdout),
9145
+ stderr: getSupportLevel(process.stderr)
9175
9146
  };
9176
- supports_color_default = supportsColor;
9177
9147
  }
9178
9148
  });
9179
9149
 
9180
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js
9150
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js
9181
9151
  var require_node = __commonJS({
9182
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
9152
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
9183
9153
  "use strict";
9184
- var tty2 = require("tty");
9154
+ var tty = require("tty");
9185
9155
  var util = require("util");
9186
9156
  exports.init = init;
9187
9157
  exports.log = log;
@@ -9196,8 +9166,8 @@ var require_node = __commonJS({
9196
9166
  );
9197
9167
  exports.colors = [6, 2, 3, 4, 5, 1];
9198
9168
  try {
9199
- const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
9200
- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
9169
+ const supportsColor = require_supports_color();
9170
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
9201
9171
  exports.colors = [
9202
9172
  20,
9203
9173
  21,
@@ -9299,7 +9269,7 @@ var require_node = __commonJS({
9299
9269
  return obj;
9300
9270
  }, {});
9301
9271
  function useColors() {
9302
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
9272
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
9303
9273
  }
9304
9274
  function formatArgs(args) {
9305
9275
  const { namespace: name, useColors: useColors2 } = this;
@@ -9352,9 +9322,9 @@ var require_node = __commonJS({
9352
9322
  }
9353
9323
  });
9354
9324
 
9355
- // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js
9325
+ // ../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js
9356
9326
  var require_src3 = __commonJS({
9357
- "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
9327
+ "../../../../node_modules/.pnpm/debug@4.3.4_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
9358
9328
  "use strict";
9359
9329
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
9360
9330
  module2.exports = require_browser();
@@ -17752,15 +17722,15 @@ var require_runtime = __commonJS({
17752
17722
  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] + ").");
17753
17723
  }
17754
17724
  }
17755
- function template(templateSpec, env2) {
17756
- if (!env2) {
17725
+ function template(templateSpec, env) {
17726
+ if (!env) {
17757
17727
  throw new _exception2["default"]("No environment passed to template");
17758
17728
  }
17759
17729
  if (!templateSpec || !templateSpec.main) {
17760
17730
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
17761
17731
  }
17762
17732
  templateSpec.main.decorator = templateSpec.main_d;
17763
- env2.VM.checkRevision(templateSpec.compiler);
17733
+ env.VM.checkRevision(templateSpec.compiler);
17764
17734
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
17765
17735
  function invokePartialWrapper(partial, context, options) {
17766
17736
  if (options.hash) {
@@ -17769,14 +17739,14 @@ var require_runtime = __commonJS({
17769
17739
  options.ids[0] = true;
17770
17740
  }
17771
17741
  }
17772
- partial = env2.VM.resolvePartial.call(this, partial, context, options);
17742
+ partial = env.VM.resolvePartial.call(this, partial, context, options);
17773
17743
  var extendedOptions = Utils.extend({}, options, {
17774
17744
  hooks: this.hooks,
17775
17745
  protoAccessControl: this.protoAccessControl
17776
17746
  });
17777
- var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
17778
- if (result == null && env2.compile) {
17779
- options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
17747
+ var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
17748
+ if (result == null && env.compile) {
17749
+ options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
17780
17750
  result = options.partials[options.name](context, extendedOptions);
17781
17751
  }
17782
17752
  if (result != null) {
@@ -17861,7 +17831,7 @@ var require_runtime = __commonJS({
17861
17831
  },
17862
17832
  // An empty object to use as replacement for null-contexts
17863
17833
  nullContext: Object.seal({}),
17864
- noop: env2.VM.noop,
17834
+ noop: env.VM.noop,
17865
17835
  compilerInfo: templateSpec.compiler
17866
17836
  };
17867
17837
  function ret(context) {
@@ -17888,14 +17858,14 @@ var require_runtime = __commonJS({
17888
17858
  ret.isTop = true;
17889
17859
  ret._setup = function(options) {
17890
17860
  if (!options.partial) {
17891
- var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
17861
+ var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
17892
17862
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
17893
17863
  container.helpers = mergedHelpers;
17894
17864
  if (templateSpec.usePartial) {
17895
- container.partials = container.mergeIfNeeded(options.partials, env2.partials);
17865
+ container.partials = container.mergeIfNeeded(options.partials, env.partials);
17896
17866
  }
17897
17867
  if (templateSpec.usePartial || templateSpec.useDecorators) {
17898
- container.decorators = Utils.extend({}, env2.decorators, options.decorators);
17868
+ container.decorators = Utils.extend({}, env.decorators, options.decorators);
17899
17869
  }
17900
17870
  container.hooks = {};
17901
17871
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -19697,7 +19667,7 @@ var require_compiler = __commonJS({
19697
19667
  }
19698
19668
  }
19699
19669
  };
19700
- function precompile(input, options, env2) {
19670
+ function precompile(input, options, env) {
19701
19671
  if (input == null || typeof input !== "string" && input.type !== "Program") {
19702
19672
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
19703
19673
  }
@@ -19708,10 +19678,10 @@ var require_compiler = __commonJS({
19708
19678
  if (options.compat) {
19709
19679
  options.useDepths = true;
19710
19680
  }
19711
- var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
19712
- return new env2.JavaScriptCompiler().compile(environment, options);
19681
+ var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
19682
+ return new env.JavaScriptCompiler().compile(environment, options);
19713
19683
  }
19714
- function compile3(input, options, env2) {
19684
+ function compile3(input, options, env) {
19715
19685
  if (options === void 0)
19716
19686
  options = {};
19717
19687
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -19726,8 +19696,8 @@ var require_compiler = __commonJS({
19726
19696
  }
19727
19697
  var compiled = void 0;
19728
19698
  function compileInput() {
19729
- var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
19730
- return env2.template(templateSpec);
19699
+ var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
19700
+ return env.template(templateSpec);
19731
19701
  }
19732
19702
  function ret(context, execOptions) {
19733
19703
  if (!compiled) {
@@ -24653,13 +24623,13 @@ var require_chalk = __commonJS({
24653
24623
  c = l.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
24654
24624
  }
24655
24625
  }
24656
- function translateLevel2(e3) {
24626
+ function translateLevel(e3) {
24657
24627
  if (e3 === 0) {
24658
24628
  return false;
24659
24629
  }
24660
24630
  return { level: e3, hasBasic: true, has256: e3 >= 2, has16m: e3 >= 3 };
24661
24631
  }
24662
- function supportsColor2(e3, t3) {
24632
+ function supportsColor(e3, t3) {
24663
24633
  if (c === 0) {
24664
24634
  return 0;
24665
24635
  }
@@ -24716,10 +24686,10 @@ var require_chalk = __commonJS({
24716
24686
  return n3;
24717
24687
  }
24718
24688
  function getSupportLevel(e3) {
24719
- const t3 = supportsColor2(e3, e3 && e3.isTTY);
24720
- return translateLevel2(t3);
24689
+ const t3 = supportsColor(e3, e3 && e3.isTTY);
24690
+ return translateLevel(t3);
24721
24691
  }
24722
- e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel2(supportsColor2(true, s.isatty(1))), stderr: translateLevel2(supportsColor2(true, s.isatty(2))) };
24692
+ e2.exports = { supportsColor: getSupportLevel, stdout: translateLevel(supportsColor(true, s.isatty(1))), stderr: translateLevel(supportsColor(true, s.isatty(2))) };
24723
24693
  }, 37: (e2) => {
24724
24694
  "use strict";
24725
24695
  e2.exports = require("os");
@@ -29645,7 +29615,7 @@ var require_innerFrom = __commonJS({
29645
29615
  exports.fromIterable = fromIterable;
29646
29616
  function fromAsyncIterable(asyncIterable) {
29647
29617
  return new Observable_1.Observable(function(subscriber) {
29648
- process3(asyncIterable, subscriber).catch(function(err) {
29618
+ process2(asyncIterable, subscriber).catch(function(err) {
29649
29619
  return subscriber.error(err);
29650
29620
  });
29651
29621
  });
@@ -29655,7 +29625,7 @@ var require_innerFrom = __commonJS({
29655
29625
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
29656
29626
  }
29657
29627
  exports.fromReadableStreamLike = fromReadableStreamLike;
29658
- function process3(asyncIterable, subscriber) {
29628
+ function process2(asyncIterable, subscriber) {
29659
29629
  var asyncIterable_1, asyncIterable_1_1;
29660
29630
  var e_2, _a2;
29661
29631
  return __awaiter6(this, void 0, void 0, function() {
@@ -36936,11 +36906,11 @@ var require_signals = __commonJS({
36936
36906
  var require_signal_exit = __commonJS({
36937
36907
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
36938
36908
  "use strict";
36939
- var process3 = global.process;
36940
- var processOk = function(process4) {
36941
- 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";
36909
+ var process2 = global.process;
36910
+ var processOk = function(process3) {
36911
+ 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";
36942
36912
  };
36943
- if (!processOk(process3)) {
36913
+ if (!processOk(process2)) {
36944
36914
  module2.exports = function() {
36945
36915
  return function() {
36946
36916
  };
@@ -36948,15 +36918,15 @@ var require_signal_exit = __commonJS({
36948
36918
  } else {
36949
36919
  assert = require("assert");
36950
36920
  signals = require_signals();
36951
- isWin = /^win/i.test(process3.platform);
36921
+ isWin = /^win/i.test(process2.platform);
36952
36922
  EE = require("events");
36953
36923
  if (typeof EE !== "function") {
36954
36924
  EE = EE.EventEmitter;
36955
36925
  }
36956
- if (process3.__signal_exit_emitter__) {
36957
- emitter = process3.__signal_exit_emitter__;
36926
+ if (process2.__signal_exit_emitter__) {
36927
+ emitter = process2.__signal_exit_emitter__;
36958
36928
  } else {
36959
- emitter = process3.__signal_exit_emitter__ = new EE();
36929
+ emitter = process2.__signal_exit_emitter__ = new EE();
36960
36930
  emitter.count = 0;
36961
36931
  emitter.emitted = {};
36962
36932
  }
@@ -36993,12 +36963,12 @@ var require_signal_exit = __commonJS({
36993
36963
  loaded = false;
36994
36964
  signals.forEach(function(sig) {
36995
36965
  try {
36996
- process3.removeListener(sig, sigListeners[sig]);
36966
+ process2.removeListener(sig, sigListeners[sig]);
36997
36967
  } catch (er) {
36998
36968
  }
36999
36969
  });
37000
- process3.emit = originalProcessEmit;
37001
- process3.reallyExit = originalProcessReallyExit;
36970
+ process2.emit = originalProcessEmit;
36971
+ process2.reallyExit = originalProcessReallyExit;
37002
36972
  emitter.count -= 1;
37003
36973
  };
37004
36974
  module2.exports.unload = unload;
@@ -37015,7 +36985,7 @@ var require_signal_exit = __commonJS({
37015
36985
  if (!processOk(global.process)) {
37016
36986
  return;
37017
36987
  }
37018
- var listeners = process3.listeners(sig);
36988
+ var listeners = process2.listeners(sig);
37019
36989
  if (listeners.length === emitter.count) {
37020
36990
  unload();
37021
36991
  emit("exit", null, sig);
@@ -37023,7 +36993,7 @@ var require_signal_exit = __commonJS({
37023
36993
  if (isWin && sig === "SIGHUP") {
37024
36994
  sig = "SIGINT";
37025
36995
  }
37026
- process3.kill(process3.pid, sig);
36996
+ process2.kill(process2.pid, sig);
37027
36997
  }
37028
36998
  };
37029
36999
  });
@@ -37039,36 +37009,36 @@ var require_signal_exit = __commonJS({
37039
37009
  emitter.count += 1;
37040
37010
  signals = signals.filter(function(sig) {
37041
37011
  try {
37042
- process3.on(sig, sigListeners[sig]);
37012
+ process2.on(sig, sigListeners[sig]);
37043
37013
  return true;
37044
37014
  } catch (er) {
37045
37015
  return false;
37046
37016
  }
37047
37017
  });
37048
- process3.emit = processEmit;
37049
- process3.reallyExit = processReallyExit;
37018
+ process2.emit = processEmit;
37019
+ process2.reallyExit = processReallyExit;
37050
37020
  };
37051
37021
  module2.exports.load = load;
37052
- originalProcessReallyExit = process3.reallyExit;
37022
+ originalProcessReallyExit = process2.reallyExit;
37053
37023
  processReallyExit = function processReallyExit2(code) {
37054
37024
  if (!processOk(global.process)) {
37055
37025
  return;
37056
37026
  }
37057
- process3.exitCode = code || /* istanbul ignore next */
37027
+ process2.exitCode = code || /* istanbul ignore next */
37058
37028
  0;
37059
- emit("exit", process3.exitCode, null);
37060
- emit("afterexit", process3.exitCode, null);
37061
- originalProcessReallyExit.call(process3, process3.exitCode);
37029
+ emit("exit", process2.exitCode, null);
37030
+ emit("afterexit", process2.exitCode, null);
37031
+ originalProcessReallyExit.call(process2, process2.exitCode);
37062
37032
  };
37063
- originalProcessEmit = process3.emit;
37033
+ originalProcessEmit = process2.emit;
37064
37034
  processEmit = function processEmit2(ev, arg) {
37065
37035
  if (ev === "exit" && processOk(global.process)) {
37066
37036
  if (arg !== void 0) {
37067
- process3.exitCode = arg;
37037
+ process2.exitCode = arg;
37068
37038
  }
37069
37039
  var ret = originalProcessEmit.apply(this, arguments);
37070
- emit("exit", process3.exitCode, null);
37071
- emit("afterexit", process3.exitCode, null);
37040
+ emit("exit", process2.exitCode, null);
37041
+ emit("afterexit", process2.exitCode, null);
37072
37042
  return ret;
37073
37043
  } else {
37074
37044
  return originalProcessEmit.apply(this, arguments);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240108170623",
18
+ "version": "0.0.0-nightly-20240110170629",
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-nightly-20240108170623"
26
+ "@modern-js/utils": "0.0.0-nightly-20240110170629"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@modern-js/codesmith": "2.3.2",
@@ -32,15 +32,15 @@
32
32
  "@types/node": "^14",
33
33
  "jest": "^29",
34
34
  "typescript": "^5",
35
- "@modern-js/generator-common": "0.0.0-nightly-20240108170623",
36
- "@modern-js/generator-utils": "0.0.0-nightly-20240108170623",
37
- "@modern-js/generator-plugin": "0.0.0-nightly-20240108170623",
38
- "@modern-js/base-generator": "0.0.0-nightly-20240108170623",
39
- "@modern-js/monorepo-generator": "0.0.0-nightly-20240108170623",
40
- "@modern-js/module-generator": "0.0.0-nightly-20240108170623",
41
- "@modern-js/mwa-generator": "0.0.0-nightly-20240108170623",
42
- "@scripts/jest-config": "0.0.0-nightly-20240108170623",
43
- "@scripts/build": "0.0.0-nightly-20240108170623"
35
+ "@modern-js/base-generator": "0.0.0-nightly-20240110170629",
36
+ "@modern-js/generator-common": "0.0.0-nightly-20240110170629",
37
+ "@modern-js/generator-utils": "0.0.0-nightly-20240110170629",
38
+ "@modern-js/module-generator": "0.0.0-nightly-20240110170629",
39
+ "@modern-js/generator-plugin": "0.0.0-nightly-20240110170629",
40
+ "@modern-js/monorepo-generator": "0.0.0-nightly-20240110170629",
41
+ "@scripts/build": "0.0.0-nightly-20240110170629",
42
+ "@modern-js/mwa-generator": "0.0.0-nightly-20240110170629",
43
+ "@scripts/jest-config": "0.0.0-nightly-20240110170629"
44
44
  },
45
45
  "sideEffects": false,
46
46
  "publishConfig": {