* add logic to handle vault secret items(vault environment)
* add modal to confirm export private environment when user exports global environment*
* mask all secret items value when export
* add logic to handle vault key reset and input request
* add encrypt/decrypt and remove secret function
* move removeAllSecrets function to modal
* basic integration with srp api
* api and encrypt/decrypt integration
* add modal for secrets environment variable without vault key hint
* integration with sse event of reset vault key
* add enableVaultInScripts settings to allow using vault in script
* add insomnia.vault to insomnia script
* Modify rendering logic to expose decrypted secrets to script
* remove keytar and use electron safestorage instead
* Do not allow set method in vault script
* add support for legacy environment with vault as environment key
* remove duplicate file due to rebase
* feat: enable folder env interfaces for manipulation in script
* fix: lint
* Fix table view environment not updated issue[INS-4875] (#8360)
* Fix table view environment not updated issue
* fix: fix comments and improve the test
---------
Co-authored-by: Kent Wang <kent.wang@konghq.com>
* fix: handle several different template syntaxes in url
* inso -> es2021
* fix: init certs in script
---------
Co-authored-by: Ryan Willis <ryan.willis@konghq.com>
* fix: include multiline and fileName in the multipart req body
* fix: reject setting null to insomnia.variables
* fix: comment
* fix: also update the scriptExecutor with getExistingConsole
* feat: support escape sequences for formatting in console
* fix: update test ouput
* refactor: support escape seqs
* fix: cli smoke test failed
* feat: enable configuration for turning on/off logging
* fix: lint error
* test: add a smoke test
* fix: smoke test
* fix: smoke test
* fix: smoke tests
* fix: make runtime as optional arg with default value
* chore: enable log
* chore: turn off flag
* fix: turn off restriction
* fix: failed to run smoke tests
* fix: remove unnecessary changes
* fix: unnecessary changes
* fix: support async function in insomnia.test
* test: fix and add test
* fix: test failed
* fix: update the solution
* fix: lint
* fix: test failure
* fix: use regexp as replaceAll doesn't available
* chore: remove useless code
* fix: update the proxy transforming between sdk and inso
* fix: lint error
* fix: smoke test
* chore: enable sentry for the hidden window
* chore: add tag for sentry reporting
* feat(runner): support several cases for setNextRequest
* fix: lint error
* fix: test errors
* refactor: add a test and simplify the logic
* fix: runner test failed
* fix: update the classname of items in the request list
* wip
* add after response example and wiring
* add tests and tap output
* check error case
* add reporters
* test reporters
* only list tests with results
* add failing test
* rename config function
* add test title
* feat: log request testing results and return them to the main renderer
* fix: lint error
* fix: install chai with unified version across packages
* chore: restore package-lock
* chore: restore package-lock
* feat(GUI): enable test results pane (#7737)
* feat: enable the test result pane
* test: bring back tests and cleanups
* chore: replace tabitem with tabpanel
* chore: useMemo for test result counts
* refactor: abstract RequestTestResultRows as a component
* chore: cleanup package lock
* chore: restore package lock
* feat: enable collection runner
* fix: cli test failed
* fix: lint error
* fix: race condition in canceling runner
* fix: runner is not canceled when there's an exception
* fix: lint error
* 1.fix after response iteration and eventname issue
* chore: disable the flaky test
---------
Co-authored-by: Kent Wang <kent.wang@konghq.com>
* feat: refactor the environment mapping between inso and script sdk
* feat: enable global environment in the sdk
* fix: disable global cases
* refactor: pass select global env to script execution and persist it after execution
* fix: lint error
* fix: some minor fixes
* fix: undefined is persisted as globals
* chore: add some comments about the mapping rule
* refactor: enable menu items for global environment manipulation (#7589)
* fix: support generating values with faker.js in scripting
* fix: relax timeout for one case and remove a duplicated case
* fix: test is flaky because of timeout
* fix: incorrect test selector
* fix: waiting before checking
* fix: replace clicking with assertion
* fix: relax the external timeout a bit
* feat: update data model and request-pane to support post-req-script
* fix: unit test failed
* feat: integrate post-request script to the engine - INS-3785,INS-3786 (#7329)
* feat: integrate post-request script to the engine
* refactor: some minor improvements
* fix: lint error
* chore: clean up typings
* refactor: separate transforming into sync and async parts
* use named args
* fix: renaming pre-req vars, functions and 2 minor fixes
* fix: the error message is updated
* feat: add snippets for post-request scripting (#7395)
* feat: enable extended assertion chains on `insomnia.response` (#7396)
* feat: add snippets for post-request scripting
* feat(sdk): support response.to.have assertion for verifying response
* chore: fix lint error
---------
Co-authored-by: jackkav <jackkav@gmail.com>
* test: add tests for post-request scripts and post-request scripts - INS-3786 (#7331)
* test: add some tests for post-req script and script engine
* fix: incorrect script type
* chore: refresh package-lock after merging
* chore: clean up package-lock.json
* fix: failed tests after rebasing
* feat: support importing post-req script from Postman (#7423)
* feat: support importing post-req script from Postman
* fix: introduce post-req script property for merged changes
* test: add a test case for importing scripts
* fix: add missing fixture
* chore: remove row after merging
* chore: rename to after-response-script
* fix test
* refresh lock
* update snapshot
* extract pre request logic to function
* refresh lock again
* throw on base env
* fix: revert the logic which rejects the case of unselected environment
---------
Co-authored-by: jackkav <jackkav@gmail.com>
* feat: move script sdk to one workspace and update importing paths
* test: add jest config for enabling tests
* fix: failed to build package because of missing .node loader