-
Notifications
You must be signed in to change notification settings - Fork 33
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
pid is NaN when used with browserify #4
Comments
How strange. Since Anyhow, it's easy enough to check and make sure that Thanks for the PR! |
No problem! Yeah, I'm not sure why only If it's not too much trouble, could you publish this fix to npm in a new version? |
1.1.2 published 👍 |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using this module with browserify and
ObjectId.generate()
is returning strings like565c8e5032d34b0NaNa0ad07
. Found that this is because when this line executes on the browser,process
exists butprocess.pid
does not.A workaround is to use
new ObjectId().toString()
, which generates a correct id.The text was updated successfully, but these errors were encountered: