Skip to content

Commit

Permalink
🐛 when wrap: "multi-line" strings always show as ...
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Jun 6, 2024
1 parent 14e1af8 commit 6cd5b9f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/inspect/consoleInspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,11 @@ function inspect(
circular: new Set(),
keys: new Set(options.keys),
wrap:
options.wrap === "auto"
? guessAvailableLength()
typeof options.wrap === "number"
? options.wrap
: options.wrap === "single-line"
? Number.MAX_SAFE_INTEGER
: options.wrap === "multi-line"
? 0
: options.wrap,
: savedAvailableLengthGuess(),

Check failure on line 77 in src/inspect/consoleInspect.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

Cannot find name 'savedAvailableLengthGuess'.

Check failure on line 77 in src/inspect/consoleInspect.ts

View workflow job for this annotation

GitHub Actions / Node.js 20

Cannot find name 'savedAvailableLengthGuess'.
};
const inspection = inspectAny(value, options, context);

Expand Down

0 comments on commit 6cd5b9f

Please sign in to comment.