-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
util: change inspect depth default #17907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
94b7b01
2d845cf
2721767
606f06c
3ca34ca
8ab8726
e220598
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,7 @@ const { | |
|
|
||
| const inspectDefaultOptions = Object.seal({ | ||
| showHidden: false, | ||
| depth: 2, | ||
| depth: null, | ||
| colors: false, | ||
| customInspect: true, | ||
| showProxy: false, | ||
|
|
@@ -195,7 +195,7 @@ function format(f) { | |
| break; | ||
| case 111: // 'o' | ||
| tempStr = inspect(arguments[a++], | ||
| { showHidden: true, depth: 4, showProxy: true }); | ||
| { showHidden: true, showProxy: true }); | ||
| break; | ||
| case 105: // 'i' | ||
| tempStr = `${parseInt(arguments[a++])}`; | ||
|
|
@@ -317,8 +317,7 @@ Object.defineProperty(inspect, 'defaultOptions', { | |
| if (options === null || typeof options !== 'object') { | ||
| throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'options', 'Object'); | ||
| } | ||
| Object.assign(inspectDefaultOptions, options); | ||
|
||
| return inspectDefaultOptions; | ||
| return _extend(inspectDefaultOptions, options); | ||
| } | ||
| }); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion:
Infinityinstead ofnullto match the changelog?