@igniter-js/cli 0.2.67 → 0.2.69

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.
package/bin/igniter CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- require('../dist/index.js');
2
+ import('../dist/index.mjs');
package/dist/index.js CHANGED
@@ -4275,21 +4275,19 @@ var require_supports_color = __commonJS({
4275
4275
  var tty = require("tty");
4276
4276
  var hasFlag = require_has_flag();
4277
4277
  var { env } = process;
4278
- var flagForceColor;
4278
+ var forceColor;
4279
4279
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
4280
- flagForceColor = 0;
4280
+ forceColor = 0;
4281
4281
  } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
4282
- flagForceColor = 1;
4282
+ forceColor = 1;
4283
4283
  }
4284
- function envForceColor() {
4285
- if ("FORCE_COLOR" in env) {
4286
- if (env.FORCE_COLOR === "true") {
4287
- return 1;
4288
- }
4289
- if (env.FORCE_COLOR === "false") {
4290
- return 0;
4291
- }
4292
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
4284
+ if ("FORCE_COLOR" in env) {
4285
+ if (env.FORCE_COLOR === "true") {
4286
+ forceColor = 1;
4287
+ } else if (env.FORCE_COLOR === "false") {
4288
+ forceColor = 0;
4289
+ } else {
4290
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
4293
4291
  }
4294
4292
  }
4295
4293
  function translateLevel(level) {
@@ -4303,22 +4301,15 @@ var require_supports_color = __commonJS({
4303
4301
  has16m: level >= 3
4304
4302
  };
4305
4303
  }
4306
- function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
4307
- const noFlagForceColor = envForceColor();
4308
- if (noFlagForceColor !== void 0) {
4309
- flagForceColor = noFlagForceColor;
4310
- }
4311
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
4304
+ function supportsColor(haveStream, streamIsTTY) {
4312
4305
  if (forceColor === 0) {
4313
4306
  return 0;
4314
4307
  }
4315
- if (sniffFlags) {
4316
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
4317
- return 3;
4318
- }
4319
- if (hasFlag("color=256")) {
4320
- return 2;
4321
- }
4308
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
4309
+ return 3;
4310
+ }
4311
+ if (hasFlag("color=256")) {
4312
+ return 2;
4322
4313
  }
4323
4314
  if (haveStream && !streamIsTTY && forceColor === void 0) {
4324
4315
  return 0;
@@ -4335,7 +4326,7 @@ var require_supports_color = __commonJS({
4335
4326
  return 1;
4336
4327
  }
4337
4328
  if ("CI" in env) {
4338
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
4329
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
4339
4330
  return 1;
4340
4331
  }
4341
4332
  return min;
@@ -4347,7 +4338,7 @@ var require_supports_color = __commonJS({
4347
4338
  return 3;
4348
4339
  }
4349
4340
  if ("TERM_PROGRAM" in env) {
4350
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
4341
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
4351
4342
  switch (env.TERM_PROGRAM) {
4352
4343
  case "iTerm.app":
4353
4344
  return version >= 3 ? 3 : 2;
@@ -4366,17 +4357,14 @@ var require_supports_color = __commonJS({
4366
4357
  }
4367
4358
  return min;
4368
4359
  }
4369
- function getSupportLevel(stream, options = {}) {
4370
- const level = supportsColor(stream, {
4371
- streamIsTTY: stream && stream.isTTY,
4372
- ...options
4373
- });
4360
+ function getSupportLevel(stream) {
4361
+ const level = supportsColor(stream, stream && stream.isTTY);
4374
4362
  return translateLevel(level);
4375
4363
  }
4376
4364
  module2.exports = {
4377
4365
  supportsColor: getSupportLevel,
4378
- stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
4379
- stderr: getSupportLevel({ isTTY: tty.isatty(2) })
4366
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
4367
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
4380
4368
  };
4381
4369
  }
4382
4370
  });