-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
fix adapter string config #3538
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
fix adapter string config #3538
Conversation
Could you add a test that exemplify that behavior? |
src/Adapters/AdapterLoader.js
Outdated
@@ -23,6 +23,9 @@ export function loadAdapter(adapter, defaultAdapter, options) { | |||
if (adapter.default) { | |||
adapter = adapter.default; | |||
} | |||
if(options.adapter) { |
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.
Alignment is off
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.
yeah - its a pain to test locally (windows) - so for tiny changes its easiest to just PR them and let travis let me know if its ok.
just trying a variation, and if its ok I'll add a test.
atm you cant configure a push adapter via string, which is a pain.
88e5649
to
0e11a7f
Compare
@jeacott1 updated the pull request - view changes |
0e11a7f
to
52b07f6
Compare
@jeacott1 updated the pull request - view changes |
There is the test:win command that is specifically designed for windows. |
Also, if you're using the CLi, you'll note that the parser is an objectParser not a moduleParser (unlike emailAdapter options). I suggest you open an issue first, with the proper error you encounter. |
allows push adapter to be properly configured via string config