@oclif/plugin-test-esbuild 0.5.38 → 0.5.40

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.38 linux-x64 node-v20.17.0
20
+ @oclif/plugin-test-esbuild/0.5.40 linux-x64 node-v20.17.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-5F4JTP3T.js";
3
+ } from "./chunk-Q4ESTGBX.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-5F4JTP3T.js";
3
+ } from "./chunk-Q4ESTGBX.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-5F4JTP3T.js";
3
+ } from "./chunk-Q4ESTGBX.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-5F4JTP3T.js";
3
+ } from "./chunk-Q4ESTGBX.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -213177,6 +213177,7 @@ var require_colorize_json = __commonJS({
213177
213177
  "use strict";
213178
213178
  init_cjs_shims();
213179
213179
  Object.defineProperty(exports, "__esModule", { value: true });
213180
+ exports.removeCycles = removeCycles;
213180
213181
  exports.tokenize = tokenize;
213181
213182
  exports.default = colorizeJson;
213182
213183
  var theme_1 = require_theme2();
@@ -213192,11 +213193,35 @@ var require_colorize_json = __commonJS({
213192
213193
  { regex: /^true|^false/, tokenType: "boolean" },
213193
213194
  { regex: /^null/, tokenType: "null" }
213194
213195
  ];
213196
+ function removeCycles(object) {
213197
+ const seenObjects = /* @__PURE__ */ new WeakMap();
213198
+ const _removeCycles = (obj) => {
213199
+ if (Object.prototype.toString.call(obj) === "[object Object]") {
213200
+ const dictionary = obj;
213201
+ if (seenObjects.has(dictionary))
213202
+ return;
213203
+ seenObjects.set(dictionary, void 0);
213204
+ for (const key in dictionary) {
213205
+ if (_removeCycles(dictionary[key]) === void 0) {
213206
+ delete dictionary[key];
213207
+ }
213208
+ }
213209
+ } else if (Array.isArray(obj)) {
213210
+ for (const i in obj) {
213211
+ if (_removeCycles(obj[i]) === void 0) {
213212
+ obj[i] = null;
213213
+ }
213214
+ }
213215
+ }
213216
+ return obj;
213217
+ };
213218
+ return _removeCycles(object);
213219
+ }
213195
213220
  function formatInput(json, options) {
213196
213221
  return options?.pretty ? JSON.stringify(typeof json === "string" ? JSON.parse(json) : json, null, 2) : typeof json === "string" ? json : JSON.stringify(json);
213197
213222
  }
213198
213223
  function tokenize(json, options) {
213199
- let input = formatInput(json, options);
213224
+ let input = formatInput(removeCycles(json), options);
213200
213225
  const tokens = [];
213201
213226
  let foundToken = false;
213202
213227
  do {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-B3QWTEZF.js";
4
- import "../chunk-5F4JTP3T.js";
3
+ } from "../chunk-IH64YTB5.js";
4
+ import "../chunk-Q4ESTGBX.js";
5
5
  import "../chunk-4OALFURW.js";
6
6
  import "../chunk-SFFL7AYM.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-RHU25FK4.js";
4
- import "../../chunk-5F4JTP3T.js";
3
+ } from "../../chunk-CTDGLF36.js";
4
+ import "../../chunk-Q4ESTGBX.js";
5
5
  import "../../chunk-4OALFURW.js";
6
6
  import "../../chunk-SFFL7AYM.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-OFUGCHGD.js";
4
- import "../../chunk-5F4JTP3T.js";
3
+ } from "../../chunk-IQXKBSR5.js";
4
+ import "../../chunk-Q4ESTGBX.js";
5
5
  import "../../chunk-4OALFURW.js";
6
6
  import "../../chunk-SFFL7AYM.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-NTCWJ3RH.js";
4
- import "../../chunk-5F4JTP3T.js";
3
+ } from "../../chunk-HCUGMW4D.js";
4
+ import "../../chunk-Q4ESTGBX.js";
5
5
  import "../../chunk-4OALFURW.js";
