@oclif/plugin-test-esbuild 0.5.51 → 0.5.52

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.51 linux-x64 node-v22.11.0
20
+ @oclif/plugin-test-esbuild/0.5.52 linux-x64 node-v22.12.0
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -1308,50 +1308,64 @@ var require_common = __commonJS({
1308
1308
  createDebug.namespaces = namespaces;
1309
1309
  createDebug.names = [];
1310
1310
  createDebug.skips = [];
1311
- let i;
1312
- const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
1313
- const len = split.length;
1314
- for (i = 0; i < len; i++) {
1315
- if (!split[i]) {
1316
- continue;
1317
- }
1318
- namespaces = split[i].replace(/\*/g, ".*?");
1319
- if (namespaces[0] === "-") {
1320
- createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
1311
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
1312
+ for (const ns of split) {
1313
+ if (ns[0] === "-") {
1314
+ createDebug.skips.push(ns.slice(1));
1315
+ } else {
1316
+ createDebug.names.push(ns);
1317
+ }
1318
+ }
1319
+ }
1320
+ function matchesTemplate(search, template) {
1321
+ let searchIndex = 0;
1322
+ let templateIndex = 0;
1323
+ let starIndex = -1;
1324
+ let matchIndex = 0;
1325
+ while (searchIndex < search.length) {
1326
+ if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
1327
+ if (template[templateIndex] === "*") {
1328
+ starIndex = templateIndex;
1329
+ matchIndex = searchIndex;
1330
+ templateIndex++;
1331
+ } else {
1332
+ searchIndex++;
1333
+ templateIndex++;
1334
+ }
1335
+ } else if (starIndex !== -1) {
1336
+ templateIndex = starIndex + 1;
1337
+ matchIndex++;
1338
+ searchIndex = matchIndex;
1321
1339
  } else {
1322
- createDebug.names.push(new RegExp("^" + namespaces + "$"));
1340
+ return false;
1323
1341
  }
1324
1342
  }
1343
+ while (templateIndex < template.length && template[templateIndex] === "*") {
1344
+ templateIndex++;
1345
+ }
1346
+ return templateIndex === template.length;
1325
1347
  }
1326
1348
  function disable() {
1327
1349
  const namespaces = [
1328
- ...createDebug.names.map(toNamespace),
1329
- ...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
1350
+ ...createDebug.names,
1351
+ ...createDebug.skips.map((namespace) => "-" + namespace)
1330
1352
  ].join(",");
1331
1353
  createDebug.enable("");
1332
1354
  return namespaces;
1333
1355
  }
1334
1356
  function enabled(name) {
1335
- if (name[name.length - 1] === "*") {
1336
- return true;
1337
- }
1338
- let i;
1339
- let len;
1340
- for (i = 0, len = createDebug.skips.length; i < len; i++) {
1341
- if (createDebug.skips[i].test(name)) {
1357
+ for (const skip of createDebug.skips) {
1358
+ if (matchesTemplate(name, skip)) {
1342
1359
  return false;
1343
1360
  }
1344
1361
  }
1345
- for (i = 0, len = createDebug.names.length; i < len; i++) {
1346
- if (createDebug.names[i].test(name)) {
1362
+ for (const ns of createDebug.names) {
1363
+ if (matchesTemplate(name, ns)) {
1347
1364
  return true;
1348
1365
  }
1349
1366
  }
1350
1367
  return false;
1351
1368
  }
1352
- function toNamespace(regexp) {
1353
- return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
1354
- }
1355
1369
  function coerce(val) {
1356
1370
  if (val instanceof Error) {
1357
1371
  return val.stack || val.message;
@@ -225828,6 +225842,7 @@ var require_src2 = __commonJS({
225828
225842
  var path = __require("path");
225829
225843
  var fs = __require("fs");
225830
225844
  var os = __require("os");
225845
+ var url = __require("url");
225831
225846
  var fsReadFileAsync = fs.promises.readFile;
225832
225847
  function getDefaultSearchPlaces(name, sync) {
225833
225848
  return [
@@ -225860,9 +225875,10 @@ var require_src2 = __commonJS({
225860
225875
  module.exports.defaultLoadersSync = defaultLoadersSync;
225861
225876
  var dynamicImport = async (id) => {
225862
225877
  try {
225878
+ const fileUrl = url.pathToFileURL(id).href;
225863
225879
  const mod = await import(
225864
225880
  /* webpackIgnore: true */
225865
- id
225881
+ fileUrl
225866
225882
  );
225867
225883
  return mod.default;
225868
225884
  } catch (e) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-6I4J323H.js";
3
+ } from "./chunk-5LF545V4.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-6I4J323H.js";
3
+ } from "./chunk-5LF545V4.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-6I4J323H.js";
3
+ } from "./chunk-5LF545V4.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-6I4J323H.js";
3
+ } from "./chunk-5LF545V4.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-TJ6ABSBA.js";
4
- import "../chunk-6I4J323H.js";
3
+ } from "../chunk-JIWRUWYK.js";
4
+ import "../chunk-5LF545V4.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-MVMG5SOT.js";
4
- import "../../chunk-6I4J323H.js";
3
+ } from "../../chunk-LSUXYPBX.js";
4
+ import "../../chunk-5LF545V4.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-OX4WZJ6B.js";
4
- import "../../chunk-6I4J323H.js";
3
+ } from "../../chunk-7IYQQBC6.js";
4
+ import "../../chunk-5LF545V4.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-OC2FZC3J.js";
4
- import "../../chunk-6I4J323H.js";
3
+ } from "../../chunk-6AJVZVTV.js";
4
+ import "../../chunk-5LF545V4.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-TJ6ABSBA.js";
3
+ } from "./chunk-JIWRUWYK.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-MVMG5SOT.js";
6
+ } from "./chunk-LSUXYPBX.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-OX4WZJ6B.js";
9
+ } from "./chunk-7IYQQBC6.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-OC2FZC3J.js";
12
+ } from "./chunk-6AJVZVTV.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-6I4J323H.js";
17
+ } from "./chunk-5LF545V4.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.51"
478
+ "version": "0.5.52"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.51",
3
+ "version": "0.5.52",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@oclif/core": "^4",
15
15
  "@oclif/plugin-test-esm-1": "^0.8.46",
16
- "@oclif/plugin-plugins": "^5.4.19"
16
+ "@oclif/plugin-plugins": "^5.4.22"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@oclif/prettier-config": "^0.2.1",