@oclif/plugin-test-esbuild 0.5.64 → 0.5.65

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.64 linux-x64 node-v22.13.0
20
+ @oclif/plugin-test-esbuild/0.5.65 linux-x64 node-v22.13.1
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-SJ2X2LSZ.js";
3
+ } from "./chunk-QYBDSXKV.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-SJ2X2LSZ.js";
3
+ } from "./chunk-QYBDSXKV.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-SJ2X2LSZ.js";
3
+ } from "./chunk-QYBDSXKV.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -248,6 +248,146 @@ var require_args = __commonJS({
248
248
  }
249
249
  });
250
250
 
251
+ // node_modules/@oclif/core/package.json
252
+ var require_package = __commonJS({
253
+ "node_modules/@oclif/core/package.json"(exports, module) {
254
+ module.exports = {
255
+ name: "@oclif/core",
256
+ description: "base library for oclif CLIs",
257
+ version: "4.2.5",
258
+ author: "Salesforce",
259
+ bugs: "https://github.com/oclif/core/issues",
260
+ dependencies: {
261
+ "ansi-escapes": "^4.3.2",
262
+ ansis: "^3.9.0",
263
+ "clean-stack": "^3.0.1",
264
+ "cli-spinners": "^2.9.2",
265
+ debug: "^4.4.0",
266
+ ejs: "^3.1.10",
267
+ "get-package-type": "^0.1.0",
268
+ globby: "^11.1.0",
269
+ "indent-string": "^4.0.0",
270
+ "is-wsl": "^2.2.0",
271
+ lilconfig: "^3.1.3",
272
+ minimatch: "^9.0.5",
273
+ semver: "^7.6.3",
274
+ "string-width": "^4.2.3",
275
+ "supports-color": "^8",
276
+ "widest-line": "^3.1.0",
277
+ wordwrap: "^1.0.0",
278
+ "wrap-ansi": "^7.0.0"
279
+ },
280
+ devDependencies: {
281
+ "@commitlint/config-conventional": "^19",
282
+ "@eslint/compat": "^1.2.5",
283
+ "@oclif/plugin-help": "^6",
284
+ "@oclif/plugin-plugins": "^5",
285
+ "@oclif/prettier-config": "^0.2.1",
286
+ "@oclif/test": "^4",
287
+ "@types/benchmark": "^2.1.5",
288
+ "@types/chai": "^4.3.16",
289
+ "@types/chai-as-promised": "^7.1.8",
290
+ "@types/clean-stack": "^2.1.1",
291
+ "@types/debug": "^4.1.10",
292
+ "@types/ejs": "^3.1.5",
293
+ "@types/indent-string": "^4.0.1",
294
+ "@types/mocha": "^10.0.10",
295
+ "@types/node": "^18",
296
+ "@types/pnpapi": "^0.0.5",
297
+ "@types/sinon": "^17.0.3",
298
+ "@types/supports-color": "^8.1.3",
299
+ "@types/wordwrap": "^1.0.3",
300
+ "@types/wrap-ansi": "^3.0.0",
301
+ benchmark: "^2.1.4",
302
+ chai: "^4.5.0",
303
+ "chai-as-promised": "^7.1.2",
304
+ commitlint: "^19",
305
+ "cross-env": "^7.0.3",
306
+ eslint: "^9",
307
+ "eslint-config-oclif": "^6",
308
+ "eslint-config-prettier": "^10",
309
+ husky: "^9.1.7",
310
+ "lint-staged": "^15",
311
+ madge: "^6.1.0",
312
+ mocha: "^10.8.2",
313
+ nyc: "^15.1.0",
314
+ prettier: "^3.4.2",
315
+ shx: "^0.3.4",
316
+ sinon: "^18",
317
+ "ts-node": "^10.9.2",
318
+ tsd: "^0.31.2",
319
+ typescript: "^5"
320
+ },
321
+ engines: {
322
+ node: ">=18.0.0"
323
+ },
324
+ files: [
325
+ "/lib"
326
+ ],
327
+ homepage: "https://github.com/oclif/core",
328
+ keywords: [
329
+ "oclif",
330
+ "cli",
331
+ "command",
332
+ "command line",
333
+ "parser",
334
+ "args",
335
+ "argv"
336
+ ],
337
+ license: "MIT",
338
+ exports: {
339
+ ".": "./lib/index.js",
340
+ "./args": "./lib/args.js",
341
+ "./command": "./lib/command.js",
342
+ "./config": "./lib/config/index.js",
343
+ "./errors": "./lib/errors/index.js",
344
+ "./execute": "./lib/execute.js",
345
+ "./flags": "./lib/flags.js",
346
+ "./flush": "./lib/flush.js",
347
+ "./handle": "./lib/errors/handle.js",
348
+ "./help": "./lib/help/index.js",
349
+ "./hooks": "./lib/interfaces/hooks.js",
350
+ "./interfaces": "./lib/interfaces/index.js",
351
+ "./logger": "./lib/logger.js",
352
+ "./package.json": "./package.json",
353
+ "./parser": "./lib/parser/index.js",
354
+ "./performance": "./lib/performance.js",
355
+ "./run": "./lib/main.js",
356
+ "./settings": "./lib/settings.js",
357
+ "./util/ids": "./lib/util/ids.js",
358
+ "./ux": "./lib/ux/index.js"
359
+ },
360
+ repository: "oclif/core",
361
+ oclif: {
362
+ bin: "oclif",
363
+ devPlugins: [
364
+ "@oclif/plugin-help",
365
+ "@oclif/plugin-plugins"
366
+ ]
367
+ },
368
+ publishConfig: {
369
+ access: "public"
370
+ },
371
+ scripts: {
372
+ build: "shx rm -rf lib && tsc",
373
+ compile: "tsc",
374
+ format: 'prettier --write "+(src|test)/**/*.+(ts|js|json)"',
375
+ lint: "eslint",
376
+ posttest: "yarn lint && yarn test:circular-deps",
377
+ prepack: "yarn run build",
378
+ prepare: "husky",
379
+ "test:circular-deps": "yarn build && madge lib/ -c",
380
+ "test:debug": 'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',
381
+ "test:integration": 'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',
382
+ "test:interoperability": "cross-env DEBUG=integration:* ts-node test/integration/interop.ts",
383
+ "test:perf": "ts-node test/perf/parser.perf.ts",
384
+ test: 'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'
385
+ },
386
+ types: "lib/index.d.ts"
387
+ };
388
+ }
389
+ });
390
+
251
391
  // node_modules/@oclif/core/lib/cache.js
