@oclif/plugin-test-esbuild 0.5.68 → 0.5.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/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.68 linux-x64 node-v22.13.1
20
+ @oclif/plugin-test-esbuild/0.5.69 linux-x64 node-v22.13.1
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -224978,18 +224978,32 @@ var require_ignore = __commonJS({
224978
224978
  return slashes.slice(0, length - length % 2);
224979
224979
  };
224980
224980
  var REPLACERS = [
224981
+ [
224982
+ // remove BOM
224983
+ // TODO:
224984
+ // Other similar zero-width characters?
224985
+ /^\uFEFF/,
224986
+ () => EMPTY
224987
+ ],
224981
224988
  // > Trailing spaces are ignored unless they are quoted with backslash ("\")
224982
224989
  [
224983
224990
  // (a\ ) -> (a )
224984
224991
  // (a ) -> (a)
224992
+ // (a ) -> (a)
224985
224993
  // (a \ ) -> (a )
224986
- /\\?\s+$/,
224987
- (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY
224994
+ /((?:\\\\)*?)(\\?\s+)$/,
224995
+ (_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
224988
224996
  ],
224989
224997
  // replace (\ ) with ' '
224998
+ // (\ ) -> ' '
224999
+ // (\\ ) -> '\\ '
225000
+ // (\\\ ) -> '\\ '
224990
225001
  [
224991
- /\\\s/g,
224992
- () => SPACE
225002
+ /(\\+?)\s/g,
225003
+ (_, m1) => {
225004
+ const { length } = m1;
225005
+ return m1.slice(0, length - length % 2) + SPACE;
225006
+ }
224993
225007
  ],
224994
225008
  // Escape metacharacters
224995
225009
  // which is written down by users but means special for regular expressions.
@@ -225124,7 +225138,7 @@ var require_ignore = __commonJS({
225124
225138
  let source = regexCache[pattern];
225125
225139
  if (!source) {
225126
225140
  source = REPLACERS.reduce(
225127
- (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
225141
+ (prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
225128
225142
  pattern
225129
225143
  );
225130
225144
  regexCache[pattern] = source;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-IQCIZYMV.js";
3
+ } from "./chunk-57IWHXP3.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-IQCIZYMV.js";
3
+ } from "./chunk-57IWHXP3.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-IQCIZYMV.js";
3
+ } from "./chunk-57IWHXP3.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-IQCIZYMV.js";
3
+ } from "./chunk-57IWHXP3.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-SDGBSCHM.js";
4
- import "../chunk-IQCIZYMV.js";
3
+ } from "../chunk-X63J6WSN.js";
4
+ import "../chunk-57IWHXP3.js";
5
5
  import "../chunk-GDI7GCRT.js";
6
6
  import "../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-KC7KUEWW.js";
4
- import "../../chunk-IQCIZYMV.js";
3
+ } from "../../chunk-YWKFUYTE.js";
4
+ import "../../chunk-57IWHXP3.js";
5
5
  import "../../chunk-GDI7GCRT.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-KSHUZN26.js";
4
- import "../../chunk-IQCIZYMV.js";
3
+ } from "../../chunk-AJOQ6VA6.js";
4
+ import "../../chunk-57IWHXP3.js";
5
5
  import "../../chunk-GDI7GCRT.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-X4SI3DC7.js";
4
- import "../../chunk-IQCIZYMV.js";
3
+ } from "../../chunk-MWFIAP7T.js";
4
+ import "../../chunk-57IWHXP3.js";
5
5
  import "../../chunk-GDI7GCRT.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-SDGBSCHM.js";
3
+ } from "./chunk-X63J6WSN.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-KC7KUEWW.js";
6
+ } from "./chunk-YWKFUYTE.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-KSHUZN26.js";
9
+ } from "./chunk-AJOQ6VA6.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-X4SI3DC7.js";
12
+ } from "./chunk-MWFIAP7T.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-IQCIZYMV.js";
17
+ } from "./chunk-57IWHXP3.js";
18
18
  import {
19
19
  require_lib as require_lib2
20
20
  } from "./chunk-SO2G2ODZ.js";
@@ -1384,15 +1384,6 @@ init_cjs_shims();
1384
1384
  init_cjs_shims();
1385
1385
  var import_core12 = __toESM(require_lib(), 1);
1386
1386
  var ESM1 = class _ESM1 extends import_core12.Command {
1387
- static flags = {
1388
- optionalString: import_core12.Flags.string(),
1389
- defaultString: import_core12.Flags.string({
1390
- default: "simple string default"
1391
- }),
1392
- defaultFnString: import_core12.Flags.string({
1393
- default: async () => "async fn default"
1394
- })
1395
- };
1396
1387
  static args = {
1397
1388
  optionalArg: import_core12.Args.string(),
1398
1389
  defaultArg: import_core12.Args.string({
@@ -1403,6 +1394,15 @@ var ESM1 = class _ESM1 extends import_core12.Command {
1403
1394
  })
1404
1395
  };
1405
1396
  static enableJsonFlag = true;
1397
+ static flags = {
1398
+ optionalString: import_core12.Flags.string(),
1399
+ defaultString: import_core12.Flags.string({
1400
+ default: "simple string default"
1401
+ }),
1402
+ defaultFnString: import_core12.Flags.string({
1403
+ default: async () => "async fn default"
1404
+ })
1405
+ };
1406
1406
  async run() {
1407
1407
  const { args, flags } = await this.parse(_ESM1);
1408
1408
  this.log(`hello I am an ESM plugin from ${this.config.root}!`);
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.68"
478
+ "version": "0.5.69"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.68",
3
+ "version": "0.5.69",
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-plugins": "^5.4.30",
16
- "@oclif/plugin-test-esm-1": "^0.8.58"
16
+ "@oclif/plugin-test-esm-1": "^0.8.61"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@eslint/compat": "^1.2.6",
@@ -23,12 +23,12 @@
23
23
  "@types/mocha": "^10",
24
24
  "@types/node": "^18",
25
25
  "chai": "^4",
26
- "esbuild": "^0.24.2",
27
- "eslint": "^9.19.0",
28
- "eslint-config-oclif": "^6.0.0",
26
+ "esbuild": "^0.25.0",
27
+ "eslint": "^9.20.1",
28
+ "eslint-config-oclif": "^6.0.10",
29
29
  "eslint-config-prettier": "^10.0.1",
30
30
  "mocha": "^10",
31
- "oclif": "^4.17.22",
31
+ "oclif": "^4.17.27",
32
32
  "shx": "^0.3.4",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"