From 8996d63498ce3f8365c3b3f9d3b208a8b2add052 Mon Sep 17 00:00:00 2001 From: Dhvani Patel Date: Tue, 31 Oct 2023 18:03:04 -0400 Subject: [PATCH] remove pkg --- packages/gas-report/package.json | 1 - packages/gas-report/ts/index.ts | 5 +++-- pnpm-lock.yaml | 15 --------------- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/packages/gas-report/package.json b/packages/gas-report/package.json index 03955e7a18..102b1fa654 100644 --- a/packages/gas-report/package.json +++ b/packages/gas-report/package.json @@ -34,7 +34,6 @@ "chalk": "4.1.2", "dotenv": "^16.0.3", "execa": "^5.1.1", - "strip-ansi": "^7.1.0", "table": "^6.8.1", "yargs": "^17.7.1" }, diff --git a/packages/gas-report/ts/index.ts b/packages/gas-report/ts/index.ts index 073899affc..ee86889714 100644 --- a/packages/gas-report/ts/index.ts +++ b/packages/gas-report/ts/index.ts @@ -3,7 +3,7 @@ import { readFileSync, writeFileSync } from "fs"; import execa from "execa"; import chalk from "chalk"; import { table, getBorderCharacters } from "table"; -import stripAnsi from "strip-ansi"; +// import stripAnsi from "strip-ansi"; // const stripAnsi = require('strip-ansi'); /** @@ -113,7 +113,8 @@ async function runGasReport(): Promise { } // Extract the gas reports from the logs - const lines = stdout.split("\n").map(stripAnsi); + // const lines = stdout.split("\n").map(stripAnsi); + const lines = stdout.split("\n"); const gasReportPattern = /^\s*GAS REPORT: (\d+) (.*)$/; const testFunctionPattern = /^\[(?:PASS|FAIL).*\] (\w+)\(\)/; const testFilePattern = /^Running \d+ tests? for (.*):(.*)$/; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a8a40d735a..b51d4efca2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -391,9 +391,6 @@ importers: execa: specifier: ^5.1.1 version: 5.1.1 - strip-ansi: - specifier: ^7.1.0 - version: 7.1.0 table: specifier: ^6.8.1 version: 6.8.1 @@ -3762,11 +3759,6 @@ packages: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} - /ansi-regex@6.0.1: - resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} - engines: {node: '>=12'} - dev: false - /ansi-styles@2.2.1: resolution: {integrity: sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==} engines: {node: '>=0.10.0'} @@ -10006,13 +9998,6 @@ packages: dependencies: ansi-regex: 5.0.1 - /strip-ansi@7.1.0: - resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} - engines: {node: '>=12'} - dependencies: - ansi-regex: 6.0.1 - dev: false - /strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'}