@harness-engineering/core 0.28.1 → 0.28.2

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EntropyAnalyzer
3
- } from "./chunk-BTUDWWB4.mjs";
3
+ } from "./chunk-I2JUTTPH.mjs";
4
4
  import "./chunk-MUWJHO2S.mjs";
5
5
  import "./chunk-7P6ASYW6.mjs";
6
6
  export {
@@ -1450,15 +1450,15 @@ function generatePatternSuggestions(report) {
1450
1450
  return suggestions;
1451
1451
  }
1452
1452
  function generateSuggestions(deadCode, drift, patterns) {
1453
- const suggestions = [];
1453
+ let suggestions = [];
1454
1454
  if (deadCode) {
1455
- suggestions.push(...generateDeadCodeSuggestions(deadCode));
1455
+ suggestions = suggestions.concat(generateDeadCodeSuggestions(deadCode));
1456
1456
  }
1457
1457
  if (drift) {
1458
- suggestions.push(...generateDriftSuggestions(drift));
1458
+ suggestions = suggestions.concat(generateDriftSuggestions(drift));
1459
1459
  }
1460
1460
  if (patterns) {
1461
- suggestions.push(...generatePatternSuggestions(patterns));
1461
+ suggestions = suggestions.concat(generatePatternSuggestions(patterns));
1462
1462
  }
1463
1463
  const priorityOrder = { high: 0, medium: 1, low: 2 };
1464
1464
  suggestions.sort((a, b) => priorityOrder[a.priority] - priorityOrder[b.priority]);
package/dist/index.js CHANGED
@@ -3249,15 +3249,15 @@ function generatePatternSuggestions(report) {
3249
3249
  return suggestions;
3250
3250
  }
3251
3251
  function generateSuggestions(deadCode, drift, patterns) {
3252
- const suggestions = [];
3252
+ let suggestions = [];
3253
3253
  if (deadCode) {
3254
- suggestions.push(...generateDeadCodeSuggestions(deadCode));
3254
+ suggestions = suggestions.concat(generateDeadCodeSuggestions(deadCode));
3255
3255
  }
3256
3256
  if (drift) {
3257
- suggestions.push(...generateDriftSuggestions(drift));
3257
+ suggestions = suggestions.concat(generateDriftSuggestions(drift));
3258
3258
  }
3259
3259
  if (patterns) {
3260
- suggestions.push(...generatePatternSuggestions(patterns));
3260
+ suggestions = suggestions.concat(generatePatternSuggestions(patterns));
3261
3261
  }
3262
3262
  const priorityOrder = { high: 0, medium: 1, low: 2 };
3263
3263
  suggestions.sort((a, b) => priorityOrder[a.priority] - priorityOrder[b.priority]);
package/dist/index.mjs CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  detectSizeBudgetViolations,
28
28
  generateSuggestions,
29
29
  parseSize
30
- } from "./chunk-BTUDWWB4.mjs";
30
+ } from "./chunk-I2JUTTPH.mjs";
31
31
  import {
32
32
  EXTENSION_MAP,
33
33
  Err,
@@ -3653,7 +3653,7 @@ function arrayLen(arr) {
3653
3653
  return Array.isArray(arr) ? arr.length : 0;
3654
3654
  }
3655
3655
  async function gatherEntropyBlock(projectPath) {
3656
- const { EntropyAnalyzer: EntropyAnalyzer2 } = await import("./analyzer-VY6DJVOU.mjs");
3656
+ const { EntropyAnalyzer: EntropyAnalyzer2 } = await import("./analyzer-H3AHBFSL.mjs");
3657
3657
  const analyzer = new EntropyAnalyzer2({
3658
3658
  rootDir: projectPath,
3659
3659
  include: ["src/**/*.ts", "src/**/*.tsx", "packages/*/src/**/*.ts"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harness-engineering/core",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "description": "Core library for Harness Engineering toolkit",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",