252
392
  var require_cache = __commonJS({
253
393
  "node_modules/@oclif/core/lib/cache.js"(exports) {
@@ -273,7 +413,7 @@ var require_cache = __commonJS({
273
413
  }
274
414
  getOclifCoreMeta() {
275
415
  try {
276
- return { name: "@oclif/core", version: __require("@oclif/core/package.json").version };
416
+ return { name: "@oclif/core", version: require_package().version };
277
417
  } catch {
278
418
  try {
279
419
  return {
@@ -426,7 +566,7 @@ function encode_char(c) {
426
566
  });
427
567
 
428
568
  // node_modules/ejs/package.json
429
- var require_package = __commonJS({
569
+ var require_package2 = __commonJS({
430
570
  "node_modules/ejs/package.json"(exports, module) {
431
571
  module.exports = {
432
572
  name: "ejs",
@@ -482,7 +622,7 @@ var require_ejs = __commonJS({
482
622
  var path = __require("path");
483
623
  var utils = require_utils();
484
624
  var scopeOptionWarned = false;
485
- var _VERSION_STRING = require_package().version;
625
+ var _VERSION_STRING = require_package2().version;
486
626
  var _DEFAULT_OPEN_DELIMITER = "<";
487
627
  var _DEFAULT_CLOSE_DELIMITER = ">";
488
628
  var _DEFAULT_DELIMITER = "%";
@@ -3444,9 +3584,9 @@ var require_settings = __commonJS({
3444
3584
  init_cjs_shims();
3445
3585
  Object.defineProperty(exports, "__esModule", { value: true });
3446
3586
  exports.settings = void 0;
3447
- if (!global.oclif)
3448
- global.oclif = {};
3449
- exports.settings = global.oclif;
3587
+ if (!globalThis.oclif)
3588
+ globalThis.oclif = {};
3589
+ exports.settings = globalThis.oclif;
3450
3590
  }
3451
3591
  });
3452
3592
 
@@ -3715,6 +3855,7 @@ var require_cli = __commonJS({
3715
3855
  this.code = options.code;
3716
3856
  this.suggestions = options.suggestions;
3717
3857
  }
3858
+ // eslint-disable-next-line getter-return
3718
3859
  get bang() {
3719
3860
  try {
3720
3861
  return (0, theme_1.colorize)("red", process.platform === "win32" ? "\xBB" : "\u203A");
@@ -3726,7 +3867,7 @@ var require_cli = __commonJS({
3726
3867
  }
3727
3868
  /**
3728
3869
  * @deprecated `render` Errors display should be handled by display function, like pretty-print
3729
- * @return {string} returns a string representing the dispay of the error
3870
+ * @returns {string} returns a string representing the display of the error
3730
3871
  */
3731
3872
  render() {
3732
3873
  if (settings_1.settings.debug) {
@@ -3747,6 +3888,7 @@ var require_cli = __commonJS({
3747
3888
  super(err instanceof Error ? err.message : err);
3748
3889
  this.name = "Warning";
3749
3890
  }
3891
+ // eslint-disable-next-line getter-return
3750
3892
  get bang() {
3751
3893
  try {
3752
3894
  return (0, theme_1.colorize)("yellow", process.platform === "win32" ? "\xBB" : "\u203A");
@@ -213555,13 +213697,13 @@ var require_module_loader = __commonJS({
213555
213697
  exports.loadWithData = loadWithData;
213556
213698
  exports.loadWithDataFromManifest = loadWithDataFromManifest;
213557
213699
  exports.isPathModule = isPathModule;
213700
+ var getPackageType = require_get_package_type();
213558
213701
  var node_fs_1 = __require("node:fs");
213559
213702
  var node_path_1 = __require("node:path");
213560
213703
  var node_url_1 = __require("node:url");
213561
213704
  var ts_path_1 = require_ts_path();
213562
213705
  var module_load_1 = require_module_load();
213563
213706
  var fs_1 = require_fs();
213564
- var getPackageType = require_get_package_type();
213565
213707
  var SUPPORTED_EXTENSIONS = [".ts", ".js", ".mjs", ".cjs", ".mts", ".cts", ".tsx", ".jsx"];
213566
213708
  var isPlugin = (config) => config.type !== void 0;
213567
213709
  function handleError(error, isESM, path) {
@@ -213748,6 +213890,13 @@ var require_base = __commonJS({
213748
213890
  stderr: process.stderr.write,
213749
213891
  stdout: process.stdout.write
213750
213892
  };
213893
+ get globals() {
213894
+ ;
213895
+ globalThis.ux = globalThis.ux || {};
213896
+ const globals = globalThis.ux;
213897
+ globals.action = globals.action || {};
213898
+ return globals;
213899
+ }
213751
213900
  get output() {
213752
213901
  return this.globals.output;
213753
213902
  }
@@ -213777,52 +213926,6 @@ var require_base = __commonJS({
213777
213926
  set task(task) {
213778
213927
  this.globals.action.task = task;
213779
213928
  }
213780
- pause(fn, icon) {
213781
- const { task } = this;
213782
- const active = task && task.active;
213783
- if (task && active) {
213784
- this._pause(icon);
213785
- this._stdout(false);
213786
- task.active = false;
213787
- }
213788
- const ret = fn();
213789
- if (task && active) {
213790
- this._resume();
213791
- }
213792
- return ret;
213793
- }
213794
- async pauseAsync(fn, icon) {
213795
- const { task } = this;
213796
- const active = task && task.active;
213797
- if (task && active) {
213798
- this._pause(icon);
213799
- this._stdout(false);
213800
- task.active = false;
213801
- }
213802
- const ret = await fn();
213803
- if (task && active) {
213804
- this._resume();
213805
- }
213806
- return ret;
213807
- }
213808
- start(action, status, opts = {}) {
213809
- this.std = opts.stdout ? "stdout" : "stderr";
213810
- const task = { action, active: Boolean(this.task && this.task.active), status };
213811
- this.task = task;
213812
- this._start(opts);
213813
- task.active = true;
213814
- this._stdout(true);
213815
- }
213816
- stop(msg = "done") {
213817
- const { task } = this;
213818
- if (!task) {
213819
- return;
213820
- }
213821
- this._stop(msg);
213822
- task.active = false;
213823
- this.task = void 0;
213824
- this._stdout(false);
213825
- }
213826
213929
  // flush mocked stdout/stderr
213827
213930
  _flushStdout() {
213828
213931
  try {
@@ -213889,25 +213992,64 @@ var require_base = __commonJS({
213889
213992
  // write to the real stdout/stderr
213890
213993
  _write(std, s) {
213891
213994
  switch (std) {
213892
- case "stdout": {
213893
- this.stdmockOrigs.stdout.apply(process.stdout, (0, util_1.castArray)(s));
213894
- break;
213895
- }
213896
213995
  case "stderr": {
213897
213996
  this.stdmockOrigs.stderr.apply(process.stderr, (0, util_1.castArray)(s));
213898
213997
  break;
213899
213998
  }
213999
+ case "stdout": {
214000
+ this.stdmockOrigs.stdout.apply(process.stdout, (0, util_1.castArray)(s));
214001
+ break;
214002
+ }
213900
214003
  default: {
213901
214004
  throw new Error(`invalid std: ${std}`);
213902
214005
  }
213903
214006
  }
213904
214007
  }
213905
- get globals() {
213906
- ;
213907
- global.ux = global.ux || {};
213908
- const globals = global.ux;
213909
- globals.action = globals.action || {};
213910
- return globals;
214008
+ pause(fn, icon) {
214009
+ const { task } = this;
214010
+ const active = task && task.active;
214011
+ if (task && active) {
214012
+ this._pause(icon);
214013
+ this._stdout(false);
214014
+ task.active = false;
214015
+ }
214016
+ const ret = fn();
214017
+ if (task && active) {
214018
+ this._resume();
214019
+ }
214020
+ return ret;
214021
+ }
214022
+ async pauseAsync(fn, icon) {
214023
+ const { task } = this;
214024
+ const active = task && task.active;
214025
+ if (task && active) {
214026
+ this._pause(icon);
214027
+ this._stdout(false);
214028
+ task.active = false;
214029
+ }
214030
+ const ret = await fn();
214031
+ if (task && active) {
214032
+ this._resume();
214033
+ }
214034
+ return ret;
214035
+ }
214036
+ start(action, status, opts = {}) {
214037
+ this.std = opts.stdout ? "stdout" : "stderr";
214038
+ const task = { action, active: Boolean(this.task && this.task.active), status };
214039
+ this.task = task;
214040
+ this._start(opts);
214041
+ task.active = true;
214042
+ this._stdout(true);
214043
+ }
214044
+ stop(msg = "done") {
214045
+ const { task } = this;
214046
+ if (!task) {
214047
+ return;
214048
+ }
214049
+ this._stop(msg);
214050
+ task.active = false;
214051
+ this.task = void 0;
214052
+ this._stdout(false);
213911
214053
  }
213912
214054
  };
213913
214055
  exports.ActionBase = ActionBase;
@@ -213923,23 +214065,12 @@ var require_simple = __commonJS({
213923
214065
  var base_1 = require_base();
213924
214066
  var SimpleAction = class extends base_1.ActionBase {
213925
214067
  type = "simple";
213926
- _flush() {
213927
- this._write(this.std, "\n");
213928
- this._flushStdout();
213929
- }
213930
214068
  _pause(icon) {
213931
214069
  if (icon)
213932
214070
  this._updateStatus(icon);
213933
214071
  else
213934
214072
  this._flush();
213935
214073
  }
213936
- _render(action, status) {
213937
- if (!this.task)
213938
- return;
213939
- if (this.task.active)
213940
- this._flush();
213941
- this._write(this.std, status ? `${action}... ${status}` : `${action}...`);
213942
- }
213943
214074
  _resume() {
213944
214075
  }
213945
214076
  _start() {
@@ -213962,11 +214093,150 @@ var require_simple = __commonJS({
213962
214093
  if (newline || !prevStatus)
213963
214094
  this._flush();
213964
214095
  }
214096
+ _flush() {
214097
+ this._write(this.std, "\n");
214098
+ this._flushStdout();
214099
+ }
214100
+ _render(action, status) {
214101
+ if (!this.task)
214102
+ return;
214103
+ if (this.task.active)
214104
+ this._flush();
214105
+ this._write(this.std, status ? `${action}... ${status}` : `${action}...`);
214106
+ }
213965
214107
  };
213966
214108
  exports.default = SimpleAction;
213967
214109
  }
213968
214110
  });
213969
214111
 
214112
+ // node_modules/ansi-escapes/index.js
214113
+ var require_ansi_escapes = __commonJS({
214114
+ "node_modules/ansi-escapes/index.js"(exports, module) {
214115
+ "use strict";
214116
+ init_cjs_shims();
214117
+ var ansiEscapes = module.exports;
214118
+ module.exports.default = ansiEscapes;
214119
+ var ESC = "\x1B[";
214120
+ var OSC = "\x1B]";
214121
+ var BEL = "\x07";
214122
+ var SEP = ";";
214123
+ var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
214124
+ ansiEscapes.cursorTo = (x, y) => {
214125
+ if (typeof x !== "number") {
214126
+ throw new TypeError("The `x` argument is required");
214127
+ }
214128
+ if (typeof y !== "number") {
214129
+ return ESC + (x + 1) + "G";
214130
+ }
214131
+ return ESC + (y + 1) + ";" + (x + 1) + "H";
214132
+ };
214133
+ ansiEscapes.cursorMove = (x, y) => {
214134
+ if (typeof x !== "number") {
214135
+ throw new TypeError("The `x` argument is required");
214136
+ }
214137
+ let ret = "";
214138
+ if (x < 0) {
214139
+ ret += ESC + -x + "D";
214140
+ } else if (x > 0) {
214141
+ ret += ESC + x + "C";
214142
+ }
214143
+ if (y < 0) {
214144
+ ret += ESC + -y + "A";
214145
+ } else if (y > 0) {
214146
+ ret += ESC + y + "B";
214147
+ }
214148
+ return ret;
214149
+ };
214150
+ ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
214151
+ ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
214152
+ ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
214153
+ ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
214154
+ ansiEscapes.cursorLeft = ESC + "G";
214155
+ ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
214156
+ ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
214157
+ ansiEscapes.cursorGetPosition = ESC + "6n";
214158
+ ansiEscapes.cursorNextLine = ESC + "E";
214159
+ ansiEscapes.cursorPrevLine = ESC + "F";
214160
+ ansiEscapes.cursorHide = ESC + "?25l";
214161
+ ansiEscapes.cursorShow = ESC + "?25h";
214162
+ ansiEscapes.eraseLines = (count) => {
214163
+ let clear = "";
214164
+ for (let i = 0; i < count; i++) {
214165
+ clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
214166
+ }
214167
+ if (count) {
214168
+ clear += ansiEscapes.cursorLeft;
214169
+ }
214170
+ return clear;
214171
+ };
214172
+ ansiEscapes.eraseEndLine = ESC + "K";
214173
+ ansiEscapes.eraseStartLine = ESC + "1K";
214174
+ ansiEscapes.eraseLine = ESC + "2K";
214175
+ ansiEscapes.eraseDown = ESC + "J";
214176
+ ansiEscapes.eraseUp = ESC + "1J";
214177
+ ansiEscapes.eraseScreen = ESC + "2J";
214178
+ ansiEscapes.scrollUp = ESC + "S";
214179
+ ansiEscapes.scrollDown = ESC + "T";
214180
+ ansiEscapes.clearScreen = "\x1Bc";
214181
+ ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : (
214182
+ // 1. Erases the screen (Only done in case `2` is not supported)
214183
+ // 2. Erases the whole screen including scrollback buffer
214184
+ // 3. Moves cursor to the top-left position
214185
+ // More info: https://www.real-world-systems.com/docs/ANSIcode.html
214186
+ `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`
214187
+ );
214188
+ ansiEscapes.beep = BEL;
214189
+ ansiEscapes.link = (text, url) => {
214190
+ return [
214191
+ OSC,
214192
+ "8",
214193
+ SEP,
214194
+ SEP,
214195
+ url,
214196
+ BEL,
214197
+ text,
214198
+ OSC,
214199
+ "8",
214200
+ SEP,
214201
+ SEP,
214202
+ BEL
214203
+ ].join("");
214204
+ };
214205
+ ansiEscapes.image = (buffer, options = {}) => {
214206
+ let ret = `${OSC}1337;File=inline=1`;
214207
+ if (options.width) {
214208
+ ret += `;width=${options.width}`;
214209
+ }
214210
+ if (options.height) {
214211
+ ret += `;height=${options.height}`;
214212
+ }
214213
+ if (options.preserveAspectRatio === false) {
214214
+ ret += ";preserveAspectRatio=0";
214215
+ }
214216
+ return ret + ":" + buffer.toString("base64") + BEL;
214217
+ };
214218
+ ansiEscapes.iTerm = {
214219
+ setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
214220
+ annotation: (message, options = {}) => {
214221
+ let ret = `${OSC}1337;`;
214222
+ const hasX = typeof options.x !== "undefined";
214223
+ const hasY = typeof options.y !== "undefined";
214224
+ if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
214225
+ throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
214226
+ }
214227
+ message = message.replace(/\|/g, "");
214228
+ ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
214229
+ if (options.length > 0) {
214230
+ ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
214231
+ } else {
214232
+ ret += message;
214233
+ }
214234
+ return ret + BEL;
214235
+ }
214236
+ };
214237
+ }
214238
+ });
214239
+
213970
214240
  // node_modules/cli-spinners/spinners.json
213971
214241
  var require_spinners = __commonJS({
213972
214242
  "node_modules/cli-spinners/spinners.json"(exports, module) {
@@ -215613,134 +215883,6 @@ var require_cli_spinners = __commonJS({
215613
215883
  }
215614
215884
  });
215615
215885
 
215616
- // node_modules/ansi-escapes/index.js
215617
- var require_ansi_escapes = __commonJS({
215618
- "node_modules/ansi-escapes/index.js"(exports, module) {
215619
- "use strict";
215620
- init_cjs_shims();
215621
- var ansiEscapes = module.exports;
215622
- module.exports.default = ansiEscapes;
215623
- var ESC = "\x1B[";
215624
- var OSC = "\x1B]";
215625
- var BEL = "\x07";
215626
- var SEP = ";";
215627
- var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
215628
- ansiEscapes.cursorTo = (x, y) => {
215629
- if (typeof x !== "number") {
215630
- throw new TypeError("The `x` argument is required");
215631
- }
215632
- if (typeof y !== "number") {
215633
- return ESC + (x + 1) + "G";
215634
- }
215635
- return ESC + (y + 1) + ";" + (x + 1) + "H";
215636
- };
215637
- ansiEscapes.cursorMove = (x, y) => {
215638
- if (typeof x !== "number") {
215639
- throw new TypeError("The `x` argument is required");
215640
- }
215641
- let ret = "";
215642
- if (x < 0) {
215643
- ret += ESC + -x + "D";
215644
- } else if (x > 0) {
215645
- ret += ESC + x + "C";
215646
- }
215647
- if (y < 0) {
215648
- ret += ESC + -y + "A";
215649
- } else if (y > 0) {
215650
- ret += ESC + y + "B";
215651
- }
215652
- return ret;
215653
- };
215654
- ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
215655
- ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
215656
- ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
215657
- ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
215658
- ansiEscapes.cursorLeft = ESC + "G";
215659
- ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
215660
- ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
215661
- ansiEscapes.cursorGetPosition = ESC + "6n";
215662
- ansiEscapes.cursorNextLine = ESC + "E";
215663
- ansiEscapes.cursorPrevLine = ESC + "F";
215664
- ansiEscapes.cursorHide = ESC + "?25l";
215665
- ansiEscapes.cursorShow = ESC + "?25h";
215666
- ansiEscapes.eraseLines = (count) => {
215667
- let clear = "";
215668
- for (let i = 0; i < count; i++) {
215669
- clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
215670
- }
215671
- if (count) {
215672
- clear += ansiEscapes.cursorLeft;
215673
- }
215674
- return clear;
215675
- };
215676
- ansiEscapes.eraseEndLine = ESC + "K";
215677
- ansiEscapes.eraseStartLine = ESC + "1K";
215678
- ansiEscapes.eraseLine = ESC + "2K";
215679
- ansiEscapes.eraseDown = ESC + "J";
215680
- ansiEscapes.eraseUp = ESC + "1J";
215681
- ansiEscapes.eraseScreen = ESC + "2J";
215682
- ansiEscapes.scrollUp = ESC + "S";
215683
- ansiEscapes.scrollDown = ESC + "T";
215684
- ansiEscapes.clearScreen = "\x1Bc";
215685
- ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : (
215686
- // 1. Erases the screen (Only done in case `2` is not supported)
215687
- // 2. Erases the whole screen including scrollback buffer
215688
- // 3. Moves cursor to the top-left position
215689
- // More info: https://www.real-world-systems.com/docs/ANSIcode.html
215690
- `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`
215691
- );
215692
- ansiEscapes.beep = BEL;
215693
- ansiEscapes.link = (text, url) => {
215694
- return [
215695
- OSC,
215696
- "8",
215697
- SEP,
215698
- SEP,
215699
- url,
215700
- BEL,
215701
- text,
215702
- OSC,
215703
- "8",
215704
- SEP,
215705
- SEP,
215706
- BEL
215707
- ].join("");
215708
- };
215709
- ansiEscapes.image = (buffer, options = {}) => {
215710
- let ret = `${OSC}1337;File=inline=1`;
215711
- if (options.width) {
215712
- ret += `;width=${options.width}`;
215713
- }
215714
- if (options.height) {
215715
- ret += `;height=${options.height}`;
215716
- }
215717
- if (options.preserveAspectRatio === false) {
215718
- ret += ";preserveAspectRatio=0";
215719
- }
215720
- return ret + ":" + buffer.toString("base64") + BEL;
215721
- };
215722
- ansiEscapes.iTerm = {
215723
- setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
215724
- annotation: (message, options = {}) => {
215725
- let ret = `${OSC}1337;`;
215726
- const hasX = typeof options.x !== "undefined";
215727
- const hasY = typeof options.y !== "undefined";
215728
- if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
215729
- throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
215730
- }
215731
- message = message.replace(/\|/g, "");
215732
- ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
215733
- if (options.length > 0) {
215734
- ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
215735
- } else {
215736
- ret += message;
215737
- }
215738
- return ret + BEL;
215739
- }
215740
- };
215741
- }
215742
- });
215743
-
215744
215886
  // node_modules/@oclif/core/lib/ux/action/spinner.js
215745
215887
  var require_spinner = __commonJS({
215746
215888
  "node_modules/@oclif/core/lib/ux/action/spinner.js"(exports) {
@@ -215750,13 +215892,13 @@ var require_spinner = __commonJS({
215750
215892
  return mod && mod.__esModule ? mod : { "default": mod };
215751
215893
  };
215752
215894
  Object.defineProperty(exports, "__esModule", { value: true });
215895
+ var ansiEscapes = require_ansi_escapes();
215753
215896
  var ansis_1 = __importDefault(require_ansis());
215754
215897
  var cli_spinners_1 = __importDefault(require_cli_spinners());
215755
215898
  var cache_1 = __importDefault(require_cache());
215756
215899
  var screen_1 = require_screen();
215757
215900
  var theme_1 = require_theme2();
215758
215901
  var base_1 = require_base();
215759
- var ansiEscapes = require_ansi_escapes();
215760
215902
  var SpinnerAction = class extends base_1.ActionBase {
215761
215903
  type = "spinner";
215762
215904
  color = "magenta";
@@ -215768,17 +215910,11 @@ var require_spinner = __commonJS({
215768
215910
  this.frames = this.getFrames();
215769
215911
  this.frameIndex = 0;
215770
215912
  }
215771
- colorize(s) {
215772
- return (0, theme_1.colorize)(this.color, s);
215773
- }
215774
215913
  _frame() {
215775
215914
  const frame = this.frames[this.frameIndex];
215776
215915
  this.frameIndex = ++this.frameIndex % this.frames.length;
215777
215916
  return this.colorize(frame);
215778
215917
  }
215779
- _lines(s) {
215780
- return ansis_1.default.strip(s).split("\n").map((l) => Math.ceil(l.length / screen_1.errtermwidth)).reduce((c, i) => c + i, 0);
215781
- }
215782
215918
  _pause(icon) {
215783
215919
  if (this.spinner)
215784
215920
  clearInterval(this.spinner);
@@ -215787,24 +215923,6 @@ var require_spinner = __commonJS({
215787
215923
  this._render(` ${icon}`);
215788
215924
  this.output = void 0;
215789
215925
  }
215790
- _render(icon) {
215791
- if (!this.task)
215792
- return;
215793
- this._reset();
215794
- this._flushStdout();
215795
- const frame = icon === "spinner" ? ` ${this._frame()}` : icon || "";
215796
- const status = this.task.status ? ` ${this.task.status}` : "";
215797
- this.output = `${this.task.action}...${frame}${status}
215798
- `;
215799
- this._write(this.std, this.output);
215800
- }
215801
- _reset() {
215802
- if (!this.output)
215803
- return;
215804
- const lines = this._lines(this.output);
215805
- this._write(this.std, ansiEscapes.cursorLeft + ansiEscapes.cursorUp(lines) + ansiEscapes.eraseDown);
215806
- this.output = void 0;
215807
- }
215808
215926
  _start(opts) {
215809
215927
  this.color = cache_1.default.getInstance().get("config")?.theme?.spinner ?? this.color;
215810
215928
  if (opts.style)
@@ -215825,6 +215943,30 @@ var require_spinner = __commonJS({
215825
215943
  this._render();
215826
215944
  this.output = void 0;
215827
215945
  }
215946
+ colorize(s) {
215947
+ return (0, theme_1.colorize)(this.color, s);
215948
+ }
215949
+ _lines(s) {
215950
+ return ansis_1.default.strip(s).split("\n").map((l) => Math.ceil(l.length / screen_1.errtermwidth)).reduce((c, i) => c + i, 0);
215951
+ }
215952
+ _render(icon) {
215953
+ if (!this.task)
215954
+ return;
215955
+ this._reset();
215956
+ this._flushStdout();
215957
+ const frame = icon === "spinner" ? ` ${this._frame()}` : icon || "";
215958
+ const status = this.task.status ? ` ${this.task.status}` : "";
215959
+ this.output = `${this.task.action}...${frame}${status}
215960
+ `;
215961
+ this._write(this.std, this.output);
215962
+ }
215963
+ _reset() {
215964
+ if (!this.output)
215965
+ return;
215966
+ const lines = this._lines(this.output);
215967
+ this._write(this.std, ansiEscapes.cursorLeft + ansiEscapes.cursorUp(lines) + ansiEscapes.eraseDown);
215968
+ this.output = void 0;
215969
+ }
215828
215970
  getFrames(opts) {
215829
215971
  if (opts?.style)
215830
215972
  return cli_spinners_1.default[opts.style].frames;
@@ -216265,7 +216407,7 @@ var require_util3 = __commonJS({
216265
216407
  function getHelpFlagAdditions(config) {
216266
216408
  const helpFlags = ["--help"];
216267
216409
  const additionalHelpFlags = config.pjson.oclif.additionalHelpFlags ?? [];
216268
- return [...(/* @__PURE__ */ new Set([...helpFlags, ...additionalHelpFlags])).values()];
216410
+ return [...(/* @__PURE__ */ new Set([...additionalHelpFlags, ...helpFlags])).values()];
216269
216411
  }
216270
216412
  function formatFlagDeprecationWarning(flag, opts) {
216271
216413
  let message = `The "${flag}" flag has been deprecated`;
@@ -216362,7 +216504,7 @@ var require_formatter = __commonJS({
216362
216504
  * ```
216363
216505
  * @param body the text to indent
216364
216506
  * @param spacing the final number of spaces this text will be indented
216365
- * @return the formatted indented text
216507
+ * @returns the formatted indented text
216366
216508
  */
216367
216509
  indent(body, spacing = this.indentSpacing) {
216368
216510
  return (0, indent_string_1.default)(body, spacing);
@@ -216913,6 +217055,18 @@ var require_help = __commonJS({
216913
217055
  constructor(config, opts = {}) {
216914
217056
  super(config, opts);
216915
217057
  }
217058
+ /*
217059
+ * _topics is to work around Interfaces.topics mistakenly including commands that do
217060
+ * not have children, as well as topics. A topic has children, either commands or other topics. When
217061
+ * this is fixed upstream config.topics should return *only* topics with children,
217062
+ * and this can be removed.
217063
+ */
217064
+ get _topics() {
217065
+ return this.config.topics.filter((topic) => {
217066
+ const hasChild = this.config.topics.some((subTopic) => subTopic.name.includes(`${topic.name}:`));
217067
+ return hasChild;
217068
+ });
217069
+ }
216916
217070
  get sortedCommands() {
216917
217071
  let { commands } = this.config;
216918
217072
  commands = commands.filter((c) => this.opts.all || !c.hidden);
@@ -217004,7 +217158,7 @@ var require_help = __commonJS({
217004
217158
  return new this.CommandHelpClass(command, this.config, this.opts);
217005
217159
  }
217006
217160
  log(...args) {
217007
- this.opts.sendToStderr ? ux_1.ux.stderr(args) : ux_1.ux.stdout(args);
217161
+ return this.opts.sendToStderr ? ux_1.ux.stderr(args) : ux_1.ux.stdout(args);
217008
217162
  }
217009
217163
  async showCommandHelp(command) {
217010
217164
  const name = command.id;
@@ -217150,18 +217304,6 @@ var require_help = __commonJS({
217150
217304
  return (0, theme_1.colorize)(this.config?.theme?.commandSummary, this.render(c.summary.split("\n")[0]));
217151
217305
  return c.description && (0, theme_1.colorize)(this.config?.theme?.commandSummary, this.render(c.description).split("\n")[0]);
217152
217306
  }
217153
- /*
217154
- * _topics is to work around Interfaces.topics mistakenly including commands that do
217155
- * not have children, as well as topics. A topic has children, either commands or other topics. When
217156
- * this is fixed upstream config.topics should return *only* topics with children,
217157
- * and this can be removed.
217158
- */
217159
- get _topics() {
217160
- return this.config.topics.filter((topic) => {
217161
- const hasChild = this.config.topics.some((subTopic) => subTopic.name.includes(`${topic.name}:`));
217162
- return hasChild;
217163
- });
217164
- }
217165
217307
  };
217166
217308
  exports.Help = Help;
217167
217309
  function extractClass(exported) {
@@ -217422,7 +217564,6 @@ var require_performance = __commonJS({
217422
217564
  }
217423
217565
  /**
217424
217566
  * Add debug logs for plugin loading performance
217425
- * @returns void
217426
217567
  */
217427
217568
  static debug() {
217428
217569
  if (!_Performance.enabled)
@@ -217471,9 +217612,6 @@ var require_performance = __commonJS({
217471
217612
  }
217472
217613
  }
217473
217614
  }
217474
- static get enabled() {
217475
- return settings_1.settings.performanceEnabled ?? false;
217476
- }
217477
217615
  static getResult(owner, name) {
217478
217616
  return _Performance._results.get(owner)?.find((r) => r.name === name);
217479
217617
  }
@@ -217492,6 +217630,9 @@ var require_performance = __commonJS({
217492
217630
  _Performance.markers.set(marker.name, marker);
217493
217631
  return marker;
217494
217632
  }
217633
+ static get enabled() {
217634
+ return settings_1.settings.performanceEnabled ?? false;
217635
+ }
217495
217636
  static get oclifPerf() {
217496
217637
  if (!_Performance.enabled)
217497
217638
  return {};
@@ -225665,8 +225806,8 @@ var require_cache_command = __commonJS({
225665
225806
  const uncachedFlags = cmd.flags ?? cmd._flags;
225666
225807
  const uncachedBaseFlags = cmd.baseFlags ?? cmd._baseFlags;
225667
225808
  const [flags, args] = await Promise.all([
225668
- await cacheFlags((0, aggregate_flags_1.aggregateFlags)(uncachedFlags, uncachedBaseFlags, cmd.enableJsonFlag), respectNoCacheDefault),
225669
- await cacheArgs((0, ensure_arg_object_1.ensureArgObject)(cmd.args), respectNoCacheDefault)
225809
+ cacheFlags((0, aggregate_flags_1.aggregateFlags)(uncachedFlags, uncachedBaseFlags, cmd.enableJsonFlag), respectNoCacheDefault),
225810
+ cacheArgs((0, ensure_arg_object_1.ensureArgObject)(cmd.args), respectNoCacheDefault)
225670
225811
  ]);
225671
225812
  const stdProperties = {
225672
225813
  aliases: cmd.aliases ?? [],
@@ -225699,7 +225840,7 @@ var require_cache_command = __commonJS({
225699
225840
  "_--",
225700
225841
  "_base"
225701
225842
  ];
225702
- const stdKeysAndIgnored = /* @__PURE__ */ new Set([...Object.keys(stdProperties), ...ignoreCommandProperties]);
225843
+ const stdKeysAndIgnored = /* @__PURE__ */ new Set([...ignoreCommandProperties, ...Object.keys(stdProperties)]);
225703
225844
  const keysToAdd = Object.keys(cmd).filter((property) => !stdKeysAndIgnored.has(property));
225704
225845
  const additionalProperties = Object.fromEntries(keysToAdd.map((key) => [key, cmd[key]]));
225705
225846
  return { ...stdProperties, ...additionalProperties };
@@ -226362,6 +226503,8 @@ var require_plugin = __commonJS({
226362
226503
  }
226363
226504
  var Plugin = class {
226364
226505
  options;
226506
+ _base = `${_pjson.name}@${_pjson.version}`;
226507
+ _debug = (0, util_2.makeDebug)();
226365
226508
  alias;
226366
226509
  alreadyLoaded = false;
226367
226510
  children = [];
@@ -226382,8 +226525,6 @@ var require_plugin = __commonJS({
226382
226525
  type;
226383
226526
  valid = false;
226384
226527
  version;
226385
- _base = `${_pjson.name}@${_pjson.version}`;
226386
- _debug = (0, util_2.makeDebug)();
226387
226528
  commandCache;
226388
226529
  commandDiscoveryOpts;
226389
226530
  flexibleTaxonomy;
@@ -226440,6 +226581,7 @@ var require_plugin = __commonJS({
226440
226581
  marker?.stop();
226441
226582
  return cmd;
226442
226583
  }
226584
+ // eslint-disable-next-line complexity
226443
226585
  async load() {
226444
226586
  this.type = this.options.type ?? "core";
226445
226587
  this.tag = this.options.tag;
@@ -226989,9 +227131,6 @@ var require_config = __commonJS({
226989
227131
  await config.load();
226990
227132
  return config;
226991
227133
  }
226992
- static get rootPlugin() {
226993
- return this.rootPlugin;
226994
- }
226995
227134
  get commandIDs() {
226996
227135
  if (this._commandIDs)
226997
227136
  return this._commandIDs;
@@ -227004,6 +227143,9 @@ var require_config = __commonJS({
227004
227143
  get isProd() {
227005
227144
  return (0, util_2.isProd)();
227006
227145
  }
227146
+ static get rootPlugin() {
227147
+ return this.rootPlugin;
227148
+ }
227007
227149
  get topics() {
227008
227150
  return [...this._topics.values()];
227009
227151
  }
@@ -227019,6 +227161,23 @@ var require_config = __commonJS({
227019
227161
  shell: this.shell
227020
227162
  };
227021
227163
  }
227164
+ _shell() {
227165
+ let shellPath;
227166
+ const { COMSPEC } = process.env;
227167
+ const SHELL = process.env.SHELL ?? (0, node_os_1.userInfo)().shell?.split(node_path_1.sep)?.pop();
227168
+ if (SHELL) {
227169
+ shellPath = SHELL.split("/");
227170
+ } else if (this.windows && process.title.toLowerCase().includes("powershell")) {
227171
+ shellPath = ["powershell"];
227172
+ } else if (this.windows && process.title.toLowerCase().includes("command prompt")) {
227173
+ shellPath = ["cmd.exe"];
227174
+ } else if (this.windows && COMSPEC) {
227175
+ shellPath = COMSPEC.split(/\\|\//);
227176
+ } else {
227177
+ shellPath = ["unknown"];
227178
+ }
227179
+ return shellPath.at(-1) ?? "unknown";
227180
+ }
227022
227181
  dir(category) {
227023
227182
  const base = process.env[`XDG_${category.toUpperCase()}_HOME`] || this.windows && process.env.LOCALAPPDATA || (0, node_path_1.join)(this.home, category === "data" ? ".local/share" : "." + category);
227024
227183
  return (0, node_path_1.join)(base, this.dirname);
@@ -227179,8 +227338,8 @@ var require_config = __commonJS({
227179
227338
  return this.pjson.oclif.theme;
227180
227339
  };
227181
227340
  const [defaultTheme, userTheme] = await Promise.all([
227182
- await getDefaultTheme(),
227183
- await (0, fs_1.safeReadJson)(userThemeFile)
227341
+ getDefaultTheme(),
227342
+ (0, fs_1.safeReadJson)(userThemeFile)
227184
227343
  ]);
227185
227344
  const merged = { ...defaultTheme, ...userTheme };
227186
227345
  return Object.keys(merged).length > 0 ? (0, theme_1.parseTheme)(merged) : void 0;
@@ -227226,13 +227385,13 @@ var require_config = __commonJS({
227226
227385
  }
227227
227386
  }
227228
227387
  const command = await c.load();
227229
- await this.runHook("prerun", { Command: command, argv });
227388
+ await this.runHook("prerun", { argv, Command: command });
227230
227389
  const result = await command.run(argv, this);
227231
227390
  if (c.id === "plugins:uninstall") {
227232
227391
  for (const arg of argv)
227233
227392
  this.plugins.delete(arg);
227234
227393
  }
227235
- await this.runHook("postrun", { Command: command, argv, result });
227394
+ await this.runHook("postrun", { argv, Command: command, result });
227236
227395
  marker?.addDetails({ command: id, plugin: c.pluginName });
227237
227396
  marker?.stop();
227238
227397
  return result;
@@ -227339,7 +227498,7 @@ var require_config = __commonJS({
227339
227498
  }
227340
227499
  /**
227341
227500
  * this DOES NOT account for bin aliases, use scopedEnvVarKeys instead which will account for bin aliases
227342
- * @param {string} k, the unscoped key you want to get the value for
227501
+ * @param k {string}, the unscoped key you want to get the value for
227343
227502
  * @returns {string} returns the env var key
227344
227503
  */
227345
227504
  scopedEnvVarKey(k) {
@@ -227347,7 +227506,7 @@ var require_config = __commonJS({
227347
227506
  }
227348
227507
  /**
227349
227508
  * gets the scoped env var keys for a given key, including bin aliases
227350
- * @param {string} k, the env key e.g. 'debug'
227509
+ * @param k {string}, the env key e.g. 'debug'
227351
227510
  * @returns {string[]} e.g. ['SF_DEBUG', 'SFDX_DEBUG']
227352
227511
  */
227353
227512
  scopedEnvVarKeys(k) {
@@ -227366,23 +227525,6 @@ var require_config = __commonJS({
227366
227525
  windowsUserprofileHome() {
227367
227526
  return process.env.USERPROFILE;
227368
227527
  }
227369
- _shell() {
227370
- let shellPath;
227371
- const { COMSPEC } = process.env;
227372
- const SHELL = process.env.SHELL ?? (0, node_os_1.userInfo)().shell?.split(node_path_1.sep)?.pop();
227373
- if (SHELL) {
227374
- shellPath = SHELL.split("/");
227375
- } else if (this.windows && process.title.toLowerCase().includes("powershell")) {
227376
- shellPath = ["powershell"];
227377
- } else if (this.windows && process.title.toLowerCase().includes("command prompt")) {
227378
- shellPath = ["cmd.exe"];
227379
- } else if (this.windows && COMSPEC) {
227380
- shellPath = COMSPEC.split(/\\|\//);
227381
- } else {
227382
- shellPath = ["unknown"];
227383
- }
227384
- return shellPath.at(-1) ?? "unknown";
227385
- }
227386
227528
  buildS3Config() {
227387
227529
  const s3 = this.pjson.oclif.update?.s3;
227388
227530
  const bucket = this.scopedEnvVar("S3_BUCKET") ?? s3?.bucket;
@@ -227431,7 +227573,6 @@ var require_config = __commonJS({
227431
227573
  * with oclif-compatible ones returned by @oclif/plugin-legacy init hook.
227432
227574
  *
227433
227575
  * @param plugins array of oclif-compatible plugins
227434
- * @returns void
227435
227576
  */
227436
227577
  insertLegacyPlugins(plugins) {
227437
227578
  for (const plugin of plugins) {
@@ -227657,9 +227798,9 @@ var require_list = __commonJS({
227657
227798
  init_cjs_shims();
227658
227799
  Object.defineProperty(exports, "__esModule", { value: true });
227659
227800
  exports.default = renderList;
227801
+ var wordwrap = require_wordwrap();
227660
227802
  var screen_1 = require_screen();
227661
227803
  var util_1 = require_util();
227662
- var wordwrap = require_wordwrap();
227663
227804
  function linewrap(length, s) {
227664
227805
  return wordwrap(length, screen_1.stdtermwidth, {
227665
227806
  skipScheme: "ansi-color"
@@ -227830,9 +227971,9 @@ var require_parse3 = __commonJS({
227830
227971
  const { stdin, stdout } = process;
227831
227972
  if (stdin.isTTY)
227832
227973
  return null;
227833
- if (global.oclif?.stdinCache) {
227834
- debug("resolved stdin from global cache", global.oclif.stdinCache);
227835
- return global.oclif.stdinCache;
227974
+ if (globalThis.oclif?.stdinCache) {
227975
+ debug("resolved stdin from global cache", globalThis.oclif.stdinCache);
227976
+ return globalThis.oclif.stdinCache;
227836
227977
  }
227837
227978
  return new Promise((resolve) => {
227838
227979
  let result = "";
@@ -227850,7 +227991,7 @@ var require_parse3 = __commonJS({
227850
227991
  rl.once("close", () => {
227851
227992
  clearTimeout(timeout);
227852
227993
  debug("resolved from stdin", result);
227853
- global.oclif = { ...global.oclif, stdinCache: result };
227994
+ globalThis.oclif = { ...globalThis.oclif, stdinCache: result };
227854
227995
  resolve(result);
227855
227996
  });
227856
227997
  signal.addEventListener("abort", () => {
@@ -227886,6 +228027,9 @@ var require_parse3 = __commonJS({
227886
228027
  this.booleanFlags = (0, util_1.pickBy)(input.flags, (f) => f.type === "boolean");
227887
228028
  this.flagAliases = Object.fromEntries(Object.values(input.flags).flatMap((flag) => [...flag.aliases ?? [], ...flag.charAliases ?? []].map((a) => [a, flag])));
227888
228029
  }
228030
+ get _argTokens() {
228031
+ return this.raw.filter((o) => o.type === "arg");
228032
+ }
227889
228033
  async parse() {
227890
228034
  this._debugInput();
227891
228035
  const parseFlag = async (arg) => {
@@ -228020,9 +228164,6 @@ var require_parse3 = __commonJS({
228020
228164
  }
228021
228165
  return { args, argv };
228022
228166
  }
228023
- get _argTokens() {
228024
- return this.raw.filter((o) => o.type === "arg");
228025
- }
228026
228167
  _debugInput() {
228027
228168
  debug("input: %s", this.argv.join(" "));
228028
228169
  const args = Object.keys(this.input.args);
@@ -228402,12 +228543,12 @@ var require_validate = __commonJS({
228402
228543
  case "all": {
228403
228544
  return validateDependsOn(name, relationship.flags);
228404
228545
  }
228405
- case "some": {
228406
- return validateSome(name, relationship.flags);
228407
- }
228408
228546
  case "none": {
228409
228547
  return validateExclusive(name, relationship.flags);
228410
228548
  }
228549
+ case "some": {
228550
+ return validateSome(name, relationship.flags);
228551
+ }
228411
228552
  default: {
228412
228553
  throw new Error(`Unknown relationship type: ${relationship.type}`);
228413
228554
  }
@@ -228554,6 +228695,7 @@ var require_command2 = __commonJS({
228554
228695
  var Command = class {
228555
228696
  argv;
228556
228697
  config;
228698
+ static _base = `${pjson.name}@${pjson.version}`;
228557
228699
  /** An array of aliases for this command. */
228558
228700
  static aliases = [];
228559
228701
  /** An order-dependent object of arguments for the command */
@@ -228615,7 +228757,6 @@ var require_command2 = __commonJS({
228615
228757
  static usage;
228616
228758
  debug;
228617
228759
  id;
228618
- static _base = `${pjson.name}@${pjson.version}`;
228619
228760
  constructor(argv, config) {
228620
228761
  this.argv = argv;
228621
228762
  this.config = config;
@@ -228656,6 +228797,23 @@ var require_command2 = __commonJS({
228656
228797
  get ctor() {
228657
228798
  return this.constructor;
228658
228799
  }
228800
+ async _run() {
228801
+ let err;
228802
+ let result;
228803
+ try {
228804
+ this.removeEnvVar("REDIRECTED");
228805
+ await this.init();
228806
+ result = await this.run();
228807
+ } catch (error) {
228808
+ err = error;
228809
+ await this.catch(error);
228810
+ } finally {
228811
+ await this.finally(err);
228812
+ }
228813
+ if (result && this.jsonEnabled())
228814
+ this.logJson(this.toSuccessJson(result));
228815
+ return result;
228816
+ }
228659
228817
  async catch(err) {
228660
228818
  process.exitCode = process.exitCode ?? err.exitCode ?? 1;
228661
228819
  if (this.jsonEnabled()) {
@@ -228680,7 +228838,7 @@ var require_command2 = __commonJS({
228680
228838
  }
228681
228839
  async init() {
228682
228840
  this.debug("init version: %s argv: %o", this.ctor._base, this.argv);
228683
- const g = global;
228841
+ const g = globalThis;
228684
228842
  g["http-call"] = g["http-call"] || {};
228685
228843
  g["http-call"].userAgent = this.config.userAgent;
228686
228844
  this.warnIfCommandDeprecated();
@@ -228699,10 +228857,10 @@ var require_command2 = __commonJS({
228699
228857
  const jsonIndex = this.argv.indexOf("--json");
228700
228858
  return passThroughIndex === -1 ? (
228701
228859
  // If '--' is not present, then check for `--json` in this.argv
228702
- jsonIndex > -1
228860
+ jsonIndex !== -1
228703
228861
  ) : (
228704
228862
  // If '--' is present, return true only the --json flag exists and is before the '--'
228705
- jsonIndex > -1 && jsonIndex < passThroughIndex
228863
+ jsonIndex !== -1 && jsonIndex < passThroughIndex
228706
228864
  );
228707
228865
  }
228708
228866
  log(message = "", ...args) {
@@ -228782,23 +228940,6 @@ var require_command2 = __commonJS({
228782
228940
  }
228783
228941
  }
228784
228942
  }
228785
- async _run() {
228786
- let err;
228787
- let result;
228788
- try {
228789
- this.removeEnvVar("REDIRECTED");
228790
- await this.init();
228791
- result = await this.run();
228792
- } catch (error) {
228793
- err = error;
228794
- await this.catch(error);
228795
- } finally {
228796
- await this.finally(err);
228797
- }
228798
- if (result && this.jsonEnabled())
228799
- this.logJson(this.toSuccessJson(result));
228800
- return result;
228801
- }
228802
228943
  removeEnvVar(envVar) {
228803
228944
  const keys = [];
228804
228945
  try {
@@ -229042,8 +229183,8 @@ var require_lib = __commonJS({
229042
229183
  if (process.env.OCLIF_DISABLE_ENGINE_WARNING && (0, util_1.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING))
229043
229184
  return;
229044
229185
  try {
229045
- const semver = require_semver();
229046
229186
  const path = __require("node:path");
229187
+ const semver = require_semver();
229047
229188
  const root = path.join(__dirname, "..");
229048
229189
  const pjson = __require(path.join(root, "package.json"));
229049
229190
  if (!semver.satisfies(process.versions.node, pjson.engines.node)) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-SJ2X2LSZ.js";
3
+ } from "./chunk-QYBDSXKV.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-7XDOOSFZ.js";
4
- import "../chunk-SJ2X2LSZ.js";
3
+ } from "../chunk-JD6KYVXB.js";
4
+ import "../chunk-QYBDSXKV.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-QW6QPN74.js";
4
- import "../../chunk-SJ2X2LSZ.js";
3
+ } from "../../chunk-6D6KVKWN.js";
4
+ import "../../chunk-QYBDSXKV.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-TCTBIIZ6.js";
4
- import "../../chunk-SJ2X2LSZ.js";
3
+ } from "../../chunk-F5L74RH3.js";
4
+ import "../../chunk-QYBDSXKV.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-G5LLDGQV.js";
4
- import "../../chunk-SJ2X2LSZ.js";
3
+ } from "../../chunk-YN2KEDRR.js";
4
+ import "../../chunk-QYBDSXKV.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-7XDOOSFZ.js";
3
+ } from "./chunk-JD6KYVXB.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-QW6QPN74.js";
6
+ } from "./chunk-6D6KVKWN.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-TCTBIIZ6.js";
9
+ } from "./chunk-F5L74RH3.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-G5LLDGQV.js";
12
+ } from "./chunk-YN2KEDRR.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-SJ2X2LSZ.js";
17
+ } from "./chunk-QYBDSXKV.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.64"
478
+ "version": "0.5.65"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.64",
3
+ "version": "0.5.65",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -12,10 +12,11 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@oclif/core": "^4",
15
- "@oclif/plugin-test-esm-1": "^0.8.56",
16
- "@oclif/plugin-plugins": "^5.4.26"
15
+ "@oclif/plugin-plugins": "^5.4.26",
16
+ "@oclif/plugin-test-esm-1": "^0.8.56"
17
17
  },
18
18
  "devDependencies": {
19
+ "@eslint/compat": "^1.2.5",
19
20
  "@oclif/prettier-config": "^0.2.1",
20
21
  "@oclif/test": "^4",
21
22
  "@types/chai": "^4",
@@ -23,10 +24,9 @@
23
24
  "@types/node": "^18",
24
25
  "chai": "^4",
25
26
  "esbuild": "^0.24.2",
26
- "eslint": "^8.57.1",
27
- "eslint-config-oclif": "^5",
28
- "eslint-config-oclif-typescript": "^3",
29
- "eslint-config-prettier": "^9.1.0",
27
+ "eslint": "^9.19.0",
28
+ "eslint-config-oclif": "^6.0.0",
29
+ "eslint-config-prettier": "^10.0.1",
30
30
  "mocha": "^10",
31
31
  "oclif": "^4.17.17",
32
32
  "shx": "^0.3.4",
@@ -37,7 +37,7 @@
37
37
  "node": ">=18.0.0"
38
38
  },
39
39
  "files": [
40
- "/bin/run.js",
40
+ "bin/run.js",
41
41
  "/dist",
42
42
  "/oclif.manifest.json"
43
43
  ],
@@ -78,7 +78,7 @@
78
78
  "repository": "oclif/plugin-test-esbuild",
79
79
  "scripts": {
80
80
  "build": "shx rm -rf dist && node bin/bundle.js",
81
- "lint": "eslint . --ext .ts",
81
+ "lint": "eslint",
82
82
  "postpack": "shx rm -f oclif.manifest.json",
83
83
  "posttest": "yarn lint",
84
84
  "prepack": "yarn build && oclif manifest && oclif readme",