Commit Graph

141 Commits

Author SHA1 Message Date
Jack Kavanagh
5a65e2dd39
chore: bump hapi hawk (#4175)
* chore: bump hapi hawk

* fix type-check
2021-11-03 12:11:21 -04:00
Dimitri Mitropoulos
177d6adf38
Insomnia Config, controlled settings (#4031)
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-10-14 10:59:45 -04:00
James Gatz
e7d44bf206
Update axios-request to respect the validateSSL app setting (#4042)
* Update axios-request to respect the validateSSL app setting

* Update types and formatting
2021-09-22 14:57:51 +02:00
schrodingersket
ccac337c4f
Optionally disable certificate validation for OAuth2 auth windows (#3894)
Co-authored-by: Jonathan Thompson <jonathan.thompson@nimbusnine.co>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-01 21:08:44 +00:00
Opender Singh
7ffc391428
add eslint rules for semi colons (#3989)
* add rules for semi colons

* run lint fix

* remove invalid eslint disable
2021-09-01 10:50:26 -04:00
Opender Singh
774a8dc792
Space -> Project rename & update code-references (#3928) 2021-08-20 11:12:36 -04:00
Opender Singh
afbbb0eaa3
Update mock implementation and move the segment event enum (#3913) 2021-08-12 22:35:43 +00:00
Opender Singh
5a50b19595
Introduce segment event enum (#3904)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-08-12 19:37:33 +00:00
Opender Singh
18e7f49b43
Lint rules for equivalence and arrow func spacing (#3897) 2021-08-12 01:25:34 +00:00
Paul Johnson
366a54f630
Allow optional specification of Origin header for Auth Code flow + PKCE (#3783)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-09 22:30:32 +00:00
Dimitri Mitropoulos
70d5797d94
use optional chaining (#3867) 2021-07-30 15:32:08 +12:00
Ben Walker
b8cc881d36
Populate refresh token from a client credentials OAuth2 call (#3794) 2021-07-29 05:35:03 +00:00
NAVAL
21b02cc61a
add: support for plain PKCE challenge method (#3843) 2021-07-29 04:31:02 +00:00
Opender Singh
7abde2a017
Ensure a base space always exists (+ fix gRPC sub-environments) (#3819) 2021-07-26 00:49:34 +00:00
Dimitri Mitropoulos
0178533e52
Feat/eslint import order (#3782) 2021-07-23 11:04:56 +12:00
John Chadwick
b07cd1cf16
Upgrade Electron to 11.2.3. (#3798)
* Upgrade Electron from 9.3.5 to 11.2.3.

* bump version

* update preid to alpha

* version packages lib@2.3.1-alpha.0

* Downgrade electron-builder to 22.11.3.

We tried to upgrade electron-builder to 22.11.7, but this fails
because electron-builder 22.11.4 introduces imports into fs/promises.
This module is only available in Node 14+, so we have to stick to
22.11.3 until we update to Electron 12.

* Revert npm script changes from alpha release.

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-07-16 13:35:32 -07:00
Dimitri Mitropoulos
9f3705a8a8
adds eslint rule for requiring default case statements (#3779) 2021-07-01 20:47:10 +00:00
Dimitri Mitropoulos
c0412b1092
use isWorkspace guards (#3481) 2021-06-17 09:05:31 +12:00
Dimitri Mitropoulos
b5fe435710
have and use guards for all models (#3480) 2021-06-16 14:19:00 -05:00
Eric Reynolds
d0fac873d0
Update types in networking layer for response times in testing (#3466)
plugin calls do not use curl, so set this instance to zero

Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com>
2021-06-14 15:50:47 -07:00
Dimitri Mitropoulos
cdd279e09a
Provides Space id to "export all" (#3455) 2021-06-14 15:18:35 +00:00
Opender Singh
d7b630f17b
Add formatting ESLint rules (#3425)
* add rules

* run lint:fix

* quick manual fix for lint errors

* indent fix

* add jsx prop multiline

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-05-27 14:00:32 -04:00
Akhil Sasidharan
0b38c68c1f
fix: insomnia open dialog for proto directory can't select directories (#3348)
* fix: insomnia open dialog for proto directory can't select directories

* uses a named export for selectFileOrFolder

(also, removes original js file from rebase)

* clears error by leveraging exhaustiveness check

* fixes bug: the `name` field is actually for a file filter

see the referenced pull request.

As for the `extensions: ['*']`, there's no reason I can see to include a filter and then tell the filter to then accept everything.

* update selectFileOrFolder mocks

* use switch (for exhaustiveness checking) and type selectedFormat

* removes unnecessary filters from _save_ dialog

from the docs:
> The filters specifies an array of file types that can be displayed

As suspected, this is not needed.  A user is free to save it wherever they want.

* adds extension to saved file

not sure why this was missing before, but it appears to have been a bug

* formatting updates

best to "ignore whitespace" for this commit.  I did this with the hope of using the `ThunkAction` type from `redux-thunk`, but once I got them all looking good and started adding the type I quickly learned there's quite a bit more work to do in this area before we can have such a thing.  I therefore opted to just call it a day at that and take the (no-op) formatting changes and typings.

* removes remaining name filters from save dialogs

same reason as the 2nd to prior commit - they cause the bug

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-26 10:24:21 -04:00
Josh Soref
9006babd38
fix spelling (#2976) 2021-05-25 12:16:43 -04:00
Opender Singh
88ed96fc47 merge release branch with develop and resolve conflicts 2021-05-25 09:30:09 +12:00
David Marby
13a45ff621
Fix the ca certs import (#3404) 2021-05-20 10:16:55 +12:00
Dimitri Mitropoulos
6e073c8a38
use same array-type rule, project-wide (#3395) 2021-05-19 08:32:18 +12:00
Dimitri Mitropoulos
2dc4299e39
fix node-libcurl imports (#3384)
* fix node-libcurl imports

* removes unnecessary function wrapper

and anyway, `number` is not the correct type (which is what motivated this change in the first place), `CurlFeature` is.

* updates type for setOpt

see https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgOIBs4GcvIN4BQyxyWwAXhAFzIDkWAtnOurcgD50MQAmwArgzadamKAHMItANwEAvgQKhIsRCgDCAe00BrYCkIlkYAJ4AHanSz9xcKMLoIAFpoSbMkdU+BmZ8xQD0AcjK0PBIyJoAbtDomnA8WErgYWrIAIIIYMCaIPhEJBBwYACMABSaZtm5NLQAssDoOrQANMjimDg0GNhYAJQ0UZrAPLJGRaUVVTkgtVq6+lityG4LlvN6EAPIQyOyCgRuIFhgyIjVsxlZM8gAvPnjxe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d7WPdIWjcmDJPjZTtbJfNmHs5D23meccO5Uj4uNdjsu+cZI5q5F2vU5KdOobu5unoVk62-ziPgiL9XXd7nW0QHquzhr-3fMznap8BhHXrnjvC6d5eY65vv18r0NfeT1OJ3HxvjwP3PZ-bsG5SAA

to see why `any` is required, for now (at least)

* updates the getBodyBuffer parse calls now that the types are working

* return to prior approach, this time with a warning
2021-05-17 09:59:43 -04:00
Dimitri Mitropoulos
5f4c19da35
[TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00
Sayooj Sojen
351afde43f
Expose identity token for oauth2 (#3211) 2021-04-05 13:03:34 -04:00
David Marby
e1812efdb3
Add initial segment events (#3121) 2021-02-26 20:57:19 +01:00
David Marby
1e9868152c
Generate the bundled ssl trust store at compile time (#3030) 2021-01-28 11:46:19 +01:00
Opender Singh
b135a2c637
Prevent deletes and validate proto files when uploading a directory (#3024) 2021-01-28 11:00:43 +13:00
Opender Singh
42ab4e4465
Multi proto file support (#3006) 2021-01-25 15:50:53 +13:00
Opender Singh
f27cd5f630
Support template tags with gRPC (#2926) 2020-12-18 00:38:21 +13:00
David Marby
cad2ebc932 Merge branch 'release/2020.5.2' into develop 2020-12-09 19:40:16 +01:00
David Marby
5bedc0ffad
Add additional metrics to the notification call (#2921) 2020-12-09 17:39:53 +01:00
Opender Singh
27987201ad
gRPC URL bar improvements - streaming type & package groups (#2883) 2020-12-09 17:42:50 +13:00
Opender Singh
ef2fc3baec
Validate protofile during upload (#2864)
* feat(insomnia-components): add async-button

* feat: show error if parsing protofile fails during upload/add

* chore: flow is poop

* feat: use try-finally
2020-11-25 10:02:28 +13:00
Opender Singh
0b58a748af
Support for server and bidi streaming (#2814) 2020-11-17 11:59:02 +13:00
Opender Singh
5c1885a540
Support reuploading a proto file (#2832) 2020-11-17 11:01:50 +13:00
Opender Singh
8f8acf83f2
Allow changing the protofile for a request (#2828) 2020-11-13 12:03:36 +13:00
Opender Singh
6f3c41659f
Add TLS/SSL support (#2827) 2020-11-12 12:42:52 +13:00
Opender Singh
f858b6625d
gRPC state management (#2813) 2020-11-12 11:44:03 +13:00
Opender Singh
d18ba8e6d8
Support for gRPC Unary and Client streaming (#2809) 2020-11-10 13:30:27 +13:00
Ben Scholzen
294777b0ed
Add PKCE support (#2652)
* Add PKCE support

* Fix failing unit test and add new test for PKCE

* Update packages/insomnia-app/app/network/o-auth-2/grant-authorization-code.js

Co-authored-by: Opender Singh <opender94@gmail.com>

* Update packages/insomnia-app/app/network/o-auth-2/grant-authorization-code.js

Co-authored-by: Opender Singh <opender94@gmail.com>

* Fix prettier report

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-10-20 20:58:16 +13:00
karolineKarkoschDrKlein
984881c0cb
Don't clear oAuth2 session on restart (#2701)
* Don't clear oAuth2 session on restart

Offer button to user where it can be cleared without restart

* PR improvements

* remove accidental newline

* PR improvements 2

* cleanup

* capitalize insomnia
2020-10-10 09:33:21 +13:00
Selamanse
03d83a8f52
Cancel the active request instead of the most recent request (#2696)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-10-09 06:17:37 +13:00
Julien Giovaresco
64c7b429aa
Expose network context to requestHook & responseHook scopes (#2662)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-29 15:10:51 +13:00
Julien Giovaresco
9d4390de2f
Introduce a checkbox in Basic Auth form to choose ISO-8859-1 encoding for credentials. (#2642)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-09-25 08:58:28 +12:00