-
-
Notifications
You must be signed in to change notification settings - Fork 414
feat: add --ky option #690
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
base: main
Are you sure you want to change the base?
Conversation
e42d28c to
8be147d
Compare
Generate a client that uses this library: https://github.com/sindresorhus/ky
8be147d to
7c8567e
Compare
Since ky has a special ResponsePromise type, the `request` method cannot use async-await syntax and the returned promise must come from ky (so the expected methods are there). This means the securityWorker cannot be supported by the ky client.
3d7ae28 to
5ed1fe4
Compare
bf2adbb to
04b800b
Compare
04b800b to
8c770b8
Compare
|
If anyone is interested in using or testing this, it's published to NPM under /cc @hardouinyann @AshotN (since you both reacted) |
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.
Copilot reviewed 4 out of 8 changed files in this pull request and generated 1 comment.
Files not reviewed (4)
- package.json: Language not supported
- templates/base/http-clients/ky-http-client.ejs: Language not supported
- templates/default/procedure-call.ejs: Language not supported
- templates/modular/procedure-call.ejs: Language not supported
Co-authored-by: Copilot <[email protected]>
|
Is this PR still relevant ? We would love to use ky in particular with the built-in retry mechanism |
Generate a client that uses this library: https://github.com/sindresorhus/ky