Skip to content

Commit

Permalink
Update README to reflect the lower test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
terehov committed Jun 8, 2024
1 parent 7e47b61 commit 21821bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ logger.fatal(new Error("I am a pretty Error with a stacktrace."));
## All Features

- **Universal:** Works in browsers and Node.js
- **Tested:** 100% code coverage, CI
- **Tested:** Great code coverage, CI
- **Super customizable:** Every aspect can be overwritten
- **Fully typed:** Written in TypeScript, with native TypeScript support
- **Default log level:** `silly`, `trace`, `debug`, `info`, `warn`, `error`, `fatal` (different colors)
Expand Down
7 changes: 4 additions & 3 deletions src/runtime/browser/util.inspect.polyfil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ function reduceToSingleString(output: string[], base: string, braces: string[]):
return braces[0] + (base === "" ? "" : base + "\n") + " " + output.join(",\n ") + " " + braces[1];
}

function _extend(origin: object, add: object) {
function _extend(origin: object, add: object): object {
const typedOrigin = { ...origin } as { [key: string]: unknown };
// Don't do anything if add isn't an object
if (!add || !isObject(add)) return origin;

Expand All @@ -386,9 +387,9 @@ function _extend(origin: object, add: object) {
const keys = Object.keys(add);
let i = keys.length;
while (i--) {
origin[keys[i]] = clonedAdd[keys[i]];
typedOrigin[keys[i]] = clonedAdd[keys[i]];
}
return origin;
return typedOrigin;
}

export function formatWithOptions(inspectOptions: InspectOptions, ...args: unknown[]) {
Expand Down

0 comments on commit 21821bd

Please sign in to comment.