Skip to content
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

Fixes deprecation warning #139

Closed
wants to merge 1 commit into from

Conversation

toddself
Copy link

@toddself toddself commented May 31, 2017

Wasn't sure if you wanted to do statSync with the try/catch block, or if you wanted to keep the async call and just provide the callback?

Unfortunately, Node code has decided that a stable module needs busy work
and have deprecated the use of synchronous APIs without supplying callbacks.

I wasn't sure if you wanted to do this with an async call or if it should
keep the try/catch and use the statSync method.
@toddself
Copy link
Author

See: nodejs/node#12562

@juliangruber
Copy link
Owner

oh, yes this should have been .statSync! fixed in 4.0.3

@toddself
Copy link
Author

toddself commented Jun 2, 2017

thank you @juliangruber!

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