@oclif/plugin-test-esbuild 0.5.39 → 0.5.41

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.39 linux-x64 node-v20.17.0
20
+ @oclif/plugin-test-esbuild/0.5.41 linux-x64 node-v20.18.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-Q4ESTGBX.js";
3
+ } from "./chunk-GBPD7WOS.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-Q4ESTGBX.js";
3
+ } from "./chunk-GBPD7WOS.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-Q4ESTGBX.js";
3
+ } from "./chunk-GBPD7WOS.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -4125,7 +4125,6 @@ var require_typescript = __commonJS({
4125
4125
  buildOverload: () => buildOverload,
4126
4126
  bundlerModuleNameResolver: () => bundlerModuleNameResolver,
4127
4127
  canBeConvertedToAsync: () => canBeConvertedToAsync,
4128
- canEmitTsBuildInfo: () => canEmitTsBuildInfo,
4129
4128
  canHaveDecorators: () => canHaveDecorators,
4130
4129
  canHaveExportModifier: () => canHaveExportModifier,
4131
4130
  canHaveFlowNode: () => canHaveFlowNode,
@@ -6147,7 +6146,7 @@ var require_typescript = __commonJS({
6147
6146
  });
6148
6147
  module2.exports = __toCommonJS(typescript_exports);
6149
6148
  var versionMajorMinor = "5.6";
6150
- var version = "5.6.2";
6149
+ var version = "5.6.3";
6151
6150
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
6152
6151
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
6153
6152
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -14568,7 +14567,6 @@ ${lanes.join("\n")}
14568
14567
  Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."),
14569
14568
  Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1: diag(5109, 1, "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109", "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),
14570
14569
  Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1: diag(5110, 1, "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110", "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),
14571
- Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b: diag(5111, 1, "Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if__5111", "Option 'tsBuildInfoFile' cannot be specified without specifying option 'incremental' or 'composite' or if not running 'tsc -b'."),
14572
14570
  Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."),
14573
14571
  Concatenate_and_emit_output_to_single_file: diag(6001, 3, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."),
14574
14572
  Generates_corresponding_d_ts_file: diag(6002, 3, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
@@ -67989,7 +67987,7 @@ ${lanes.join("\n")}
67989
67987
  /*reportErrors*/
67990
67988
  false
67991
67989
  ) : unknownType;
67992
- return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0, contextualType)));
67990
+ return addOptionality(getWidenedLiteralTypeForInitializer(element, checkDeclarationInitializer(element, 0, contextualType)));
67993
67991
  }
67994
67992
  if (isBindingPattern(element.name)) {
67995
67993
  return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
@@ -93472,7 +93470,7 @@ ${lanes.join("\n")}
93472
93470
  return createTupleType(elementTypes, elementFlags, type.target.readonly);
93473
93471
  }
