@modern-js/tailwindcss-generator 3.7.5 → 3.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +199 -228
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -35,9 +35,6 @@ var __objRest = (source2, exclude) => {
35
35
  }
36
36
  return target;
37
37
  };
38
- var __esm = (fn, res) => function __init() {
39
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
40
- };
41
38
  var __commonJS = (cb, mod) => function __require() {
42
39
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
43
40
  };
@@ -1204,26 +1201,26 @@ var require_has_flag = __commonJS({
1204
1201
  var require_supports_color = __commonJS({
1205
1202
  "../../../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module2) {
1206
1203
  "use strict";
1207
- var os2 = require("os");
1208
- var tty2 = require("tty");
1209
- var hasFlag2 = require_has_flag();
1210
- var { env: env2 } = process;
1204
+ var os = require("os");
1205
+ var tty = require("tty");
1206
+ var hasFlag = require_has_flag();
1207
+ var { env } = process;
1211
1208
  var forceColor;
1212
- if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
1209
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
1213
1210
  forceColor = 0;
1214
- } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
1211
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
1215
1212
  forceColor = 1;
1216
1213
  }
1217
- if ("FORCE_COLOR" in env2) {
1218
- if (env2.FORCE_COLOR === "true") {
1214
+ if ("FORCE_COLOR" in env) {
1215
+ if (env.FORCE_COLOR === "true") {
1219
1216
  forceColor = 1;
1220
- } else if (env2.FORCE_COLOR === "false") {
1217
+ } else if (env.FORCE_COLOR === "false") {
1221
1218
  forceColor = 0;
1222
1219
  } else {
1223
- forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
1220
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
1224
1221
  }
1225
1222
  }
1226
- function translateLevel2(level) {
1223
+ function translateLevel(level) {
1227
1224
  if (level === 0) {
1228
1225
  return false;
1229
1226
  }
@@ -1234,70 +1231,70 @@ var require_supports_color = __commonJS({
1234
1231
  has16m: level >= 3
1235
1232
  };
1236
1233
  }
1237
- function supportsColor2(haveStream, streamIsTTY) {
1234
+ function supportsColor(haveStream, streamIsTTY) {
1238
1235
  if (forceColor === 0) {
1239
1236
  return 0;
1240
1237
  }
1241
- if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
1238
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1242
1239
  return 3;
1243
1240
  }
1244
- if (hasFlag2("color=256")) {
1241
+ if (hasFlag("color=256")) {
1245
1242
  return 2;
1246
1243
  }
1247
1244
  if (haveStream && !streamIsTTY && forceColor === void 0) {
1248
1245
  return 0;
1249
1246
  }
1250
1247
  const min = forceColor || 0;
1251
- if (env2.TERM === "dumb") {
1248
+ if (env.TERM === "dumb") {
1252
1249
  return min;
1253
1250
  }
1254
1251
  if (process.platform === "win32") {
1255
- const osRelease = os2.release().split(".");
1252
+ const osRelease = os.release().split(".");
1256
1253
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1257
1254
  return Number(osRelease[2]) >= 14931 ? 3 : 2;
1258
1255
  }
1259
1256
  return 1;
1260
1257
  }
1261
- if ("CI" in env2) {
1262
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign2) => sign2 in env2) || env2.CI_NAME === "codeship") {
1258
+ if ("CI" in env) {
1259
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
1263
1260
  return 1;
1264
1261
  }
1265
1262
  return min;
1266
1263
  }
1267
- if ("TEAMCITY_VERSION" in env2) {
1268
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
1264
+ if ("TEAMCITY_VERSION" in env) {
1265
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
1269
1266
  }
1270
- if (env2.COLORTERM === "truecolor") {
1267
+ if (env.COLORTERM === "truecolor") {
1271
1268
  return 3;
1272
1269
  }
1273
- if ("TERM_PROGRAM" in env2) {
1274
- const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1275
- switch (env2.TERM_PROGRAM) {
1270
+ if ("TERM_PROGRAM" in env) {
1271
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1272
+ switch (env.TERM_PROGRAM) {
1276
1273
  case "iTerm.app":
1277
1274
  return version >= 3 ? 3 : 2;
1278
1275
  case "Apple_Terminal":
1279
1276
  return 2;
1280
1277
  }
1281
1278
  }
1282
- if (/-256(color)?$/i.test(env2.TERM)) {
1279
+ if (/-256(color)?$/i.test(env.TERM)) {
1283
1280
  return 2;
1284
1281
  }
1285
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
1282
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
1286
1283
  return 1;
1287
1284
  }
1288
- if ("COLORTERM" in env2) {
1285
+ if ("COLORTERM" in env) {
1289
1286
  return 1;
1290
1287
  }
1291
1288
  return min;
1292
1289
  }
1293
1290
  function getSupportLevel(stream) {
1294
- const level = supportsColor2(stream, stream && stream.isTTY);
1295
- return translateLevel2(level);
1291
+ const level = supportsColor(stream, stream && stream.isTTY);
1292
+ return translateLevel(level);
1296
1293
  }
1297
1294
  module2.exports = {
1298
1295
  supportsColor: getSupportLevel,
1299
- stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
1300
- stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
1296
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
1297
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
1301
1298
  };
1302
1299
  }
1303
1300
  });
@@ -1749,11 +1746,11 @@ var require_ms = __commonJS({
1749
1746
  }
1750
1747
  });
1751
1748
 
1752
- // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/common.js
1749
+ // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js
1753
1750
  var require_common = __commonJS({
1754
- "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/common.js"(exports, module2) {
1751
+ "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/common.js"(exports, module2) {
1755
1752
  "use strict";
1756
- function setup(env2) {
1753
+ function setup(env) {
1757
1754
  createDebug.debug = createDebug;
1758
1755
  createDebug.default = createDebug;
1759
1756
  createDebug.coerce = coerce;
@@ -1762,8 +1759,8 @@ var require_common = __commonJS({
1762
1759
  createDebug.enabled = enabled;
1763
1760
  createDebug.humanize = require_ms();
1764
1761
  createDebug.destroy = destroy;
1765
- Object.keys(env2).forEach((key2) => {
1766
- createDebug[key2] = env2[key2];
1762
+ Object.keys(env).forEach((key2) => {
1763
+ createDebug[key2] = env[key2];
1767
1764
  });
1768
1765
  createDebug.names = [];
1769
1766
  createDebug.skips = [];
@@ -1913,9 +1910,9 @@ var require_common = __commonJS({
1913
1910
  }
1914
1911
  });
1915
1912
 
1916
- // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/browser.js
1913
+ // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js
1917
1914
  var require_browser = __commonJS({
1918
- "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/browser.js"(exports, module2) {
1915
+ "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/browser.js"(exports, module2) {
1919
1916
  "use strict";
1920
1917
  exports.formatArgs = formatArgs;
1921
1918
  exports.save = save;
@@ -2084,146 +2081,120 @@ var require_browser = __commonJS({
2084
2081
  }
2085
2082
  });
2086
2083
 
2087
- // ../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js
2088
- var supports_color_exports = {};
2089
- __export(supports_color_exports, {
2090
- createSupportsColor: () => createSupportsColor,
2091
- default: () => supports_color_default
2092
- });
2093
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
2094
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
2095
- const position = argv.indexOf(prefix + flag);
2096
- const terminatorPosition = argv.indexOf("--");
2097
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
2098
- }
2099
- function envForceColor() {
2100
- if ("FORCE_COLOR" in env) {
2101
- if (env.FORCE_COLOR === "true") {
2102
- return 1;
2103
- }
2104
- if (env.FORCE_COLOR === "false") {
2105
- return 0;
2106
- }
2107
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
2108
- }
2109
- }
2110
- function translateLevel(level) {
2111
- if (level === 0) {
2112
- return false;
2113
- }
2114
- return {
2115
- level,
2116
- hasBasic: true,
2117
- has256: level >= 2,
2118
- has16m: level >= 3
2119
- };
2120
- }
2121
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
2122
- const noFlagForceColor = envForceColor();
2123
- if (noFlagForceColor !== void 0) {
2124
- flagForceColor = noFlagForceColor;
2125
- }
2126
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
2127
- if (forceColor === 0) {
2128
- return 0;
2129
- }
2130
- if (sniffFlags) {
2131
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
2132
- return 3;
2133
- }
2134
- if (hasFlag("color=256")) {
2135
- return 2;
2136
- }
2137
- }
2138
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
2139
- return 1;
2140
- }
2141
- if (haveStream && !streamIsTTY && forceColor === void 0) {
2142
- return 0;
2143
- }
2144
- const min = forceColor || 0;
2145
- if (env.TERM === "dumb") {
2146
- return min;
2084
+ // ../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
2085
+ var require_has_flag2 = __commonJS({
2086
+ "../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
2087
+ "use strict";
2088
+ module2.exports = (flag, argv) => {
2089
+ argv = argv || process.argv;
2090
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
2091
+ const pos2 = argv.indexOf(prefix + flag);
2092
+ const terminatorPos = argv.indexOf("--");
2093
+ return pos2 !== -1 && (terminatorPos === -1 ? true : pos2 < terminatorPos);
2094
+ };
2147
2095
  }
2148
- if (import_node_process.default.platform === "win32") {
2149
- const osRelease = import_node_os.default.release().split(".");
2150
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
2151
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
2096
+ });
2097
+
2098
+ // ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
2099
+ var require_supports_color2 = __commonJS({
2100
+ "../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
2101
+ "use strict";
2102
+ var os = require("os");
2103
+ var hasFlag = require_has_flag2();
2104
+ var env = process.env;
2105
+ var forceColor;
2106
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
2107
+ forceColor = false;
2108
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
2109
+ forceColor = true;
2152
2110
  }
2153
- return 1;
2154
- }
2155
- if ("CI" in env) {
2156
- if ("GITHUB_ACTIONS" in env) {
2157
- return 3;
2111
+ if ("FORCE_COLOR" in env) {
2112
+ forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
2158
2113
  }
2159
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
2160
- return 1;
2114
+ function translateLevel(level) {
2115
+ if (level === 0) {
2116
+ return false;
2117
+ }
2118
+ return {
2119
+ level,
2120
+ hasBasic: true,
2121
+ has256: level >= 2,
2122
+ has16m: level >= 3
2123
+ };
2161
2124
  }
2162
- return min;
2163
- }
2164
- if ("TEAMCITY_VERSION" in env) {
2165
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
2166
- }
2167
- if (env.COLORTERM === "truecolor") {
2168
- return 3;
2169
- }
2170
- if (env.TERM === "xterm-kitty") {
2171
- return 3;
2172
- }
2173
- if ("TERM_PROGRAM" in env) {
2174
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
2175
- switch (env.TERM_PROGRAM) {
2176
- case "iTerm.app": {
2177
- return version >= 3 ? 3 : 2;
2125
+ function supportsColor(stream) {
2126
+ if (forceColor === false) {
2127
+ return 0;
2128
+ }
2129
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
2130
+ return 3;
2178
2131
  }
2179
- case "Apple_Terminal": {
2132
+ if (hasFlag("color=256")) {
2180
2133
  return 2;
2181
2134
  }
2135
+ if (stream && !stream.isTTY && forceColor !== true) {
2136
+ return 0;
2137
+ }
2138
+ const min = forceColor ? 1 : 0;
2139
+ if (process.platform === "win32") {
2140
+ const osRelease = os.release().split(".");
2141
+ if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
2142
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
2143
+ }
2144
+ return 1;
2145
+ }
2146
+ if ("CI" in env) {
2147
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
2148
+ return 1;
2149
+ }
2150
+ return min;
2151
+ }
2152
+ if ("TEAMCITY_VERSION" in env) {
2153
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
2154
+ }
2155
+ if (env.COLORTERM === "truecolor") {
2156
+ return 3;
2157
+ }
2158
+ if ("TERM_PROGRAM" in env) {
2159
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
2160
+ switch (env.TERM_PROGRAM) {
2161
+ case "iTerm.app":
2162
+ return version >= 3 ? 3 : 2;
2163
+ case "Apple_Terminal":
2164
+ return 2;
2165
+ }
2166
+ }
2167
+ if (/-256(color)?$/i.test(env.TERM)) {
2168
+ return 2;
2169
+ }
2170
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
2171
+ return 1;
2172
+ }
2173
+ if ("COLORTERM" in env) {
2174
+ return 1;
2175
+ }
2176
+ if (env.TERM === "dumb") {
2177
+ return min;
2178
+ }
2179
+ return min;
2182
2180
  }
2183
- }
2184
- if (/-256(color)?$/i.test(env.TERM)) {
2185
- return 2;
2186
- }
2187
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
2188
- return 1;
2189
- }
2190
- if ("COLORTERM" in env) {
2191
- return 1;
2192
- }
2193
- return min;
2194
- }
2195
- function createSupportsColor(stream, options = {}) {
2196
- const level = _supportsColor(stream, __spreadValues({
2197
- streamIsTTY: stream && stream.isTTY
2198
- }, options));
2199
- return translateLevel(level);
2200
- }
2201
- var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
2202
- var init_supports_color = __esm({
2203
- "../../../../node_modules/.pnpm/supports-color@9.3.1/node_modules/supports-color/index.js"() {
2204
- "use strict";
2205
- import_node_process = __toESM(require("process"));
2206
- import_node_os = __toESM(require("os"));
2207
- import_node_tty = __toESM(require("tty"));
2208
- ({ env } = import_node_process.default);
2209
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
2210
- flagForceColor = 0;
2211
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
2212
- flagForceColor = 1;
2181
+ function getSupportLevel(stream) {
2182
+ const level = supportsColor(stream);
2183
+ return translateLevel(level);
2213
2184
  }
2214
- supportsColor = {
2215
- stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
2216
- stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
2185
+ module2.exports = {
2186
+ supportsColor: getSupportLevel,
2187
+ stdout: getSupportLevel(process.stdout),
2188
+ stderr: getSupportLevel(process.stderr)
2217
2189
  };
2218
- supports_color_default = supportsColor;
2219
2190
  }
2220
2191
  });
2221
2192
 
2222
- // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/node.js
2193
+ // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js
2223
2194
  var require_node = __commonJS({
2224
- "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/node.js"(exports, module2) {
2195
+ "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js"(exports, module2) {
2225
2196
  "use strict";
2226
- var tty2 = require("tty");
2197
+ var tty = require("tty");
2227
2198
  var util2 = require("util");
2228
2199
  exports.init = init;
2229
2200
  exports.log = log;
@@ -2238,8 +2209,8 @@ var require_node = __commonJS({
2238
2209
  );
2239
2210
  exports.colors = [6, 2, 3, 4, 5, 1];
2240
2211
  try {
2241
- const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
2242
- if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
2212
+ const supportsColor = require_supports_color2();
2213
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
2243
2214
  exports.colors = [
2244
2215
  20,
2245
2216
  21,
@@ -2341,7 +2312,7 @@ var require_node = __commonJS({
2341
2312
  return obj;
2342
2313
  }, {});
2343
2314
  function useColors() {
2344
- return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
2315
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
2345
2316
  }
2346
2317
  function formatArgs(args) {
2347
2318
  const { namespace: name, useColors: useColors2 } = this;
@@ -2394,9 +2365,9 @@ var require_node = __commonJS({
2394
2365
  }
2395
2366
  });
2396
2367
 
2397
- // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/index.js
2368
+ // ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js
2398
2369
  var require_src = __commonJS({
2399
- "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@9.3.1/node_modules/debug/src/index.js"(exports, module2) {
2370
+ "../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/index.js"(exports, module2) {
2400
2371
  "use strict";
2401
2372
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
2402
2373
  module2.exports = require_browser();
@@ -5264,7 +5235,7 @@ var require_resolveCommand = __commonJS({
5264
5235
  var which = require_which();
5265
5236
  var getPathKey = require_path_key();
5266
5237
  function resolveCommandAttempt(parsed, withoutPathExt) {
5267
- const env2 = parsed.options.env || process.env;
5238
+ const env = parsed.options.env || process.env;
5268
5239
  const cwd = process.cwd();
5269
5240
  const hasCustomCwd = parsed.options.cwd != null;
5270
5241
  const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
@@ -5277,7 +5248,7 @@ var require_resolveCommand = __commonJS({
5277
5248
  let resolved;
5278
5249
  try {
5279
5250
  resolved = which.sync(parsed.command, {
5280
- path: env2[getPathKey({ env: env2 })],
5251
+ path: env[getPathKey({ env })],
5281
5252
  pathExt: withoutPathExt ? path7.delimiter : void 0
5282
5253
  });
5283
5254
  } catch (e) {
@@ -5560,11 +5531,11 @@ var require_npm_run_path = __commonJS({
5560
5531
  options = __spreadValues({
5561
5532
  env: process.env
5562
5533
  }, options);
5563
- const env2 = __spreadValues({}, options.env);
5564
- const path8 = pathKey({ env: env2 });
5565
- options.path = env2[path8];
5566
- env2[path8] = module2.exports(options);
5567
- return env2;
5534
+ const env = __spreadValues({}, options.env);
5535
+ const path8 = pathKey({ env });
5536
+ options.path = env[path8];
5537
+ env[path8] = module2.exports(options);
5538
+ return env;
5568
5539
  };
5569
5540
  }
5570
5541
  });
@@ -6180,11 +6151,11 @@ var require_signals2 = __commonJS({
6180
6151
  var require_signal_exit = __commonJS({
6181
6152
  "../../../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
6182
6153
  "use strict";
6183
- var process3 = global.process;
6184
- var processOk = function(process4) {
6185
- 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";
6154
+ var process2 = global.process;
6155
+ var processOk = function(process3) {
6156
+ 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";
6186
6157
  };
6187
- if (!processOk(process3)) {
6158
+ if (!processOk(process2)) {
6188
6159
  module2.exports = function() {
6189
6160
  return function() {
6190
6161
  };
@@ -6192,15 +6163,15 @@ var require_signal_exit = __commonJS({
6192
6163
  } else {
6193
6164
  assert = require("assert");
6194
6165
  signals = require_signals2();
6195
- isWin = /^win/i.test(process3.platform);
6166
+ isWin = /^win/i.test(process2.platform);
6196
6167
  EE = require("events");
6197
6168
  if (typeof EE !== "function") {
6198
6169
  EE = EE.EventEmitter;
6199
6170
  }
6200
- if (process3.__signal_exit_emitter__) {
6201
- emitter = process3.__signal_exit_emitter__;
6171
+ if (process2.__signal_exit_emitter__) {
6172
+ emitter = process2.__signal_exit_emitter__;
6202
6173
  } else {
6203
- emitter = process3.__signal_exit_emitter__ = new EE();
6174
+ emitter = process2.__signal_exit_emitter__ = new EE();
6204
6175
  emitter.count = 0;
6205
6176
  emitter.emitted = {};
6206
6177
  }
@@ -6237,12 +6208,12 @@ var require_signal_exit = __commonJS({
6237
6208
  loaded = false;
6238
6209
  signals.forEach(function(sig) {
6239
6210
  try {
6240
- process3.removeListener(sig, sigListeners[sig]);
6211
+ process2.removeListener(sig, sigListeners[sig]);
6241
6212
  } catch (er) {
6242
6213
  }
6243
6214
  });
6244
- process3.emit = originalProcessEmit;
6245
- process3.reallyExit = originalProcessReallyExit;
6215
+ process2.emit = originalProcessEmit;
6216
+ process2.reallyExit = originalProcessReallyExit;
6246
6217
  emitter.count -= 1;
6247
6218
  };
6248
6219
  module2.exports.unload = unload;
@@ -6259,7 +6230,7 @@ var require_signal_exit = __commonJS({
6259
6230
  if (!processOk(global.process)) {
6260
6231
  return;
6261
6232
  }
6262
- var listeners = process3.listeners(sig);
6233
+ var listeners = process2.listeners(sig);
6263
6234
  if (listeners.length === emitter.count) {
6264
6235
  unload();
6265
6236
  emit("exit", null, sig);
@@ -6267,7 +6238,7 @@ var require_signal_exit = __commonJS({
6267
6238
  if (isWin && sig === "SIGHUP") {
6268
6239
  sig = "SIGINT";
6269
6240
  }
6270
- process3.kill(process3.pid, sig);
6241
+ process2.kill(process2.pid, sig);
6271
6242
  }
6272
6243
  };
6273
6244
  });
@@ -6283,36 +6254,36 @@ var require_signal_exit = __commonJS({
6283
6254
  emitter.count += 1;
6284
6255
  signals = signals.filter(function(sig) {
6285
6256
  try {
6286
- process3.on(sig, sigListeners[sig]);
6257
+ process2.on(sig, sigListeners[sig]);
6287
6258
  return true;
6288
6259
  } catch (er) {
6289
6260
  return false;
6290
6261
  }
6291
6262
  });
6292
- process3.emit = processEmit;
6293
- process3.reallyExit = processReallyExit;
6263
+ process2.emit = processEmit;
6264
+ process2.reallyExit = processReallyExit;
6294
6265
  };
6295
6266
  module2.exports.load = load;
6296
- originalProcessReallyExit = process3.reallyExit;
6267
+ originalProcessReallyExit = process2.reallyExit;
6297
6268
  processReallyExit = function processReallyExit2(code) {
6298
6269
  if (!processOk(global.process)) {
6299
6270
  return;
6300
6271
  }
6301
- process3.exitCode = code || /* istanbul ignore next */
6272
+ process2.exitCode = code || /* istanbul ignore next */
6302
6273
  0;
6303
- emit("exit", process3.exitCode, null);
6304
- emit("afterexit", process3.exitCode, null);
6305
- originalProcessReallyExit.call(process3, process3.exitCode);
6274
+ emit("exit", process2.exitCode, null);
6275
+ emit("afterexit", process2.exitCode, null);
6276
+ originalProcessReallyExit.call(process2, process2.exitCode);
6306
6277
  };
6307
- originalProcessEmit = process3.emit;
6278
+ originalProcessEmit = process2.emit;
6308
6279
  processEmit = function processEmit2(ev, arg) {
6309
6280
  if (ev === "exit" && processOk(global.process)) {
6310
6281
  if (arg !== void 0) {
6311
- process3.exitCode = arg;
6282
+ process2.exitCode = arg;
6312
6283
  }
6313
6284
  var ret = originalProcessEmit.apply(this, arguments);
6314
- emit("exit", process3.exitCode, null);
6315
- emit("afterexit", process3.exitCode, null);
6285
+ emit("exit", process2.exitCode, null);
6286
+ emit("afterexit", process2.exitCode, null);
6316
6287
  return ret;
6317
6288
  } else {
6318
6289
  return originalProcessEmit.apply(this, arguments);
@@ -6340,7 +6311,7 @@ var require_signal_exit = __commonJS({
6340
6311
  var require_kill = __commonJS({
6341
6312
  "../../../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports, module2) {
6342
6313
  "use strict";
6343
- var os2 = require("os");
6314
+ var os = require("os");
6344
6315
  var onExit = require_signal_exit();
6345
6316
  var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
6346
6317
  var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
@@ -6364,7 +6335,7 @@ var require_kill = __commonJS({
6364
6335
  return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
6365
6336
  };
6366
6337
  var isSigterm = (signal) => {
6367
- return signal === os2.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
6338
+ return signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
6368
6339
  };
6369
6340
  var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
6370
6341
  if (forceKillAfterTimeout === true) {
@@ -6761,11 +6732,11 @@ var require_execa = __commonJS({
6761
6732
  var { joinCommand, parseCommand, getEscapedCommand } = require_command();
6762
6733
  var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
6763
6734
  var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
6764
- const env2 = extendEnv ? __spreadValues(__spreadValues({}, process.env), envOption) : envOption;
6735
+ const env = extendEnv ? __spreadValues(__spreadValues({}, process.env), envOption) : envOption;
6765
6736
  if (preferLocal) {
6766
- return npmRunPath.env({ env: env2, cwd: localDir, execPath });
6737
+ return npmRunPath.env({ env, cwd: localDir, execPath });
6767
6738
  }
6768
- return env2;
6739
+ return env;
6769
6740
  };
6770
6741
  var handleArguments = (file, args, options = {}) => {
6771
6742
  const parsed = crossSpawn._parse(file, args, options);
@@ -16526,15 +16497,15 @@ var require_runtime = __commonJS({
16526
16497
  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] + ").");
16527
16498
  }
16528
16499
  }
16529
- function template(templateSpec, env2) {
16530
- if (!env2) {
16500
+ function template(templateSpec, env) {
16501
+ if (!env) {
16531
16502
  throw new _exception2["default"]("No environment passed to template");
16532
16503
  }
16533
16504
  if (!templateSpec || !templateSpec.main) {
16534
16505
  throw new _exception2["default"]("Unknown template object: " + typeof templateSpec);
16535
16506
  }
16536
16507
  templateSpec.main.decorator = templateSpec.main_d;
16537
- env2.VM.checkRevision(templateSpec.compiler);
16508
+ env.VM.checkRevision(templateSpec.compiler);
16538
16509
  var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;
16539
16510
  function invokePartialWrapper(partial, context, options) {
16540
16511
  if (options.hash) {
@@ -16543,14 +16514,14 @@ var require_runtime = __commonJS({
16543
16514
  options.ids[0] = true;
16544
16515
  }
16545
16516
  }
16546
- partial = env2.VM.resolvePartial.call(this, partial, context, options);
16517
+ partial = env.VM.resolvePartial.call(this, partial, context, options);
16547
16518
  var extendedOptions = Utils.extend({}, options, {
16548
16519
  hooks: this.hooks,
16549
16520
  protoAccessControl: this.protoAccessControl
16550
16521
  });
16551
- var result = env2.VM.invokePartial.call(this, partial, context, extendedOptions);
16552
- if (result == null && env2.compile) {
16553
- options.partials[options.name] = env2.compile(partial, templateSpec.compilerOptions, env2);
16522
+ var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);
16523
+ if (result == null && env.compile) {
16524
+ options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);
16554
16525
  result = options.partials[options.name](context, extendedOptions);
16555
16526
  }
16556
16527
  if (result != null) {
@@ -16635,7 +16606,7 @@ var require_runtime = __commonJS({
16635
16606
  },
16636
16607
  // An empty object to use as replacement for null-contexts
16637
16608
  nullContext: Object.seal({}),
16638
- noop: env2.VM.noop,
16609
+ noop: env.VM.noop,
16639
16610
  compilerInfo: templateSpec.compiler
16640
16611
  };
16641
16612
  function ret(context) {
@@ -16662,14 +16633,14 @@ var require_runtime = __commonJS({
16662
16633
  ret.isTop = true;
16663
16634
  ret._setup = function(options) {
16664
16635
  if (!options.partial) {
16665
- var mergedHelpers = Utils.extend({}, env2.helpers, options.helpers);
16636
+ var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
16666
16637
  wrapHelpersToPassLookupProperty(mergedHelpers, container);
16667
16638
  container.helpers = mergedHelpers;
16668
16639
  if (templateSpec.usePartial) {
16669
- container.partials = container.mergeIfNeeded(options.partials, env2.partials);
16640
+ container.partials = container.mergeIfNeeded(options.partials, env.partials);
16670
16641
  }
16671
16642
  if (templateSpec.usePartial || templateSpec.useDecorators) {
16672
- container.decorators = Utils.extend({}, env2.decorators, options.decorators);
16643
+ container.decorators = Utils.extend({}, env.decorators, options.decorators);
16673
16644
  }
16674
16645
  container.hooks = {};
16675
16646
  container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);
@@ -18480,7 +18451,7 @@ var require_compiler = __commonJS({
18480
18451
  }
18481
18452
  }
18482
18453
  };
18483
- function precompile(input, options, env2) {
18454
+ function precompile(input, options, env) {
18484
18455
  if (input == null || typeof input !== "string" && input.type !== "Program") {
18485
18456
  throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input);
18486
18457
  }
@@ -18491,10 +18462,10 @@ var require_compiler = __commonJS({
18491
18462
  if (options.compat) {
18492
18463
  options.useDepths = true;
18493
18464
  }
18494
- var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options);
18495
- return new env2.JavaScriptCompiler().compile(environment, options);
18465
+ var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options);
18466
+ return new env.JavaScriptCompiler().compile(environment, options);
18496
18467
  }
18497
- function compile2(input, options, env2) {
18468
+ function compile2(input, options, env) {
18498
18469
  if (options === void 0)
18499
18470
  options = {};
18500
18471
  if (input == null || typeof input !== "string" && input.type !== "Program") {
@@ -18509,8 +18480,8 @@ var require_compiler = __commonJS({
18509
18480
  }
18510
18481
  var compiled = void 0;
18511
18482
  function compileInput() {
18512
- var ast = env2.parse(input, options), environment = new env2.Compiler().compile(ast, options), templateSpec = new env2.JavaScriptCompiler().compile(environment, options, void 0, true);
18513
- return env2.template(templateSpec);
18483
+ var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true);
18484
+ return env.template(templateSpec);
18514
18485
  }
18515
18486
  function ret(context, execOptions) {
18516
18487
  if (!compiled) {
@@ -27362,7 +27333,7 @@ var require_innerFrom = __commonJS({
27362
27333
  exports.fromIterable = fromIterable;
27363
27334
  function fromAsyncIterable(asyncIterable) {
27364
27335
  return new Observable_1.Observable(function(subscriber) {
27365
- process3(asyncIterable, subscriber).catch(function(err) {
27336
+ process2(asyncIterable, subscriber).catch(function(err) {
27366
27337
  return subscriber.error(err);
27367
27338
  });
27368
27339
  });
@@ -27372,7 +27343,7 @@ var require_innerFrom = __commonJS({
27372
27343
  return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
27373
27344
  }
27374
27345
  exports.fromReadableStreamLike = fromReadableStreamLike;
27375
- function process3(asyncIterable, subscriber) {
27346
+ function process2(asyncIterable, subscriber) {
27376
27347
  var asyncIterable_1, asyncIterable_1_1;
27377
27348
  var e_2, _a2;
27378
27349
  return __awaiter4(this, void 0, void 0, function() {
@@ -65454,7 +65425,7 @@ function _async_to_generator(fn) {
65454
65425
  };
65455
65426
  }
65456
65427
 
65457
- // ../../../../node_modules/.pnpm/tslib@2.7.0/node_modules/tslib/tslib.es6.mjs
65428
+ // ../../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
65458
65429
  function __generator(thisArg, body) {
65459
65430
  var _ = { label: 0, sent: function() {
65460
65431
  if (t[0] & 1)
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.7.5",
18
+ "version": "3.7.7",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -24,18 +24,18 @@
24
24
  ],
25
25
  "devDependencies": {
26
26
  "@modern-js/codesmith": "2.6.5",
27
- "@modern-js/codesmith-utils": "2.6.5",
28
27
  "@modern-js/codesmith-api-app": "2.6.5",
29
28
  "@modern-js/codesmith-api-json": "2.6.5",
29
+ "@modern-js/codesmith-utils": "2.6.5",
30
30
  "@types/jest": "^29",
31
31
  "@types/node": "^14",
32
32
  "jest": "^29",
33
33
  "typescript": "^5",
34
- "@modern-js/dependence-generator": "3.7.5",
35
- "@modern-js/generator-common": "3.7.5",
36
- "@scripts/build": "2.62.1",
37
- "@modern-js/generator-utils": "3.7.5",
38
- "@scripts/jest-config": "2.62.1"
34
+ "@modern-js/dependence-generator": "3.7.7",
35
+ "@scripts/build": "2.63.1",
36
+ "@scripts/jest-config": "2.63.1",
37
+ "@modern-js/generator-utils": "3.7.7",
38
+ "@modern-js/generator-common": "3.7.7"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {