-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: pre-request sdk object cleanups - INS-3379 #7150
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
Closed
Closed
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
c1d1f30
feat: enable manipulation on insomnia.request
ihexxa e6d7e71
chore: revert changes on test
ihexxa f7ecf5e
chore: fix and re-org pre-request scripts
ihexxa e391349
fix: bring back request test in smoke spec
ihexxa 22d8286
feat: enable insomnia.sendRequest
ihexxa 3f2fe7f
feat: enable manipulation on insomnia.request
ihexxa 53f1468
chore: clean up dependencies
ihexxa 5ab2a74
chore: fix and re-org pre-request scripts
ihexxa a8beb1e
fix: add static _index for simulating the original behavior
ihexxa 4a4b801
feat: add simple interpolator for enabling replaceIn methods
ihexxa d87e457
fix: allow user to update active request certs and proxy through inso…
ihexxa 3757c40
feat: hook settings to insomnia.request and cleanups
ihexxa ee344fc
test: add a test for proxy and certificate manipulation
ihexxa 350e78d
fix: lint error
ihexxa 41fce6e
feat: enable eval() in script
ihexxa b896943
fix: incorrect auth param transforming
ihexxa b324b44
feat: enable requiring node.js modules
ihexxa f7cb5ef
fix: request auth type is not correctly updated
ihexxa 9cfab2b
test: add tests for unphappy paths
ihexxa 4ba6658
test: fixed a flaky test
ihexxa 5379051
chore: make console.log outputs more friendly
ihexxa 3a91858
chore: add more helper snippets
ihexxa a1aa8a9
chore: add more helper snippets for pre-req scripting
ihexxa 2b17ae4
fix: use correct icons
ihexxa b672db0
fix: restart the hidden window if it is down
ihexxa b311c05
fix: lint error
ihexxa 0881b71
fix: test failure after rebasing
ihexxa 108e3c8
fix: smoke test error because of restarting hidden window
ihexxa 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
Empty file.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| raw file content |
439 changes: 430 additions & 9 deletions
439
packages/insomnia-smoke-test/tests/smoke/pre-request-script-features.test.ts
Large diffs are not rendered by default.
Oops, something went wrong.
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 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
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.
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.browser.security.eval-detected.eval-detected
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.
This is as expected as it is used to provide compatibility with existing scripts.