Commit Graph

1521 Commits

Author SHA1 Message Date
Sanjai Kumar
ee4dba54f3
feat: update jsonToBru.js to use getValueString for text type items in multipartForm (#2407) 2024-06-04 14:16:07 +05:30
lohit
2621c384c0
Fix/params tests (#2398)
* fix: params test

* undeclared variable old code
2024-05-31 17:52:14 +05:30
lohit
b63ae360fe
fix: params test (#2395) 2024-05-31 15:55:23 +05:30
Dakshin K
46df2e967f
fix: Check OAuth2 redirect URL for matching callback URL and authorization code in query parameters (#2148)
* Check OAuth2 redirect URL for matching callback URL and authorization code in query parameters

In an Authorization code flow, there may be multiple intermediate redirects before reaching the final one which matches the callback URL and has a code in the query params.

We should wait until we see a redirect URI that matches both the conditions. This fixes the issue where, when a redirect contains `code` as a query param but is not the final one (i.e., is not to the callback URL) an error is thrown saying the callback URL is invalid.

Fixes #2147

* Add test cases for callback URL check

* Update check to cover URLs with same host but different endpoints
2024-05-31 15:41:31 +05:30
Dhananjay Kadam
32b1ba1c92
feat: add support for state param for OAuth2 Authorization Code flow (#2330)
* feat: add support for state param

* chore: revert package-lock.json

* test: update tests with state param

* chore: revert package-lock.json

* chore: add state to missing places

* Adding state to PKCE toggle

---------

Co-authored-by: Kadam Dhananjay <kadamdhananjay@johndeere.com>
2024-05-31 15:35:27 +05:30
lohit
3ded960938
fix(#2367): handle response body decode (#2371) 2024-05-30 23:24:04 +05:30
lohit
470d162fb6
fix/path param (#2388)
* fix(#484): minor code fixes

* code fixes

* fixes for generateCode

* var change

* pr review fixes
2024-05-30 23:09:34 +05:30
Sanjai Kumar
abfd14a306
Feat/improved path params (#2357)
* feat: path parameters (#484)

* add path parameters on bruno-app

* add path parameters on bruno-cli

* fix bruno-schema testing

* fix generate request code not replace path parameter value

---------

Co-authored-by: game5413 <febryanph10@gmail.com>
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>

* feat: Refactor request parameter handling

- Update prepare-request.js to filter and rename 'paths' to 'params' with type 'path'
- Remove 'paths' from export.js and interpolate-vars.js
- Update bru.js to use 'params' instead of 'path'
- Update requestSchema in index.js to use 'keyValueWithTypeSchema' for 'params'

Co-authored-by: game5413 <febryanph10@gmail.com>
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>

* feat: Refactor request parameter handling

* refactor: changes form the review

* refactor: Refactor transformItemsInCollection handling

* refactor: Refactor improved export/import functionalities

* refactor: Remove console.log statement in bruToJson.js

---------

Co-authored-by: game5413 <37659721+game5413@users.noreply.github.com>
Co-authored-by: game5413 <febryanph10@gmail.com>
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
2024-05-30 15:49:14 +05:30
lohit
4f64c2d59b
fix: collection import (#2353) 2024-05-22 21:32:24 +05:30
Anoop M D
4f11da12af release: v1.18.0 2024-05-22 19:57:29 +05:30
busy-panda🐼🐼
53ab9761f8
bugfix(#2152): Docs not support "http" markdown image (#2171)
* bugfix(#2152): Docs not support "http" markdown image

* fix: added documentation (#2152)
2024-05-22 19:19:31 +05:30
leonardoyhl
5099a50252
fix: new-request error when create request from cURL if some parameter(s) in form-urlencoded type data missing '=' (#2290) 2024-05-22 19:02:07 +05:30
Baptiste Poulain
91b5d0123e
Feat/UI feedback : Visual + console feedback for failed postman translated imports (#2316)
* feat(translation-feedback): console log incomplete postman import translations with stats and details

* feat(translation-feedback): warn instead of log, reformat layout

* feat(translation-feedback): optional callback function, update index.spec.js

* feat(ui-feedback): display translation errors in the UI before choosing import location

* feat(ui-feedback): syntax fix

---------

Co-authored-by: bpoulaindev <bpoulainpro@gmail.com>
2024-05-22 18:53:12 +05:30
Mateusz Pietryga
ff3ea33979
Fix: broken unit tests (#2334) 2024-05-22 18:49:01 +05:30
lohit
e0b8de5337
fix: Filter out the ZWNBSP character from response body, fixed charset parse logic (#2351)
* fix(#1003): content type for client_credentials & password grant types

* feature(#1003): added client is & secret for password credentials grant type

* fix: filter out non-printable control character and ZWNBSP character

* fix: filter out non-printable control character and ZWNBSP character

* remove ZWNBSP character from response body

---------

Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
2024-05-22 18:42:25 +05:30
lohit
e56fb74801
Filter out non-printable characters, control characters and ZWNBSP character from the response body (#2346)
* fix(#1003): content type for client_credentials & password grant types

* feature(#1003): added client is & secret for password credentials grant type

* fix: filter out non-printable control character and ZWNBSP character

* fix: filter out non-printable control character and ZWNBSP character
2024-05-22 14:16:09 +05:30
Anoop M D
f05389ca72 fix: fixed issue related to js files not being exported 2024-05-22 14:08:14 +05:30
Sanjai Kumar
4f115b06fb
Now added the ability to import and export js and json values. changes made in item schema. (#2296)
* Now added the ability to import and export js values. changes made in item schema.

* Improvements upon review

* Fixes.

* refactor: removed the copyRequest function and wrote the logic directly inside the copyItems function.

* refactor: Update getBrunoJsonConfig function to remove unnecessary parameter

* refactor: Update getBrunoJsonConfig function to remove unnecessary parameter and handle auth object dynamically

* refactor: Update OAuth2 grantType handling in transformCollectionToSaveToExportAsFile function

* refactor: Update getBrunoJsonConfig function to remove unnecessary async
2024-05-22 14:04:52 +05:30
Lallu Anthoor
4df78910f5
feat: allow translation of more postman scripts (#2054) 2024-05-13 21:22:05 +05:30
Anoop M D
e149c8dc9a release: v1.17.0 2024-05-07 23:17:24 +05:30
Anoop M D
411289daa8 chore: bumped cli version 2024-05-06 16:24:00 +05:30
Mateusz Pietryga
60cf012cbe
Fix: CLI Test Runner ignores auth:"inherit" in requests (#2206) (#2243)
#1667 - None means None, but inherit means inherit
2024-05-06 16:18:53 +05:30
Anoop M D
392cc80db2 release: v1.16.1 2024-04-30 20:59:12 +05:30
Anoop M D
d7c0f489f6 release: v1.16.0 2024-04-29 19:46:31 +05:30
Anoop M D
2569a1389d feat(#1667): None means None 2024-04-29 19:40:40 +05:30
Anoop M D
fe5816eb9a chore: improved the oauth help message 2024-04-29 19:37:31 +05:30
Rinku Chaudhari
23704a0800
fix: save button on confirm close popup not working (#2156) 2024-04-29 19:12:59 +05:30
Angela Yuan
c17e4effe7
Prevent losing unsaved environment variable data when attempting to change env (#2034)
* trying to begin changes

* Env bug fixed with only switching env when saved

* dialog box working, formik in EnvironmentSettings to pass props, selectedEnvironment in EnvrionmentSettings to pass props

* Removing some uneccessary comments

* no immediate following dialog pop up after warning dialog

* Wrapping commit warning moidal in CreatePortal, removing unnecessary isModified state, removing comments

* modifying dialog and adding formik back to EnvironmentVariables

* Removing unnecessary comments

---------

Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
2024-04-26 14:11:05 +05:30
Anoop M D
16861c9889 chore: bumped versions 2024-04-22 23:41:14 +05:30
Anoop M D
87404132ae chore: bump to v1.14.0 2024-04-22 20:23:24 +05:30
Baptiste Poulain
54e99cbbd7
fix(tailwindcss-forms): messes up input fields everywhere, removed it (#1817)
* fix(tailwindcss-forms): messes up input fields everywhere, removed it
* fix(tailwindcss-form): update package-lock.json
---------
Co-authored-by: bpoulaindev <bpoulainpro@gmail.com>
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
2024-04-22 00:17:50 +05:30
Max Bauer
eb9862b8f5
bugfix: hide autocomplete on escape keyup (#2091) 2024-04-22 00:14:34 +05:30
Bijin A B
7a3cc4e040
fix: error boundary adding return-to-app and force-quit options (#2131)
* fix: error boundary adding return-to-app and force-quit options

* fix: method context

* fix: method context

* chore: increased print width to 200 in prettier

* chore: reverted the prettier printWidth increase

* feat: remove box-shadow from error boundary message layout

---------

Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
2024-04-22 00:11:51 +05:30
Adam Rashid
60cb9da83e
flx: add unique key prop to ImportCollection options (#2133)
This PR uses the key of the options object in import collection to suppress the unique key prop warning.

Fixes issue #2078
2024-04-22 00:00:21 +05:30
Gustavo Ferreira da Silva
28e4159c21
feat: toggle password visibility (#2127)
* Toggle password in ProxySettings

Input 'password' in ProxySettings (Preferences) can be toggled to be visible or not.

* Solving button overlap

- Button to toggle password won't cover the text;
- Added toggle password feature in CollectionSettings (ClientCertSettings and ProxySettings).
2024-04-21 23:50:16 +05:30
Anoop M D
59ffb0166f chore: reverted the prettier printWidth increase 2024-04-19 00:34:04 +05:30
Anoop M D
e8ec74107d chore: increased print width to 200 in prettier 2024-04-18 18:25:48 +05:30
Anoop M D
d027d90ed5 fix(#2079): test cases to catch getEnvName() error in the future 2024-04-18 17:52:36 +05:30
Anoop M D
7bbc4727be fix: fixed ui error when ignores setting is not found in bruno.json 2024-04-18 17:43:32 +05:30
Anoop M D
2ed35108d7 chore: moved codemirror autocomplete util to its own file 2024-04-17 14:30:19 +05:30
Sanjai Kumar
a0860febee
Refactor Bruno language parser to support multiline text blocks (#2086)
* Refactor Bruno language parser to support multiline text blocks

* Refactor SingleLineEditor component to allow newlines and adjust height dynamically

* Refactor SingleLineEditor component to fix overflow issue

* Fix overflow issue in SingleLineEditor component

* Refactor SingleLineEditor and MultiLineEditor components to fix overflow issues and allow newlines

* Fix overflow and scrolling issues in MultiLineEditor component

---------

Co-authored-by: Sanjai Kumar <sk@sk.local>
2024-04-17 14:19:44 +05:30
Anoop M D
bc70bba0b6 release: v1.13.1 2024-04-16 02:33:30 +05:30
Bijin A B
d0a1621734
fix: handle null values (#2090)
Co-authored-by: Bijin AB <bijin.balakrishnan@allegiantair.com>
2024-04-16 01:32:34 +05:30
Rinku Chaudhari
dce792accd
fix: converting request url to valid URI on code generate (#1827) 2024-04-15 22:53:27 +05:30
Joshua
ac610f9ea3
fix: use html password type for password and credential inputs (#1824) 2024-04-15 22:49:20 +05:30
Mateusz Pietryga
12263a71b6
fix: Oauth2: Reuse TLS Certifcate valiadation and custom CA settings from preferences when accessing Auth and Token URLs (#2071)
#1684
#1003
2024-04-15 22:46:46 +05:30
Rinku Chaudhari
4e95fd548d
fix: docs link update (#2072) 2024-04-15 22:41:05 +05:30
Timon
23674fffbc
fix: pkce validation error (#2075)
- pkce is now `false` by default to prevent save errors
2024-04-15 15:20:26 +05:30
Anoop M D
eddac73341 release: v1.13.0 2024-04-13 18:27:02 +05:30
lohit
b5a1c80496
fix(#1003): content type issue for client credentials & password credentials grant types -- missing client id & secret for password grant type (#2051)
* fix(#1003): content type for client_credentials & password grant types
* feature(#1003): added client is & secret for password credentials grant type
2024-04-10 15:04:42 +05:30
ialloyd
24e58168e0
Cannot cancel request on preview (zIndex issue) #1501 (#1786)
* [Feature request] Keyboard shortcut to duplicate and rename request/collection. #1610

* Cannot cancel request on preview (zIndex issue) #1501

* changes

This reverts commit a3ce8aa691.
2024-04-10 03:01:36 +05:30
Devon Wolfkiel
31137ef466
fix(#1800): increase modal z-index to appear above prettify icon (#1821)
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
2024-04-10 02:59:02 +05:30
3002
f3fe0ee736
Fix variable name error (#1781) 2024-04-10 02:56:17 +05:30
Antti Sonkeri
00c0e418a9
fix: json body prettify not working with comments (#1831)
Added Microsoft's node-jsonc-parser library that is able to format json
with comments. Seems to handle bigints properly too.

It may be good to consider replacing existing `decomment` library with
`jsonc-parser` if its only use case is to decomment json.

Fixes usebruno#1830

Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
2024-04-10 02:54:28 +05:30
Antonin Huaut
1f786871b8
Ignore empty headers (#1917)
Co-authored-by: Antonin Huaut <antonin.huaut@dejamobile.com>
2024-04-10 02:49:16 +05:30
tlaloc911
9ee6f9a8cc
Add pretty option to xml request content (#1914)
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
2024-04-10 02:46:45 +05:30
David Reichert
c9e40cbc94
Update StyledWrapper.js (#1936)
Adjusting modal z-index to ensure that underlying components do not overlap the modal. This change ensures that the prettier button in a POST body no longer overlaps modal windows.
2024-04-10 02:37:16 +05:30
Anoop M D
4f7c295b88
Revert "fix ignore folders (#1929)" (#2048)
This reverts commit acca7984a4.
2024-04-10 02:34:06 +05:30
Lukáš Linhart
acca7984a4
fix ignore folders (#1929)
Co-authored-by: Linhart Lukáš <Lukas.Linhart@tescosw.cz>
2024-04-10 02:29:14 +05:30
Timon
0cce14b4d5
fix: Collection variable viewer (#1947)
Due to changes in https://github.com/usebruno/bruno/pull/650
collection variables would be passed as a object but was exptected
to be an array. Collection variables are now converted to an array.
2024-04-10 02:21:18 +05:30
Gustavo Kath
179c30b15b
fix(#1920): Ignore redirect abortion emmited by loadUrl (#1959) 2024-04-10 02:19:37 +05:30
David Saunders
920c490548
🐛 Replace jsonBigint with lossless-json (#2006) 2024-04-10 02:15:44 +05:30
Pushpender Saini
484f6ef0c1
Fix content-type in client_credentials oauth flow (#2039) 2024-04-10 02:07:57 +05:30
Lallu Anthoor
e7ff0ba5a8
fix: resolve build issues (#2041)
* fix: resolve prettier issues

* fix: allow checks write access for CLI test

* fix: use node 18 in workflows
2024-04-10 01:51:11 +05:30
Marty
615ed0c584
conditionally accesses properties (#2047) 2024-04-10 01:48:44 +05:30
Rinku Chaudhari
0173d8812d
feat: save unsaved request changes before renaming (#2018)
* feat: show unsaved changes alert while renaming request

* fix: save unsaved request changes silently instead of showing dialog

* fix: save unsaved request changes before renaming
2024-04-10 01:43:30 +05:30
Joel Wetzell
65dbf9c8ba
fix population of data when data-urlencode flag is used with G flag in curl import (#2025) 2024-04-09 15:54:44 +05:30
Anoop M D
aa5fee01c3 feat(#2030): ux touches for collection settings descriptions 2024-04-09 15:47:12 +05:30
Liz MacLean
84128052c0
feat: Add descriptions for each panel in CollectionSettings (#2031)
* Add descriptions for each panel in CollectionSettings

* Revert index.js

Leftover change from when i was putzing around
2024-04-09 15:26:56 +05:30
Anoop M D
fbee23329d fix(#1810): handled error case responseTime 2024-04-09 15:05:08 +05:30
RJ17799
5b2ca0ea03
fix(#1145): fix res.responseTime in runner (#1810) 2024-04-09 02:15:57 +05:30
j-lebek
17dac6be67
Fix typo in synopsis (#1787) 2024-04-06 06:10:06 +05:30
ccoVeille
64b90b4cc3
fix typos and french documentation (#1965)
* chore: fix typos in code

* chore: GitHub is a trademark

Github => GitHub

* chore: fix documentation in French
2024-04-06 06:08:50 +05:30
Joel Wetzell
ce5dd41267
chore: fix typo (#1848) 2024-04-06 06:05:34 +05:30
Sanjai Kumar
1349a79750
fix environment toggle bug (#1932) 2024-03-26 18:57:02 +05:30
Sanjai Kumar
c20beab0a0
feat(#1624): Implement opening cloned request automatically (#1930) 2024-03-26 15:26:19 +05:30
Anoop M D
d20de4da0a chore: bumped version to 1.12.3 2024-03-26 00:11:42 +05:30
Mateusz Pietryga
0f69c30a86
Fix: OAuth2 Authorization Request OPTIONAL parameters are required by bruno (#1797) (#1807) 2024-03-22 18:44:19 +05:30
Stefan
753ca4341f
check oauth2 authorization code redirect for exact 'code' query parameter (#1777)
Co-authored-by: Stefan Grüttner <stefan.gruettner@deutschebahn.com>
2024-03-22 18:43:12 +05:30
Mateusz Pietryga
e278116356
Fix: OAuth2 Access Token request is sent as GET (#1795) (#1808) 2024-03-22 18:42:00 +05:30
Mateusz Pietryga
ae3c76a6c1
Fix OAuth2 code verifier too short (#1793) (#1809) 2024-03-22 18:39:50 +05:30
Baptiste Poulain
0b2b16abcc
Fix/postman translation collection variables (#1894)
* fix(postman-translation-collectionVariables): auto translate pm.collectionVariables.set and get

* fix(postman-translation-collectionVariables) : additional translations, simplify regex, add testing

* fix(postman-translation-collectionVariables): update lock file

---------

Co-authored-by: bpoulaindev <bpoulainpro@gmail.com>
2024-03-22 18:37:30 +05:30
slowjoe007
8503752e09
Allow to keep the default truststore, when using a custom CA (#1863) 2024-03-22 18:35:42 +05:30
George Hopkins
9b7cdb2d48
feat: Add tooltips to sidebar footer (#1888) 2024-03-22 18:31:18 +05:30
Bobby
7741a3e4ee
feat(#1839): Add Audio and Video Preview (#1840)
Any audio and video response can be now be previewed.
2024-03-22 18:29:39 +05:30
dw-0
82c600a0e6
feat: toggle visibility of secret envVars (#650)
* feat: toggle visibility of secret envVars

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* feat: also hide secrets in environment settings

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* style: run prettier

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* refactor: resolve conflict

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

---------

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2024-03-22 18:24:16 +05:30
Anoop M D
f8ba781340 chore: version bump 2024-03-21 00:50:03 +05:30
Baptiste Poulain
f96f763f14
fix(enableTranslation): remove unused enableTranslation and useTranslation tokens (#1867)
Co-authored-by: bpoulaindev <bpoulainpro@gmail.com>
2024-03-20 18:45:27 +05:30
Afrian Junior
a546457e0f
fix(ux): better text selection implementation on dark-mode (#1861) 2024-03-20 15:52:44 +05:30
Feldrise
2b0ad29b93
fix: system theme in dark mode (#1823) 2024-03-19 13:11:09 +05:30
Anoop M D
cdbb15f33e chore: bumped version to v1.12.0 2024-03-19 06:36:38 +05:30
Anoop M D
14911b4def chore: removed dependency on tailwind forms 2024-03-19 06:34:54 +05:30
Baptiste Poulain
410eecc884
feature(postman_tests_scripts): automatic tests and scripts translation from postman import (#1151)
* feature(postman_tests_scripts): automatic tests and scripts translation from postman import
---------

Co-authored-by: Baptiste POULAIN <baptistepoulain@MAC882.local>
Co-authored-by: bpoulaindev <bpoulainpro@gmail.com>
2024-03-13 18:40:31 +05:30
Anoop M D
2cd0e065bd chore: updated lib versions 2024-03-13 03:05:29 +05:30
Anoop M D
d0c7c872c9 chore: bumped version to v1.11.0 2024-03-13 00:52:00 +05:30
Anoop M D
63684afbff chore: bruno notifications endpoint 2024-03-13 00:31:46 +05:30
Anoop M D
dbe41e7f59 fix(#1731): fix aws sdk issue 2024-03-12 23:53:14 +05:30
Anoop M D
c00bfb0ce4 fix: fixed failing tests 2024-03-12 23:47:08 +05:30
Anoop M D
09aefffc47 fix: fixed failing tests 2024-03-12 23:43:50 +05:30
James Hall
6629d5a2c8
fix(#1521): only show Recent Documents menu on supporting platforms. (#1585)
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
2024-03-12 23:33:30 +05:30