-
Notifications
You must be signed in to change notification settings - Fork 90
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
Improve HttpRequests
#1741
Open
flevi29
wants to merge
46
commits into
meilisearch:main
Choose a base branch
from
flevi29:improve-http-request
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Improve HttpRequests
#1741
Changes from 7 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
9f41065
Improve HttpRequests
flevi29 a32ed2d
Convert props to private, refactor, adapt tests
flevi29 118534d
Fix type issue
flevi29 942e889
Improve timeout, refactor
flevi29 455d8c3
Misc
flevi29 d1b442b
Fix browser env test
flevi29 c044319
Fix Node.js 18 fetch signal issue
flevi29 e6236f6
Add extra RequestInit for search
flevi29 4a49790
Refactor
flevi29 0e41c86
Fix type issues
flevi29 1949134
Fix some types
flevi29 ace3412
Make extraRequestInit function as it originally did
flevi29 3854e13
Remove unnecessary transformation
flevi29 d73d58d
Revert some type changes
flevi29 2d4849d
Optimize
flevi29 8825781
Merge branch 'main' into improve-http-request
flevi29 db9aa94
Merge with main branch
flevi29 432f338
Merge branch 'main' into improve-http-request
flevi29 d70f962
Merge branch 'main' into improve-http-request
flevi29 aa10d8c
Merge with main
flevi29 f81e7ca
Merge branch 'improve-http-request' of github.com:flevi29/meilisearch…
flevi29 f231e95
Merge branch 'main' into improve-http-request
flevi29 8f29bc2
Merge with main
flevi29 edff9a9
Merge branch 'main' into improve-http-request
flevi29 36c174f
Fix types
flevi29 a26cc1d
Merge branch 'main' into improve-http-request
flevi29 f0998be
Merge branch 'main' into improve-http-request
flevi29 f7b1e88
Merge with main
flevi29 a32c773
Fix type and style issues
flevi29 aaaaf3b
Test extra headers as well
flevi29 ed15092
Merge branch 'main' into improve-http-request
flevi29 54e83ba
Avoid saving fetch to a property, cast types in HttpRequests only
flevi29 905789b
Adjust test
flevi29 c3b57cd
Merge branch 'main' into improve-http-request
flevi29 4dfdeb0
Merge branch 'improve-http-request' of github.com:flevi29/meilisearch…
flevi29 576231a
Add docs, fix custom content type detection, deprecate httpClient
flevi29 5e0b1c3
Fix custom content type issue
flevi29 7e9ab0c
Misc
flevi29 12dbd8f
Fix test with malformed JSON string
flevi29 3c065d4
Fix handling of Content-Type, misc
flevi29 3cee506
Merge branch 'main' into improve-http-request
flevi29 5941fc0
Merge branch 'main' into improve-http-request
flevi29 71f3e40
Merge branch 'main' into improve-http-request
flevi29 c8cc95a
Merge branch 'main' into improve-http-request
flevi29 116305e
Merge branch 'main' into improve-http-request
flevi29 614aab9
Merge branch 'main' into improve-http-request
flevi29 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const { parseArgs } = require("node:util"); | ||
const { resolve, join, basename } = require("node:path"); | ||
const { copyFileSync } = require("node:fs"); | ||
const pkg = require("../package.json"); | ||
|
||
const { | ||
values: { to }, | ||
} = parseArgs({ options: { to: { type: "string" } } }); | ||
|
||
if (to === undefined) { | ||
throw new Error("required argument `to` missing"); | ||
} | ||
|
||
const umdAbsolutePath = resolve(__dirname, join("..", pkg.jsdelivr)); | ||
|
||
copyFileSync(umdAbsolutePath, join(to, basename(pkg.jsdelivr))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
bug: previously this did not return
EnqueuedTask
, but ratherEnqueuedTaskObject