Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: log method support depth option#2087

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
btea wants to merge1 commit intohandlebars-lang:master
base:master
Choose a base branch
Loading
frombtea:feat/log-add-depth-option

Conversation

@btea
Copy link

Before creating a pull-request, please checkhttps://github.com/handlebars-lang/handlebars.js/blob/master/CONTRIBUTING.md first.

Generally we like to see pull requests that

  • Please don't start pull requests for security issues. Instead, file a report athttps://www.npmjs.com/advisories/report?package=handlebars
  • Maintain the existing code style
  • Are focused on a single change (i.e. avoid large refactoring or style adjustments in untouched code if not the primary goal of the pull request)
  • Have good commit messages
  • Have tests
  • Have thetypings (types/index.d.ts) updated on every API change. If you need help, updating those, please mention that in the PR description.
  • Don't significantly decrease the current code coverage (see coverage/lcov-report/index.html)
  • Currently, the4.x-branch contains the latest version. Please target that branch in the PR.

In the nodejs environment, the default depth of objects printed by the console method is 2. Therefore, if you need to print out more levels of content in the object, you need to use theutil.inspect method.

https://nodejs.org/api/util.html#utilinspectobject-showhidden-depth-colors

Thelog method currently supportslevel configuration. I would like to add adepth option so that more information can be clearly viewed when printing objects.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@btea@jaylinski

[8]ページ先頭

©2009-2025 Movatter.jp