6
6
  import "../../chunk-SFFL7AYM.js";
7
7
  export {
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-B3QWTEZF.js";
3
+ } from "./chunk-IH64YTB5.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-RHU25FK4.js";
6
+ } from "./chunk-CTDGLF36.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-OFUGCHGD.js";
9
+ } from "./chunk-IQXKBSR5.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-NTCWJ3RH.js";
12
+ } from "./chunk-HCUGMW4D.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-5F4JTP3T.js";
17
+ } from "./chunk-Q4ESTGBX.js";
18
18
  import {
19
19
  require_lib as require_lib2
20
20
  } from "./chunk-65VALZLM.js";
@@ -322,7 +322,7 @@ var NPM = class {
322
322
  const npmPath = npmPjsonPath.slice(0, Math.max(0, npmPjsonPath.lastIndexOf(sep)));
323
323
  this.bin = join(npmPath, npmPjson.bin.npm);
324
324
  } catch {
325
- const { default: which } = await import("./lib-N65HKTQ6.js");
325
+ const { default: which } = await import("./lib-KOFW4VXJ.js");
326
326
  this.bin = await which("npm");
327
327
  }
328
328
  if (!this.bin) {
@@ -403,7 +403,7 @@ var Yarn = class {
403
403
  try {
404
404
  this.bin = require2.resolve("yarn/bin/yarn.js", { paths: [this.config.root, fileURLToPath2(import.meta.url)] });
405
405
  } catch {
406
- const { default: which } = await import("./lib-N65HKTQ6.js");
406
+ const { default: which } = await import("./lib-KOFW4VXJ.js");
407
407
  this.bin = await which("yarn");
408
408
  }
409
409
  if (!this.bin) {
@@ -502,7 +502,7 @@ var Plugins = class {
502
502
  const url = name;
503
503
  const output = await this.npm.install([...args, url], options);
504
504
  const { dependencies } = await this.pjson();
505
- const { default: npa } = await import("./npa-DKKU23QO.js");
505
+ const { default: npa } = await import("./npa-E5UVGQ7I.js");
506
506
  const normalizedUrl = npa(url);
507
507
  const matches = Object.entries(dependencies ?? {}).find(([, u]) => {
508
508
  const normalized = npa(u);
@@ -168,9 +168,9 @@ var require_cjs = __commonJS({
168
168
  }
169
169
  });
170
170
 
171
- // node_modules/which/lib/index.js
171
+ // node_modules/@oclif/plugin-plugins/node_modules/which/lib/index.js
172
172
  var require_lib = __commonJS({
173
- "node_modules/which/lib/index.js"(exports, module) {
173
+ "node_modules/@oclif/plugin-plugins/node_modules/which/lib/index.js"(exports, module) {
174
174
  init_cjs_shims();
175
175
  var { isexe, sync: isexeSync } = require_cjs();
176
176
  var { join, delimiter, sep, posix } = __require("path");
@@ -1295,9 +1295,9 @@ var require_commonjs = __commonJS({
1295
1295
  }
1296
1296
  });
1297
1297
 
1298
- // node_modules/hosted-git-info/lib/hosts.js
1298
+ // node_modules/@oclif/plugin-plugins/node_modules/hosted-git-info/lib/hosts.js
1299
1299
  var require_hosts = __commonJS({
1300
- "node_modules/hosted-git-info/lib/hosts.js"(exports, module) {
1300
+ "node_modules/@oclif/plugin-plugins/node_modules/hosted-git-info/lib/hosts.js"(exports, module) {
1301
1301
  "use strict";
1302
1302
  init_cjs_shims();
1303
1303
  var maybeJoin = (...args) => args.every((arg) => arg) ? args.join("") : "";
@@ -1463,9 +1463,9 @@ var require_hosts = __commonJS({
1463
1463
  }
1464
1464
  });
1465
1465
 
1466
- // node_modules/hosted-git-info/lib/parse-url.js
1466
+ // node_modules/@oclif/plugin-plugins/node_modules/hosted-git-info/lib/parse-url.js
1467
1467
  var require_parse_url = __commonJS({
1468
- "node_modules/hosted-git-info/lib/parse-url.js"(exports, module) {
1468
+ "node_modules/@oclif/plugin-plugins/node_modules/hosted-git-info/lib/parse-url.js"(exports, module) {
1469
1469
  init_cjs_shims();
1470
1470
  var url = __require("url");
1471
1471
  var lastIndexOfBefore = (str, char, beforeChar) => {
@@ -1516,9 +1516,9 @@ var require_parse_url = __commonJS({
1516
1516
  }
1517
1517
  });
1518
1518
 
1519
- // node_modules/hosted-git-info/lib/from-url.js
1519
+ // node_modules/@oclif/plugin-plugins/node_modules/hosted-git-info/lib/from-url.js
1520
1520
  var require_from_url = __commonJS({
1521
- "node_modules/hosted-git-info/lib/from-url.js"(exports, module) {
1521
+ "node_modules/@oclif/plugin-plugins/node_modules/hosted-git-info/lib/from-url.js"(exports, module) {
1522
1522
  "use strict";
1523
1523
  init_cjs_shims();
1524
1524
  var parseUrl = require_parse_url();
@@ -1611,9 +1611,9 @@ var require_from_url = __commonJS({
1611
1611
  }
1612
1612
  });
1613
1613
 
1614
- // node_modules/hosted-git-info/lib/index.js
1614
+ // node_modules/@oclif/plugin-plugins/node_modules/hosted-git-info/lib/index.js
1615
1615
  var require_lib2 = __commonJS({
1616
- "node_modules/hosted-git-info/lib/index.js"(exports, module) {
1616
+ "node_modules/@oclif/plugin-plugins/node_modules/hosted-git-info/lib/index.js"(exports, module) {
1617
1617
  "use strict";
1618
1618
  init_cjs_shims();
1619
1619
  var { LRUCache } = require_commonjs();
@@ -1756,9 +1756,9 @@ var require_lib2 = __commonJS({
1756
1756
  }
1757
1757
  });
1758
1758
 
1759
- // node_modules/proc-log/lib/index.js
1759
+ // node_modules/@oclif/plugin-plugins/node_modules/proc-log/lib/index.js
1760
1760
  var require_lib3 = __commonJS({
1761
- "node_modules/proc-log/lib/index.js"(exports, module) {
1761
+ "node_modules/@oclif/plugin-plugins/node_modules/proc-log/lib/index.js"(exports, module) {
1762
1762
  init_cjs_shims();
1763
1763
  var META = Symbol("proc-log.meta");
1764
1764
  module.exports = {
@@ -1916,9 +1916,9 @@ var require_lib3 = __commonJS({
1916
1916
  }
1917
1917
  });
1918
1918
 
1919
- // node_modules/npm-package-arg/lib/npa.js
1919
+ // node_modules/@oclif/plugin-plugins/node_modules/npm-package-arg/lib/npa.js
1920
1920
  var require_npa = __commonJS({
1921
- "node_modules/npm-package-arg/lib/npa.js"(exports, module) {
1921
+ "node_modules/@oclif/plugin-plugins/node_modules/npm-package-arg/lib/npa.js"(exports, module) {
1922
1922
  init_cjs_shims();
1923
1923
  module.exports = npa;
1924
1924
  module.exports.resolve = resolve;
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.38"
478
+ "version": "0.5.40"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.38",
3
+ "version": "0.5.40",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -12,8 +12,8 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@oclif/core": "^4",
15
- "@oclif/plugin-test-esm-1": "^0.8.33",
16
- "@oclif/plugin-plugins": "^5.4.12"
15
+ "@oclif/plugin-test-esm-1": "^0.8.35",
16
+ "@oclif/plugin-plugins": "^5.4.15"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@oclif/prettier-config": "^0.2.1",