-
Notifications
You must be signed in to change notification settings - Fork 399
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
updated default axios options #979
Conversation
src/App.ts
Outdated
@@ -494,14 +499,14 @@ export default class App { | |||
): void; | |||
public shortcut< | |||
Shortcut extends SlackShortcut = SlackShortcut, | |||
Constraints extends ShortcutConstraints<Shortcut> = ShortcutConstraints<Shortcut>, |
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.
these are prettier changes I believe
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.
perhaps, these are the changes by your editor (VS Code). You can manually run npx prettier -w src
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.
Nice comment explaining why we want it to be false
by default!
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.
Once the CI builds pass, the change looks good to me
src/App.ts
Outdated
@@ -494,14 +499,14 @@ export default class App { | |||
): void; | |||
public shortcut< | |||
Shortcut extends SlackShortcut = SlackShortcut, | |||
Constraints extends ShortcutConstraints<Shortcut> = ShortcutConstraints<Shortcut>, |
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.
perhaps, these are the changes by your editor (VS Code). You can manually run npx prettier -w src
4e93e84
to
26e3664
Compare
26e3664
to
029ee5f
Compare
Codecov Report
@@ Coverage Diff @@
## main #979 +/- ##
=======================================
Coverage 66.25% 66.25%
=======================================
Files 13 13
Lines 1212 1212
Branches 357 357
=======================================
Hits 803 803
Misses 339 339
Partials 70 70
Continue to review full report at Codecov.
|
Summary
Our axios instance in bolt-js won't work with some endpoints and server setups. This pr fixes this weird edgecase. We already have this fix in our web-api package. https://github.com/slackapi/node-slack-sdk/blob/main/packages/web-api/src/WebClient.ts#L138
Requirements (place an
x
in each[ ]
)