@oclif/plugin-test-esbuild 0.5.54 → 0.5.55

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/README.md CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @oclif/plugin-test-esbuild
17
17
  $ bundle COMMAND
18
18
  running command...
19
19
  $ bundle (--version)
20
- @oclif/plugin-test-esbuild/0.5.54 linux-x64 node-v22.12.0
20
+ @oclif/plugin-test-esbuild/0.5.55 linux-x64 node-v22.12.0
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-5LF545V4.js";
3
+ } from "./chunk-D3SCYONE.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -215912,7 +215912,7 @@ var require_ux = __commonJS({
215912
215912
  return mod && mod.__esModule ? mod : { "default": mod };
215913
215913
  };
215914
215914
  Object.defineProperty(exports, "__esModule", { value: true });
215915
- exports.ux = exports.stdout = exports.stderr = exports.colorize = exports.colorizeJson = exports.warn = exports.exit = exports.error = void 0;
215915
+ exports.ux = exports.action = exports.stdout = exports.stderr = exports.colorize = exports.colorizeJson = exports.warn = exports.exit = exports.error = void 0;
215916
215916
  var error_1 = require_error();
215917
215917
  var exit_1 = require_exit2();
215918
215918
  var warn_1 = require_warn();
@@ -215949,8 +215949,9 @@ var require_ux = __commonJS({
215949
215949
  return write_2.stdout;
215950
215950
  } });
215951
215951
  var ACTION_TYPE = Boolean(process.stderr.isTTY) && !process.env.CI && !["dumb", "emacs-color"].includes(process.env.TERM) && "spinner" || "simple";