93474
93472
  function widenTypeInferredFromInitializer(declaration, type) {
93475
- const widened = getCombinedNodeFlagsCached(declaration) & 6 || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
93473
+ const widened = getWidenedLiteralTypeForInitializer(declaration, type);
93476
93474
  if (isInJSFile(declaration)) {
93477
93475
  if (isEmptyLiteralType(widened)) {
93478
93476
  reportImplicitAny(declaration, anyType);
@@ -93484,6 +93482,9 @@ ${lanes.join("\n")}
93484
93482
  }
93485
93483
  return widened;
93486
93484
  }
93485
+ function getWidenedLiteralTypeForInitializer(declaration, type) {
93486
+ return getCombinedNodeFlagsCached(declaration) & 6 || isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);
93487
+ }
93487
93488
  function isLiteralOfContextualType(candidateType, contextualType) {
93488
93489
  if (contextualType) {
93489
93490
  if (contextualType.flags & 3145728) {
@@ -140100,11 +140101,7 @@ ${lanes.join("\n")}
140100
140101
  }
140101
140102
  }
140102
140103
  const outputFile = options.outFile;
140103
- if (options.tsBuildInfoFile) {
140104
- if (!canEmitTsBuildInfo(options)) {
140105
- createDiagnosticForOptionName(Diagnostics.Option_tsBuildInfoFile_cannot_be_specified_without_specifying_option_incremental_or_composite_or_if_not_running_tsc_b, "tsBuildInfoFile");
140106
- }
140107
- } else if (options.incremental && !outputFile && !options.configFilePath) {
140104
+ if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
140108
140105
  programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
140109
140106
  }
140110
140107
  verifyDeprecatedCompilerOptions();
@@ -195838,7 +195835,6 @@ ${options.prefix}` : "\n" : options.prefix
195838
195835
  buildOverload: () => buildOverload,
195839
195836
  bundlerModuleNameResolver: () => bundlerModuleNameResolver,
195840
195837
  canBeConvertedToAsync: () => canBeConvertedToAsync,
195841
- canEmitTsBuildInfo: () => canEmitTsBuildInfo,
195842
195838
  canHaveDecorators: () => canHaveDecorators,
195843
195839
  canHaveExportModifier: () => canHaveExportModifier,
195844
195840
  canHaveFlowNode: () => canHaveFlowNode,
@@ -213177,7 +213173,7 @@ var require_colorize_json = __commonJS({
213177
213173
  "use strict";
213178
213174
  init_cjs_shims();
213179
213175
  Object.defineProperty(exports, "__esModule", { value: true });
213180
- exports.removeCycles = removeCycles;
213176
+ exports.stringifyInput = stringifyInput;
213181
213177
  exports.tokenize = tokenize;
213182
213178
  exports.default = colorizeJson;
213183
213179
  var theme_1 = require_theme2();
@@ -213193,35 +213189,36 @@ var require_colorize_json = __commonJS({
213193
213189
  { regex: /^true|^false/, tokenType: "boolean" },
213194
213190
  { regex: /^null/, tokenType: "null" }
213195
213191
  ];
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;
213192
+ function stringify(value, replacer, spaces) {
213193
+ return JSON.stringify(value, serializer(replacer, replacer), spaces);
213194
+ }
213195
+ function serializer(replacer, cycleReplacer) {
213196
+ const stack = [];
213197
+ const keys = [];
213198
+ if (!cycleReplacer)
213199
+ cycleReplacer = function(key, value) {
213200
+ if (stack[0] === value)
213201
+ return "[Circular ~]";
213202
+ return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
213203
+ };
213204
+ return function(key, value) {
213205
+ if (stack.length > 0) {
213206
+ const thisPos = stack.indexOf(this);
213207
+ ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
213208
+ ~thisPos ? keys.splice(thisPos, Number.POSITIVE_INFINITY, key) : keys.push(key);
213209
+ if (stack.includes(value))
213210
+ value = cycleReplacer.call(this, key, value);
213211
+ } else
213212
+ stack.push(value);
213213
+ return replacer ? replacer.call(this, key, value) : value;
213217
213214
  };
213218
- return _removeCycles(object);
213219
213215
  }
213220
- function formatInput(json, options) {
213221
- return options?.pretty ? JSON.stringify(typeof json === "string" ? JSON.parse(json) : json, null, 2) : typeof json === "string" ? json : JSON.stringify(json);
213216
+ function stringifyInput(json, options) {
213217
+ const str = options?.pretty ? stringify(typeof json === "string" ? JSON.parse(json) : json, void 0, 2) : typeof json === "string" ? json : stringify(json);
213218
+ return str;
213222
213219
  }
213223
213220
  function tokenize(json, options) {
213224
- let input = formatInput(removeCycles(json), options);
213221
+ let input = stringifyInput(json, options);
213225
213222
  const tokens = [];
213226
213223
  let foundToken = false;
213227
213224
  do {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-Q4ESTGBX.js";
3
+ } from "./chunk-GBPD7WOS.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-IH64YTB5.js";
4
- import "../chunk-Q4ESTGBX.js";
3
+ } from "../chunk-6NV2LFZW.js";
4
+ import "../chunk-GBPD7WOS.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-CTDGLF36.js";
4
- import "../../chunk-Q4ESTGBX.js";
3
+ } from "../../chunk-66ONFVO5.js";
4
+ import "../../chunk-GBPD7WOS.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-IQXKBSR5.js";
4
- import "../../chunk-Q4ESTGBX.js";
3
+ } from "../../chunk-2XRVOJ4F.js";
4
+ import "../../chunk-GBPD7WOS.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-HCUGMW4D.js";
4
- import "../../chunk-Q4ESTGBX.js";
3
+ } from "../../chunk-KXFJAE4U.js";
4
+ import "../../chunk-GBPD7WOS.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-IH64YTB5.js";
3
+ } from "./chunk-6NV2LFZW.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-CTDGLF36.js";
6
+ } from "./chunk-66ONFVO5.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-IQXKBSR5.js";
9
+ } from "./chunk-2XRVOJ4F.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-HCUGMW4D.js";
12
+ } from "./chunk-KXFJAE4U.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-Q4ESTGBX.js";
17
+ } from "./chunk-GBPD7WOS.js";
18
18
  import {
19
19
  require_lib as require_lib2
20
20
  } from "./chunk-65VALZLM.js";
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.39"
478
+ "version": "0.5.41"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.39",
3
+ "version": "0.5.41",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@oclif/core": "^4",
15
- "@oclif/plugin-test-esm-1": "^0.8.33",
15
+ "@oclif/plugin-test-esm-1": "^0.8.35",
16
16
  "@oclif/plugin-plugins": "^5.4.15"
17
17
  },
18
18
  "devDependencies": {
@@ -28,7 +28,7 @@
28
28
  "eslint-config-oclif-typescript": "^3",
29
29
  "eslint-config-prettier": "^9.1.0",
30
30
  "mocha": "^10",
31
- "oclif": "^4.15.2",
31
+ "oclif": "^4.15.9",
32
32
  "shx": "^0.3.4",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"