From 4199164d9603c5f90793637190d4f82701ae3874 Mon Sep 17 00:00:00 2001 From: exoego Date: Wed, 1 May 2024 13:38:45 +0900 Subject: [PATCH] Fix internal name --- __tests__/no-base.test.ts | 2 +- __tests__/with-base.test.ts | 2 +- dist/index.mjs | 10 +++++----- src/compare.ts | 6 +++--- src/index.ts | 2 +- src/types.ts | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/__tests__/no-base.test.ts b/__tests__/no-base.test.ts index 93eb0c6..530f9d6 100644 --- a/__tests__/no-base.test.ts +++ b/__tests__/no-base.test.ts @@ -16,7 +16,7 @@ describe("examples w/o base analysis", () => { describe(`example ${example.name}`, () => { const input: Options = { analyzerDirectory: ".analyzer", - budgetPercentIncreaseRed: 20, + percentExtraAttention: 20, includeExtensions: [".js", ".mjs", ".cjs"], metafiles: ["out/meta.json"], name: "test", diff --git a/__tests__/with-base.test.ts b/__tests__/with-base.test.ts index 980c801..99c4f7c 100644 --- a/__tests__/with-base.test.ts +++ b/__tests__/with-base.test.ts @@ -25,7 +25,7 @@ describe("examples w/ base analysis", () => { const input: Options = { analyzerDirectory: ".analyzer", - budgetPercentIncreaseRed: 20, + percentExtraAttention: 20, includeExtensions: [".js", ".mjs", ".cjs"], metafiles, name: "test", diff --git a/dist/index.mjs b/dist/index.mjs index fa38ee2..314ccd7 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -212,15 +212,15 @@ This analysis was generated by [esbuild-bundle-analyzer](https://github.com/exoe }; }); if (hasAnyChange) { - output += markdownTable(comparison, input.budgetPercentIncreaseRed); + output += markdownTable(comparison, input.percentExtraAttention); if (input.showDetails) { output += `
Details

Next to the size is how much the size has increased or decreased compared with the base branch of this PR.