Skip to content

Fix detection of util.inspect version#395

Merged
bajtos merged 1 commit into
masterfrom
fix/detection-of-util.inspect-version
Jan 15, 2015
Merged

Fix detection of util.inspect version#395
bajtos merged 1 commit into
masterfrom
fix/detection-of-util.inspect-version

Conversation

@bajtos

@bajtos bajtos commented Jan 15, 2015

Copy link
Copy Markdown
Member

Improve the detection to work in browser too. This fixes a regression
introduced in e4fc387 (#389)

/cc @rmg @raymondfeng I'll merge without review to push the fix to npmjs ASAP.

Improve the detection to work in browser too. This fixes a regression
introduced in e4fc387.
@bajtos bajtos added the #review label Jan 15, 2015
bajtos referenced this pull request Jan 15, 2015
Return the raw object data when running on Node v0.11.14+
That way all `inspect` options are always preserved.

When running on older version:
 - Honour the depth argument passed to the custom `inspect` function.
 - Disable color output, becase there is now way how to detect whether
   colors were enabled or disabled by the top-level caller.
bajtos added a commit that referenced this pull request Jan 15, 2015
…-version

Fix detection of `util.inspect` version
@bajtos
bajtos merged commit 2c2c403 into master Jan 15, 2015
@bajtos
bajtos deleted the fix/detection-of-util.inspect-version branch January 15, 2015 07:52
@bajtos

bajtos commented Jan 15, 2015

Copy link
Copy Markdown
Member Author

Released as loopback-datasource-juggler@2.14.1

@rmg

rmg commented Jan 15, 2015

Copy link
Copy Markdown
Contributor

Awesome 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants