@oclif/plugin-test-esbuild 0.5.22 → 0.5.23

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.22 linux-x64 node-v20.16.0
20
+ @oclif/plugin-test-esbuild/0.5.23 linux-x64 node-v20.16.0
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -338,6 +338,8 @@ var require_semver = __commonJS({
338
338
  this.inc("patch", identifier, identifierBase);
339
339
  this.inc("pre", identifier, identifierBase);
340
340
  break;
341
+ // If the input is a non-prerelease version, this acts the same as
342
+ // prepatch.
341
343
  case "prerelease":
342
344
  if (this.prerelease.length === 0) {
343
345
  this.inc("patch", identifier, identifierBase);
@@ -365,6 +367,8 @@ var require_semver = __commonJS({
365
367
  }
366
368
  this.prerelease = [];
367
369
  break;
370
+ // This probably shouldn't be used publicly.
371
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
368
372
  case "pre": {
369
373
  const base = Number(identifierBase) ? 1 : 0;
370
374
  if (!identifier && identifierBase === false) {
@@ -1439,6 +1443,7 @@ var require_min_version = __commonJS({
1439
1443
  compver.prerelease.push(0);
1440
1444
  }
1441
1445
  compver.raw = compver.format();
1446
+ /* fallthrough */
1442
1447
  case "":
1443
1448
  case ">=":
1444
1449
  if (!setMin || gt(compver, setMin)) {
@@ -1448,6 +1453,7 @@ var require_min_version = __commonJS({
1448
1453
  case "<":
1449
1454
  case "<=":
1450
1455
  break;
1456
+ /* istanbul ignore next */
1451
1457
  default:
1452
1458
  throw new Error(`Unexpected operation: ${comparator.operator}`);
1453
1459
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-7UDPYSEB.js";
3
+ } from "./chunk-EJWBVEKB.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -982,17 +982,21 @@ var require_ejs = __commonJS({
982
982
  }
983
983
  }
984
984
  switch (this.mode) {
985
+ // Just executing code
985
986
  case Template.modes.EVAL:
986
987
  this.source += " ; " + line + "\n";
987
988
  break;
989
+ // Exec, esc, and output
988
990
  case Template.modes.ESCAPED:
989
991
  this.source += " ; __append(escapeFn(" + stripSemi(line) + "))\n";
990
992
  break;
993
+ // Exec and output
991
994
  case Template.modes.RAW:
992
995
  this.source += " ; __append(" + stripSemi(line) + ")\n";
993
996
  break;
994
997
  case Template.modes.COMMENT:
995
998
  break;
999
+ // Literal <%% mode, append as raw output
996
1000
  case Template.modes.LITERAL:
997
1001
  this._addOutput(line);
998
1002
  break;
@@ -3256,9 +3260,9 @@ var require_ansi_styles = __commonJS({
3256
3260
  }
3257
3261
  });
3258
3262
 
3259
- // node_modules/wrap-ansi/index.js
3263
+ // node_modules/@oclif/core/node_modules/wrap-ansi/index.js
3260
3264
  var require_wrap_ansi = __commonJS({
3261
- "node_modules/wrap-ansi/index.js"(exports, module) {
3265
+ "node_modules/@oclif/core/node_modules/wrap-ansi/index.js"(exports, module) {
3262
3266
  "use strict";
3263
3267
  init_cjs_shims();
3264
3268
  var stringWidth = require_string_width();
@@ -209422,6 +209426,7 @@ var require_ts_path = __commonJS({
209422
209426
  exports.tsPath = tsPath;
209423
209427
  var promises_1 = __require("node:fs/promises");
209424
209428
  var node_path_1 = __require("node:path");
209429
+ var node_url_1 = __require("node:url");
209425
209430
  var cache_1 = __importDefault(require_cache());
209426
209431
  var warn_1 = require_warn();
209427
209432
  var settings_1 = require_settings();
@@ -209476,11 +209481,15 @@ var require_ts_path = __commonJS({
209476
209481
  return;
209477
209482
  debug("registering tsx at", root);
209478
209483
  debug("tsx path:", tsxPath);
209479
- const { register } = await import(tsxPath);
209484
+ const { href } = (0, node_url_1.pathToFileURL)(tsxPath);
209485
+ debug("tsx href:", href);
209486
+ const { register } = await import(href);
209487
+ debug("Successfully imported tsx");
209480
209488
  register();
209481
209489
  REGISTERED.add(root);
209482
- } catch {
209490
+ } catch (error) {
209483
209491
  debug(`Could not find tsx. Skipping tsx registration for ${root}.`);
209492
+ debug(error);
209484
209493
  }
209485
209494
  }
209486
209495
  async function registerTSNode(root, tsconfig) {
@@ -209492,8 +209501,10 @@ var require_ts_path = __commonJS({
209492
209501
  let tsNode;
209493
209502
  try {
209494
209503
  tsNode = __require(tsNodePath);
209495
- } catch {
209504
+ debug("Successfully required ts-node");
209505
+ } catch (error) {
209496
209506
  debug(`Could not find ts-node at ${tsNodePath}. Skipping ts-node registration for ${root}.`);
209507
+ debug(error);
209497
209508
  (0, warn_1.memoizedWarn)(`Could not find ts-node at ${tsNodePath}. Please ensure that ts-node is a devDependency. Falling back to compiled source.`);
209498
209509
  return;
209499
209510
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-7UDPYSEB.js";
3
+ } from "./chunk-EJWBVEKB.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-7UDPYSEB.js";
3
+ } from "./chunk-EJWBVEKB.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-7UDPYSEB.js";
3
+ } from "./chunk-EJWBVEKB.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-XYZOAE7X.js";
4
- import "../chunk-7UDPYSEB.js";
3
+ } from "../chunk-FXME4CAY.js";
4
+ import "../chunk-EJWBVEKB.js";
5
5
  import "../chunk-RRP6KXWN.js";
6
6
  export {
7
7
  ESBuild as default
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-KWDW4FIT.js";
4
- import "../../chunk-7UDPYSEB.js";
3
+ } from "../../chunk-E3EFI7DI.js";
4
+ import "../../chunk-EJWBVEKB.js";
5
5
  import "../../chunk-RRP6KXWN.js";
6
6
  export {
7
7
  Hello as default
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-X7ILYPOL.js";
4
- import "../../chunk-7UDPYSEB.js";
3
+ } from "../../chunk-H3R7L77D.js";
4
+ import "../../chunk-EJWBVEKB.js";
5
5
  import "../../chunk-RRP6KXWN.js";
6
6
  export {
7
7
  World as default
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-WQBWGYSZ.js";
4
- import "../../chunk-7UDPYSEB.js";
3
+ } from "../../chunk-S6HFDT6S.js";
4
+ import "../../chunk-EJWBVEKB.js";
5
5
  import "../../chunk-RRP6KXWN.js";
6
6
  export {
7
7
  init_default as default
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-XYZOAE7X.js";
3
+ } from "./chunk-FXME4CAY.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-KWDW4FIT.js";
6
+ } from "./chunk-E3EFI7DI.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-X7ILYPOL.js";
9
+ } from "./chunk-H3R7L77D.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-WQBWGYSZ.js";
12
+ } from "./chunk-S6HFDT6S.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-7UDPYSEB.js";
17
+ } from "./chunk-EJWBVEKB.js";
18
18
  import {
19
19
  require_lib as require_lib2,
20
20
  require_semver
21
- } from "./chunk-S5N7NKOT.js";
21
+ } from "./chunk-5GHOPL77.js";
22
22
  import {
23
23
  __toESM,
24
24
  init_cjs_shims
@@ -500,7 +500,7 @@ var Plugins = class {
500
500
  const url = name;
501
501
  const output = await this.npm.install([...args, url], options);
502
502
  const { dependencies } = await this.pjson();
503
- const { default: npa } = await import("./npa-GF72UKXQ.js");
503
+ const { default: npa } = await import("./npa-4KV3QGA2.js");
504
504
  const normalizedUrl = npa(url);
505
505
  const matches = Object.entries(dependencies ?? {}).find(([, u]) => {
506
506
  const normalized = npa(u);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  require_lib,
3
3
  require_semver
4
- } from "./chunk-S5N7NKOT.js";
4
+ } from "./chunk-5GHOPL77.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __require,
@@ -474,5 +474,5 @@
474
474
  "enableJsonFlag": false
475
475
  }
476
476
  },
477
- "version": "0.5.22"
477
+ "version": "0.5.23"
478
478
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.22",
3
+ "version": "0.5.23",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -22,13 +22,13 @@
22
22
  "@types/mocha": "^10",
23
23
  "@types/node": "^18",
24
24
  "chai": "^4",
25
- "esbuild": "^0.23.0",
25
+ "esbuild": "^0.23.1",
26
26
  "eslint": "^8.57.0",
27
27
  "eslint-config-oclif": "^5",
28
28
  "eslint-config-oclif-typescript": "^3",
29
29
  "eslint-config-prettier": "^9.1.0",
30
30
  "mocha": "^10",
31
- "oclif": "^4.14.12",
31
+ "oclif": "^4.14.20",
32
32
  "shx": "^0.3.4",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"