215952
+ exports.action = ACTION_TYPE === "spinner" ? new spinner_1.default() : new simple_1.default();
215952
215953
  exports.ux = {
215953
- action: ACTION_TYPE === "spinner" ? new spinner_1.default() : new simple_1.default(),
215954
+ action: exports.action,
215954
215955
  /**
215955
215956
  * Add color to text.
215956
215957
  * @param color color to use. Can be hex code (e.g. `#ff0000`), rgb (e.g. `rgb(255, 255, 255)`) or a standard ansi color (e.g. `red`)
@@ -228277,7 +228278,10 @@ var require_validate = __commonJS({
228277
228278
  return [{ name, reason: `Missing required flag ${name}`, status: "failed", validationFn: "required" }];
228278
228279
  }
228279
228280
  if (flag.exactlyOne && flag.exactlyOne.length > 0) {
228280
- return [validateAcrossFlags(flag)];
228281
+ return [validateExactlyOneAcrossFlags(flag)];
228282
+ }
228283
+ if (flag.atLeastOne && flag.atLeastOne.length > 0) {
228284
+ return [validateAtLeastOneAcrossFlags(flag)];
228281
228285
  }
228282
228286
  return [];
228283
228287
  });
@@ -228304,8 +228308,8 @@ var require_validate = __commonJS({
228304
228308
  return cachedResolvedFlags;
228305
228309
  }
228306
228310
  const getPresentFlags = (flags) => Object.keys(flags).filter((key) => key !== void 0);
228307
- function validateAcrossFlags(flag) {
228308
- const base = { name: flag.name, validationFn: "validateAcrossFlags" };
228311
+ function validateExactlyOneAcrossFlags(flag) {
228312
+ const base = { name: flag.name, validationFn: "validateExactlyOneAcrossFlags" };
228309
228313
  const intersection = Object.entries(parse.input.flags).map((entry) => entry[0]).filter((flagName) => parse.output.flags[flagName] !== void 0).filter((flagName) => flag.exactlyOne && flag.exactlyOne.includes(flagName));
228310
228314
  if (intersection.length === 0) {
228311
228315
  const deduped = (0, util_1.uniq)(flag.exactlyOne?.map((flag2) => `--${flag2}`) ?? []).join(", ");
@@ -228314,6 +228318,16 @@ var require_validate = __commonJS({
228314
228318
  }
228315
228319
  return { ...base, status: "success" };
228316
228320
  }
228321
+ function validateAtLeastOneAcrossFlags(flag) {
228322
+ const base = { name: flag.name, validationFn: "validateAtLeastOneAcrossFlags" };
228323
+ const intersection = Object.entries(parse.input.flags).map((entry) => entry[0]).filter((flagName) => parse.output.flags[flagName] !== void 0).filter((flagName) => flag.atLeastOne && flag.atLeastOne.includes(flagName));
228324
+ if (intersection.length === 0) {
228325
+ const deduped = (0, util_1.uniq)(flag.atLeastOne?.map((flag2) => `--${flag2}`) ?? []).join(", ");
228326
+ const reason = `At least one of the following must be provided: ${deduped}`;
228327
+ return { ...base, reason, status: "failed" };
228328
+ }
228329
+ return { ...base, status: "success" };
228330
+ }
228317
228331
  async function validateExclusive(name, flags) {
228318
228332
  const base = { name, validationFn: "validateExclusive" };
228319
228333
  const resolved = await resolveFlags(flags);
@@ -228866,13 +228880,6 @@ var require_main = __commonJS({
228866
228880
  async function run(argv, options) {
228867
228881
  const marker = performance_1.Performance.mark(performance_1.OCLIF_MARKER_OWNER, "main.run");
228868
228882
  const initMarker = performance_1.Performance.mark(performance_1.OCLIF_MARKER_OWNER, "main.run#init");
228869
- const collectPerf = async () => {
228870
- marker?.stop();
228871
- if (!initMarker?.stopped)
228872
- initMarker?.stop();
228873
- await performance_1.Performance.collect();
228874
- performance_1.Performance.debug();
228875
- };
228876
228883
  const showHelp = async (argv2) => {
228877
228884
  const Help = await (0, help_1.loadHelpClass)(config);
228878
228885
  const help = new Help(config, config.pjson.oclif.helpOptions ?? config.pjson.helpOptions);
@@ -228893,15 +228900,23 @@ var require_main = __commonJS({
228893
228900
  argv = [symbols_1.SINGLE_COMMAND_CLI_SYMBOL, ...argv];
228894
228901
  }
228895
228902
  const [id, ...argvSlice] = (0, help_1.normalizeArgv)(config, argv);
228903
+ const runFinally = async () => {
228904
+ marker?.stop();
228905
+ if (!initMarker?.stopped)
228906
+ initMarker?.stop();
228907
+ await performance_1.Performance.collect();
228908
+ performance_1.Performance.debug();
228909
+ await config.runHook("finally", { argv: argvSlice, id });
228910
+ };
228896
228911
  await config.runHook("init", { argv: argvSlice, id });
228897
228912
  if ((0, exports.versionAddition)(argv, config)) {
228898
228913
  ux_1.ux.stdout(config.userAgent);
228899
- await collectPerf();
228914
+ await runFinally();
228900
228915
  return;
228901
228916
  }
228902
228917
  if ((0, exports.helpAddition)(argv, config)) {
228903
228918
  await showHelp(argv);
228904
- await collectPerf();
228919
+ await runFinally();
228905
228920
  return;
228906
228921
  }
228907
228922
  const cmd = config.findCommand(id);
@@ -228909,7 +228924,7 @@ var require_main = __commonJS({
228909
228924
  const topic = config.flexibleTaxonomy ? null : config.findTopic(id);
228910
228925
  if (topic) {
228911
228926
  await showHelp([id]);
228912
- await collectPerf();
228927
+ await runFinally();
228913
228928
  return;
228914
228929
  }
228915
228930
  }
@@ -228917,7 +228932,7 @@ var require_main = __commonJS({
228917
228932
  try {
228918
228933
  return await config.runCommand(id, argvSlice, cmd);
228919
228934
  } finally {
228920
- await collectPerf();
228935
+ await runFinally();
228921
228936
  }
228922
228937
  }
228923
228938
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-5LF545V4.js";
3
+ } from "./chunk-D3SCYONE.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-5LF545V4.js";
3
+ } from "./chunk-D3SCYONE.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-5LF545V4.js";
3
+ } from "./chunk-D3SCYONE.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-JIWRUWYK.js";
4
- import "../chunk-5LF545V4.js";
3
+ } from "../chunk-T6UOPIGB.js";
4
+ import "../chunk-D3SCYONE.js";
5
5
  import "../chunk-NAYBUSHR.js";
6
6
  import "../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-LSUXYPBX.js";
4
- import "../../chunk-5LF545V4.js";
3
+ } from "../../chunk-Q2YUD26U.js";
4
+ import "../../chunk-D3SCYONE.js";
5
5
  import "../../chunk-NAYBUSHR.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-7IYQQBC6.js";
4
- import "../../chunk-5LF545V4.js";
3
+ } from "../../chunk-BLDEC7JZ.js";
4
+ import "../../chunk-D3SCYONE.js";
5
5
  import "../../chunk-NAYBUSHR.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-6AJVZVTV.js";
4
- import "../../chunk-5LF545V4.js";
3
+ } from "../../chunk-T4I2GS2V.js";
4
+ import "../../chunk-D3SCYONE.js";
5
5
  import "../../chunk-NAYBUSHR.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-JIWRUWYK.js";
3
+ } from "./chunk-T6UOPIGB.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-LSUXYPBX.js";
6
+ } from "./chunk-Q2YUD26U.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-7IYQQBC6.js";
9
+ } from "./chunk-BLDEC7JZ.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-6AJVZVTV.js";
12
+ } from "./chunk-T4I2GS2V.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-5LF545V4.js";
17
+ } from "./chunk-D3SCYONE.js";
18
18
  import {
19
19
  require_lib as require_lib2
20
20
  } from "./chunk-SO2G2ODZ.js";
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.54"
478
+ "version": "0.5.55"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.54",
3
+ "version": "0.5.55",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",