-
Notifications
You must be signed in to change notification settings - Fork 226
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
React Native Support #227
React Native Support #227
Conversation
This PR fixes salesforce#222 by: - introducing a fallback for the `util.*` code paths used as indicated in [this comment](salesforce#222 (comment)) - adding a dependency on `url-parse` to act as a polyfill for the usage of `require('url').parse`
This PR fixes salesforce#222 by: - introducing a fallback for the `util.*` code paths used as indicated in [this comment](salesforce#222 (comment)) - adding a dependency on `url-parse` to act as a polyfill for the usage of `require('url').parse` - configuring eslint to error on `no-restricted-modules` which will not be present in native environments
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.
With this change, the output of inspect
for any MemoryCookieStore
is always { idx: }
. I've commented with a few ways that we might be able to avoid losing information.
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
Implementation for the fallback inspect function so that it produces equivalent output to the original inspect behavior.
Implementation for the fallback inspect function so that it produces equivalent output to the original inspect behavior.
Implementation for the fallback inspect function so that it produces equivalent output to the original inspect behavior.
Implementation for the fallback inspect function so that it produces equivalent output to the original inspect behavior.
I'll try and find some time this week to do the review; thank you so much for the submission! |
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.
Just had a question about one of the unit tests ...
reworded some of the test names to make the intent clearer
Co-authored-by: Will Harney <62956339+wjhsf@users.noreply.github.com>
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.
LGTM.
@ruoho-sfdc - please review |
I think this is ready for merge @colincasey. Nice work! |
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.
Approved -- merged with latest update of universalify from Snyk.
This PR fixes #222 by:
util
module code paths used as indicated in this commenturl-parse
to act as a polyfill for the usage ofrequire('url').parse
no-restricted-modules
which will not be present in native environments