Skip to content

Commit 21821bd

Browse files
committed
Update README to reflect the lower test coverage
1 parent 7e47b61 commit 21821bd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ logger.fatal(new Error("I am a pretty Error with a stacktrace."));
167167
## All Features
168168

169169
- **Universal:** Works in browsers and Node.js
170-
- **Tested:** 100% code coverage, CI
170+
- **Tested:** Great code coverage, CI
171171
- **Super customizable:** Every aspect can be overwritten
172172
- **Fully typed:** Written in TypeScript, with native TypeScript support
173173
- **Default log level:** `silly`, `trace`, `debug`, `info`, `warn`, `error`, `fatal` (different colors)

src/runtime/browser/util.inspect.polyfil.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ function reduceToSingleString(output: string[], base: string, braces: string[]):
377377
return braces[0] + (base === "" ? "" : base + "\n") + " " + output.join(",\n ") + " " + braces[1];
378378
}
379379

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

@@ -386,9 +387,9 @@ function _extend(origin: object, add: object) {
386387
const keys = Object.keys(add);
387388
let i = keys.length;
388389
while (i--) {
389-
origin[keys[i]] = clonedAdd[keys[i]];
390+
typedOrigin[keys[i]] = clonedAdd[keys[i]];
390391
}
391-
return origin;
392+
return typedOrigin;
392393
}
393394

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

0 commit comments

Comments
 (0)