-
-
Notifications
You must be signed in to change notification settings - Fork 207
feat!: use fetch
#365
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
Merged
Merged
feat!: use fetch
#365
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
8fa4a3c
refactor: start fetch
merceyz d1e38dc
feat: proxy support
merceyz 38bdb99
chore: format
merceyz afc7f65
refactor: rename to getProxyAgent
merceyz d67d7f3
chore: add lint rule
merceyz 25c7147
ci: use lts for nock files
merceyz de216b4
fix: use globalThis.fetch
merceyz b8d4813
feat: mocks
merceyz 2d7a867
refactor: use fetch
merceyz 4c7540d
build: set NODE_ENV
merceyz 3ecb82b
chore: remove dependencies
merceyz 8118258
chore: remove old request recording
merceyz ac99ee9
fix: correct nock path
merceyz 7d88498
chore: remove nocks
merceyz 6271b1b
test: remove tests mocking functions
merceyz cf4456e
chore: add new nocks
merceyz 0b1831b
refactor: use else if
merceyz 2fb9142
fix: move network access check
merceyz 55c0408
chore: define `NOCK_ENV` as well
merceyz 2ff3ea7
refactor: remove `NODE_ENV`
merceyz 4c12241
chore: remove `fetchJSON`
merceyz 8a5bb71
refactor: move request recording back to `tests/recordRequests.js`
merceyz ed68f53
refactor: use `v8.serialize`
merceyz 9831441
test: copy body
merceyz 11f70d2
test: store as string
merceyz a1b9145
refactor: reduce diff
merceyz c345721
refactor: improve mock loading
merceyz b87dbc6
refactor: simplify adding new headers
merceyz b584310
test: store as base64
merceyz 6d0bdca
docs: add some information about the use of base64
merceyz 9f6cf1c
refactor: restore `fetchAsJson` and `fetchUrlStream`
merceyz 1bc41bd
chore: restore `tests/npmRegistryUtils.test.ts`
merceyz 5167cdc
Merge branch 'main' into merceyz/refactor/fetch
merceyz 5163ee8
Update sources/httpUtils.ts
merceyz 67a40c7
chore: revert micro-optimisation
merceyz 59039ad
Revert "Update sources/httpUtils.ts"
merceyz c8818a3
Apply suggestions from code review
merceyz 574745b
Merge branch 'main' into merceyz/refactor/fetch
merceyz 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
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.
Uh oh!
There was an error while loading. Please reload this page.