Commit Graph

1642 Commits

Author SHA1 Message Date
Dimitri Mitropoulos
25520154a5
Minor Electon-related cleanup (#3957)
* adds (now available) electron types

* MenuItemConstructorOptions.selector module augmentation

* updates note on allowRendererProcessReuse with more up-to-date info

* separates and formats comments that were intended to be separate

if you check out the commit where these were created, for some reason the comment for the `loadURL` line was put under the line of interest, and over time the space between the comment blocks was removed - making it look like the last line of the comment is related to the same thing (it, apparently, is not).

* use createRef for ResponseWebView
2021-09-01 20:48:05 +00:00
Timothy Lim
6ca2bf7b1b
Prevent GraphQL non breaking space (#2770)
Co-authored-by: Timothy Lim <tim.lim@intercom.io>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-01 16:17:15 -04:00
Jason Blalock
8db87df17c
[Feature/Plugin API] Add clipboard wrapper methods to context app (#3977)
Co-authored-by: Jason Blalock <jasonblalock@users.noreply.github.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2021-09-01 17:40:11 +00:00
Giuseppe B
e8551bd792
Insomnia v4 support for CLI (#3055)
* Initial draft for insomnia-adapter.js

* Added global options on cli types

* Added command description on cli

* Updating commands to support global flag

* First adapter implementation

* Fix object representation for send-request package

* Improved command description

* Fix test expected result

* Added db & adapter tests

* Improved flow on the InsomniaAdaptor

* Reverting to previous version

* Applying requested fixes

* Revised insomnia-adapter.js

* Applying requested changes

* Fixed new path for fixtures

* Introducing typescript support

* A few minor updates

* fixes from rebase

* update type mapping

* Use __dirname for fixture paths

* and tests for malformed data or unexpected version

* Update docs & use src with generate config cmd

* runs lint:fix

* minor error message copy adjustment

Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-01 17:17:19 +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
c7f07fd63e Merge branch 'release/2021.5.2' into develop 2021-09-01 09:51:26 +12:00
Jack Kavanagh
a6e52d97aa
fix(tag-editor) cast to boolean (#3982)
* fix(tag-editor) cast to boolean

* Update packages/insomnia-app/app/ui/components/templating/tag-editor.tsx

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-08-31 19:57:17 +00:00
Timothy Lim
84fc8f38a7
Request History: Set dropdown value to the response instead of null (#2735)
Co-authored-by: Timothy Lim <tim.lim@intercom.io>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-31 06:21:02 +00:00
Opender Singh
ba459095e9 add back empty lines 2021-08-31 17:28:00 +12:00
Opender Singh
ed7853cc3b Don't resolve plugin prompt promise until modal has closed, to avoid a race condition (#3970)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-08-31 17:16:28 +12:00
Dimitri Mitropoulos
b7d11d3130 fixes "Hide menu bar" setting (#3961)
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-08-31 17:16:17 +12:00
Opender Singh
f191b3a070 bump version to 2021.5.2 2021-08-31 17:14:17 +12:00
Opender Singh
c8926d75ae
Don't resolve plugin prompt promise until modal has closed, to avoid a race condition (#3970)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-08-31 04:52:01 +00:00
Dimitri Mitropoulos
9353a6fb00
fixes "Hide menu bar" setting (#3961)
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-08-31 16:31:08 +12:00
Opender Singh
59827aad84 Merge branch 'release/2021.5.1' into develop 2021-08-31 09:52:45 +12:00
David Marby
d4048846aa version packages lib@2.3.2 2021-08-30 22:47:18 +02:00
David Marby
6d70ae098d Skip migrating collections that has a missing remote project instead of cancelling the migration (#3973) 2021-08-30 18:19:10 +02:00
David Marby
665abdcedc
Skip migrating collections that has a missing remote project instead of cancelling the migration (#3973) 2021-08-30 18:18:21 +02:00
David Marby
4d8710cbad Bump version to 2021.5.1 2021-08-30 18:16:09 +02:00
dependabot[bot]
e6e9e2a748
Bump jszip from 3.6.0 to 3.7.1 in /packages/insomnia-importers (#3902)
Bumps [jszip](https://github.com/Stuk/jszip) from 3.6.0 to 3.7.1.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/master/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.6.0...v3.7.1)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-27 12:15:21 -04:00
Opender Singh
39eb725a55
🧹 Remove axios, use generics for send-request in insomnia-testing (#3949) 2021-08-27 04:02:59 +00:00
Dimitri Mitropoulos
422d5a809c
adds markdown linting (#3931) 2021-08-27 15:44:01 +12:00
Hademumel
7135114768
add search for graphQL schemas (#3388)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-26 05:43:56 +00:00
Opender Singh
376ac03703 version packages lib@2.3.1 2021-08-26 08:15:00 +12:00
Opender Singh
1405c4c63c bump version to stable 2021-08-25 13:08:32 +12:00
Opender Singh
09e3e370a2 Merge branch 'release/2021.5.0' into develop 2021-08-25 13:06:30 +12:00
Dimitri Mitropoulos
7f7b9f5614
renames base project to default project in code and copy (#3939)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-25 12:51:40 +12:00
Dimitri Mitropoulos
2bf4370fd2
Inso -> Inso CLI (in docs) (#3936) 2021-08-23 20:21:19 -04:00
Opender Singh
4d0ec3f7b2 version packages lib@2.3.1-alpha.3 2021-08-23 12:55:10 +12:00
Opender Singh
a263881b5f bump to alpha.2 2021-08-23 12:49:38 +12:00
Dimitri Mitropoulos
f1808a4956
fixes outdated Insomnia Designer documentation references (#3927) 2021-08-20 17:50:41 +00:00
Opender Singh
774a8dc792
Space -> Project rename & update code-references (#3928) 2021-08-20 11:12:36 -04:00
Dimitri Mitropoulos
6e5f051902
Space Sync Error improvement (#3923) 2021-08-20 07:49:56 -04:00
Dimitri Mitropoulos
f3bfbf76aa
removes usage of deprecated graphql constant (#3926)
see: https://github.com/graphql/graphql-js/pull/2124/files
2021-08-18 16:38:38 -04:00
James Gatz
0ef92797cd
remove extra symbol (#3921) 2021-08-17 15:42:44 +02:00
Opender Singh
1dd421e4f0 version packages lib@2.3.1-alpha.2 2021-08-16 12:59:26 +12:00
Opender Singh
bbdd77d795 bump version 2021-08-16 12:57:29 +12:00
Opender Singh
afbbb0eaa3
Update mock implementation and move the segment event enum (#3913) 2021-08-12 22:35:43 +00:00
Dimitri Mitropoulos
407432aa02
adds eslint-config-helpers (#3912) 2021-08-12 18:01:54 -04:00
James Gatz
9b7dbe5011
Display the settings modal for remote spaces and update the copy for … (#3885)
* Display the settings modal for remote spaces and update the copy for deleting a remote space

* Improve confirmation dialog copy

* Replace baseSpace check with spaceHasSettings

* Use the strings constant for the space word copy

* Use the strings constant for the space word copy in the modal
2021-08-12 20:14:48 +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
James Gatz
82629046e9
Use markdown-preview__content classname in the compiled html container (#3910) 2021-08-12 20:56:23 +02:00
James Gatz
d3738df992
Fix footer subtext alignment in modals (#3908) 2021-08-12 16:52:30 +02:00
Opender Singh
63fd9bc3a5
Add segment metrics for plugin data context (#3903) 2021-08-12 03:04:48 +00:00
Opender Singh
18e7f49b43
Lint rules for equivalence and arrow func spacing (#3897) 2021-08-12 01:25:34 +00:00
James Gatz
632b8020f7
Display a checkmark for the selected sort option in the SpaceSortDropdown (#3896)
* Display a checkmark for the selected sort option in the SpaceSortDropdown

* Update packages/insomnia-app/app/ui/components/dropdowns/space-sort-dropdown.tsx

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

* Move the placement hacks for the dropdown icon and tooltip into a separate file

* Fix lint errors

Co-authored-by: Opender Singh <opender94@gmail.com>
2021-08-11 14:23:29 +03:00
Opender Singh
251287062d
Use useAsync (#3888) 2021-08-10 23:57:13 +00:00
Opender Singh
6a1abbf3db
Migrate collections into their remote space (#3876)
* initial implementation

* take vcs as a parameter (so it's easier to mock and test)

* update console log and exit early if not logged in

* add unit tests for migration

* add async filter and replace vcs find by root document

* lint fix

* fix memory driver and add test for hasProjectForRootDocument

* setup check on interval

* move migration logic and interval from main process to render process, because session state and a VCS instance dont work in the main process yet

* update test

* replace constructor with static class creator

* replace interval with login logout hook

* remove effect helpers

* empty commit to trigger CI
2021-08-10 23:35:05 +00:00
James Gatz
7cb1cbef0d
Prevent opening new windows in the app (#3874)
* Force auxclick (middle-click) events to be handled as click events

* Prevent opening new windows

* Formatting: Remove parentheses from arrow fn
2021-08-10 12:28:12 +03:00
Opender Singh
0debbe9c9c version packages lib@2.3.1-alpha.1 2021-08-10 16:17:55 +12:00
Opender Singh
72de1c2d8b bump version 2021-08-10 16:14:15 +12: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
8478fbc27f
adds descriptors to ordering labels (#3892) 2021-08-09 15:34:46 -04:00
Opender Singh
f48cef02bd
Update some ESLint rules (#3883) 2021-08-08 05:08:56 +00:00
Opender Singh
853cefca75
React ESLint rules (#3884) 2021-08-07 08:03:56 +00:00
Opender Singh
be2c347cf1
Pull a project into the correct space (#3873)
* use selector and improve types

* Loading remote projects now requires a team id; it is no longer optional

* activate with workspace or workspace id

* extract helper

* normalize graphql return type for a remote project to include the team

* pull into the space as defined by the project team id, not by the active space. If the space doesn't exist, create it

* use helper

* make testing easier by putting the active space name as the first breadcrumb

* fix tests

* add the active space into the title

* refactor and add tests

* remove todo
2021-08-05 23:30:31 +00:00
James Gatz
e683a02b16
[feat] Sort Dashboard Cards (#3850)
* Add sort order for space items

* Add ability to sort dashboard cards

* Fix TS errors

* Fix lint errors

* Add sort options for modified time

* Move workspace-card to a new file and use redux global state for persistence

* Remove ordering from the space model

* Use currying for the workspace mapping function and clean up types

* Expand testcase for activespace initialization

* Fix lint errors

* Remove date defaults and check if modifedLocally is defined

* Fixup: Use global selector for space order

* Fixup: Decouple space order initialization from active space

* Fixup: Use named exports in SpaceSortDropdown and rename handler in WrapperHome
2021-08-05 20:38:58 +03:00
Opender Singh
4dda066254
Update help text to disable cert validation (#3875)
* update help text

* fix snapshots
2021-08-05 10:39:26 +03:00
Giuseppe B
bae8195dfd
Fix for GraphQL - now autocomplete does not reset anymore (#3468) 2021-08-02 10:12:58 +00:00
Dimitri Mitropoulos
70d5797d94
use optional chaining (#3867) 2021-07-30 15:32:08 +12:00
Opender Singh
706b0f076a
Disable cert validation option while running tests in inso (#3492) 2021-07-30 03:10:19 +00:00
Dimitri Mitropoulos
5e00656807
adds jsx indentation rules (#3860) 2021-07-29 08:52:17 -07:00
Ben Walker
b8cc881d36
Populate refresh token from a client credentials OAuth2 call (#3794) 2021-07-29 05:35:03 +00:00
Opender Singh
8b011d68cf
Types for DnD, reuse and connect sidebar components to redux (#3853) 2021-07-29 05:12:59 +00:00
Opender Singh
7397370f4b
Use activateWorkspace action to activate a workspace (#3856)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-07-29 04:55:31 +00:00
NAVAL
21b02cc61a
add: support for plain PKCE challenge method (#3843) 2021-07-29 04:31:02 +00:00
Opender Singh
37815afd2e
Duplicate from dashboard and from settings (#3820) 2021-07-28 21:49:02 +00:00
Dimitri Mitropoulos
6431378392
[followup] Local GraphQL schema UX improvements (#3847) 2021-07-28 19:26:55 +00:00
David Marby
cecd95f0d7
Correctly log uncaught errors/unhandled promises (#3857) 2021-07-28 14:57:52 -04:00
Opender Singh
a12ccc3faf
Use strings in Space Dropdown (#3835) 2021-07-26 16:05:37 +00:00
Opender Singh
9eba2867a3
Create VCS instance even if no active workspace (#3836) 2021-07-26 15:18:12 +02:00
Opender Singh
2cfaab472d
Remove the share modal (#3846) 2021-07-26 22:05:45 +12:00
Opender Singh
7abde2a017
Ensure a base space always exists (+ fix gRPC sub-environments) (#3819) 2021-07-26 00:49:34 +00:00
John Chadwick
eb67958846
Refactor markdown preview to minimize unsafe HTML. (#3842)
Fixes INS-805.
2021-07-23 12:55:47 -07:00
Dimitri Mitropoulos
0178533e52
Feat/eslint import order (#3782) 2021-07-23 11:04:56 +12:00
Dimitri Mitropoulos
92206c4f93
UI for Local/Remote spaces (#3824) 2021-07-22 10:56:14 -04:00
Opender Singh
fcd546b005
clear models (#3830) 2021-07-22 12:21:41 +00:00
Opender Singh
b7ca6366d0
git clone into the active space (#3775) 2021-07-20 01:05:08 +00:00
Daniel H
45000573c4
Add text/plain body type (#3793)
Co-authored-by: Daniel H <>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-07-19 22:34:01 +00:00
Grégoire Lodi
7831682278
Load local GraphQL schema (#3803)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-07-19 22:02:12 +00:00
John Chadwick
10c9940628
Implement color scheme badge artifact workaround. (#3823)
* Implement color scheme badge artifact workaround.

Color scheme badges have a small gap artifact caused by an interplay
between anti-aliasing and alpha blending. Here, we use pseudo-classes to
ensure one opaque pixel of intersection between the shadow border and
the color badge.

* Improved workaround for color badge bug.

This improved workaround has fewer limitations and reduces visual
artifacts during transitions.

* Don't fade ring when hovering in OS theme mode.

This tiny change makes the transition look a lot better.
2021-07-19 12:44:24 -07: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
Opender Singh
d241093ec2
Import into the active space (#3795) 2021-07-14 00:10:49 +00:00
Dimitri Mitropoulos
ca0f6eb9d0
Improvements to theme selection (#3506) 2021-07-13 23:49:32 +00:00
Opender Singh
769d6c16d4
Remove checkbox background (#3812) 2021-07-13 14:45:47 -07:00
Johan Hammar
60ef1a83f9
Add menu separators in view and help menus (#3802) 2021-07-11 19:28:35 +12:00
Florian Hämmerle
92e0970281
response-timer: use tabular-nums for uniform width (#3800) 2021-07-09 17:03:11 -07:00
Opender Singh
bbadeac090 Merge branch 'hotfix/INS-782-exportFormat' into develop 2021-07-08 09:16:59 +12:00
Opender Singh
72dd8f28d7 bump version 2021-07-07 11:48:23 +12:00
Opender Singh
ff49cb3093 don't call done callback unless it exists 2021-07-07 11:47:54 +12:00
Opender Singh
d5a1f44f15
Don't auto create a workspace if none exist (#3776) 2021-07-07 08:30:50 +12:00
Opender Singh
3e8b5b1c20
Force to design workspace when coming from git (#3774) 2021-07-05 21:22:27 +12:00
Opender Singh
17de9ef556 convert from map to find 2021-07-02 09:04:06 +12:00
Dimitri Mitropoulos
9f3705a8a8
adds eslint rule for requiring default case statements (#3779) 2021-07-01 20:47:10 +00:00
Opender Singh
b84bb5d6e7
Update packages/insomnia-app/app/ui/redux/modules/global.tsx
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-07-02 08:20:30 +12:00
Opender Singh
9b14dc6546 bump version 2021-07-02 08:11:16 +12:00
Opender Singh
4233f1565c
Update packages/insomnia-app/app/ui/redux/modules/global.tsx 2021-07-02 08:06:39 +12:00
Dimitri Mitropoulos
ef840cd516 hotfix - INS-782 2021-07-01 15:52:35 -04:00
Dimitri Mitropoulos
d87612c032
removes storybook (and related dependencies) from insomnia-app (#3502) 2021-07-01 08:15:19 -04:00
Dimitri Mitropoulos
9c0f7660dc
Base Space export (#3479) 2021-06-30 15:33:02 +00:00
Ross McDonald
c24d08ad66
Update Spectral to latest release (#3179) 2021-06-30 15:11:20 +00:00
Opender Singh
837cadebaf
Remove the need for an active workspace to always exist (#3494) 2021-06-30 07:47:17 +00:00
Opender Singh
3998e8b489 Merge branch 'release/2021.4.0-stable' into develop 2021-06-30 11:03:39 +12:00
Opender Singh
c2c41f3d84 version packages lib@2.3.0 2021-06-29 21:44:26 +12:00
Opender Singh
a4c7b110ec bump version to 2021.4.0 2021-06-29 20:39:27 +12:00
Opender Singh
5c32700344
ensure teamId is sent for push and pull (#3477)
* ensure teamId is provided for push and pull

* refactor

* Fix tests

* fix build

* fix lint

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-06-26 07:32:29 +12:00
Nick Hackman
a03c098974
feat: introduce request group settings (name, description, and move/copy) (#3350) 2021-06-25 10:21:07 -04:00
Darren Jennings
5ddd5420b3
doc(code-snippets): update link to use Kong org (#3504) 2021-06-24 09:35:48 +12:00
Opender Singh
0c97fd7a88
Use safe state and reducer dispatch hooks (#3483) 2021-06-23 12:40:48 -04:00
Opender Singh
af8e59b4ea version packages lib@2.3.0-beta.4 2021-06-23 15:54:20 +12:00
Opender Singh
6f21662f00 bump to beta.2 for qa 2021-06-23 12:11:09 +12:00
Dimitri Mitropoulos
bc98a13fe3 updates codemirror (#3495) 2021-06-23 11:37:11 +12:00
Giuseppe B
062167a9d6 Introducing tooltip helper for Vim mode on MacOS (#3476)
* Introducing tooltip helper for Vim mode on MacOS

* Fix article link and update tooltip text

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-06-23 11:36:55 +12:00
Eric Reynolds
309cb85c72 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-23 11:35:07 +12:00
Amaan Iqbal
566ca93bad Add response time in api response to test latency (#3465)
* Add response time in api response to test latency

* linting fixes

Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com>
2021-06-23 11:34:27 +12:00
Giuseppe B
1147f273d8 Fix dollar not correctly handled on URI (#2862)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-06-23 11:33:50 +12:00
Dimitri Mitropoulos
bcad8691a7 fix CodeMirror crash (#3451) 2021-06-23 11:33:18 +12:00
Dimitri Mitropoulos
dcd2560578 updates node-libcurl to 2.3.3 (#3450) 2021-06-23 11:30:32 +12:00
Dimitri Mitropoulos
7733d6b4fa clears PureComponent error (#3449) 2021-06-23 11:30:05 +12:00
Eric Reynolds
f72fca6a7b Margin control to insomnia-component styled buttons (#3429) 2021-06-23 11:29:21 +12:00
Dimitri Mitropoulos
7861d7a505 [o2k] all Kong entities have should tags (#3428) 2021-06-23 11:28:59 +12:00
Dimitri Mitropoulos
c464e05728 updates codemirror (in anticipation of upcoming PR bugfix) (#3405)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-06-23 11:27:55 +12:00
Eric Reynolds
4c1475936c INS-674 - First pass at making the send button more visible (#3414)
* INS-674 - First pass at making the send button more visible

* [wip] adds rect for send button

* Update colors in the SVG to match send button

* Update the gRPC send button to also use theme colors

* Adding left margin to send button

Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-06-23 11:26:34 +12:00
Opender Singh
611d73804f
Automatically enable sync for collections created in a remote space (#3474) 2021-06-22 20:45:30 +00:00
Dimitri Mitropoulos
82715ba975
updates codemirror (#3495) 2021-06-22 10:56:20 -04:00
Giuseppe B
aeabbfd813
Introducing tooltip helper for Vim mode on MacOS (#3476)
* Introducing tooltip helper for Vim mode on MacOS

* Fix article link and update tooltip text

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-06-17 09:32:23 -04: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
Opender Singh
58160e82bc
Filter remote collections by the active space (#3456)
Co-authored-by: David Marby <david@dmarby.se>
2021-06-15 04:21:06 +00: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
2471147642
🧹 Convert VCS to named export and rename file (#3471)
* rename file from index.ts -> vcs.ts

* convert to named export

* fix jest.mock path for moved file

* update class mock

* update mocked function
2021-06-15 01:28:44 +12:00
Amaan Iqbal
6df749dbdc
Add response time in api response to test latency (#3465)
* Add response time in api response to test latency

* linting fixes

Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com>
2021-06-11 16:32:21 -07:00
Giuseppe B
b0919ef7a4
Fix dollar not correctly handled on URI (#2862)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-06-11 22:46:51 +12:00
David Marby
3362f30de6
Make _getOrCreateRemoteProject able to specify what team the project should belong to (#3462)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-06-11 14:54:48 +12:00
Dimitri Mitropoulos
9cb4f2a55a
fix CodeMirror crash (#3451) 2021-06-10 16:15:37 -04:00
Dimitri Mitropoulos
1f0612a418
adds redux-devtools back (#3460)
* adds redux-devtools back

I had to delete anything under `~/.config/insomnia-app/extensions/lmhkpmbekcpmknklioeibfkpmmfibljd*` to get this to work.  Apparently there's some old state left around from the prior version or something when it was broken that prevents a migration?

* improves logging (partly to compensate for bug in upstream)

see: https://github.com/MarshallOfSound/electron-devtools-installer/issues/180
2021-06-09 20:36:48 -04:00
Opender Singh
4daa44e370
Create a workspace in the active space and filter dashboard for active space (#3446) 2021-06-09 07:26:29 -04:00
Dimitri Mitropoulos
6f6fa0894f
fix pluralization of document in bottom bar (#3458) 2021-06-08 21:02:43 +00:00
Dimitri Mitropoulos
5774a0ac09
updates node-libcurl to 2.3.3 (#3450) 2021-06-07 12:15:59 -04:00
Dimitri Mitropoulos
91ab07966b
clears PureComponent error (#3449) 2021-06-07 07:21:45 -04:00
Opender Singh
f625b34a77
Fetch and store remote spaces (#3441)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-06-04 19:20:16 +12:00
David Marby
0d02db0679
Make it possible to get remote projects filtered by team (#3445) 2021-06-03 22:44:52 +02:00
Opender Singh
946deb5ae2
Increase smoke test spectron timeouts (#3440) 2021-06-03 20:43:15 +12:00
Opender Singh
83f6c2051c Improve modal test util types (#3435) 2021-06-03 20:24:53 +12:00
Eric Reynolds
fa23003de7
Margin control to insomnia-component styled buttons (#3429) 2021-06-02 11:47:23 -04:00
Dimitri Mitropoulos
3ba7b880b6
[o2k] all Kong entities have should tags (#3428) 2021-06-02 08:55:31 -04:00
Opender Singh
36b2462201
Create, rename and delete a local space (#3433) 2021-06-02 13:46:26 +12:00
Opender Singh
d619b8d84e
convert strings to a single object (#3432) 2021-06-01 08:52:41 -04:00
Dimitri Mitropoulos
ed63c7b458
updates codemirror (in anticipation of upcoming PR bugfix) (#3405)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-28 08:22:27 +12:00
Opender Singh
f18542ffe9
Add Space selector, with the logic to select a space (#3427) 2021-05-28 08:02:16 +12: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
Eric Reynolds
7cb1051634
INS-674 - First pass at making the send button more visible (#3414)
* INS-674 - First pass at making the send button more visible

* [wip] adds rect for send button

* Update colors in the SVG to match send button

* Update the gRPC send button to also use theme colors

* Adding left margin to send button

Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-27 21:41:25 +12:00
Opender Singh
deda7a37b7
Add space data model (#3424) 2021-05-27 15:59:54 +12: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
Dimitri Mitropoulos
2bf4586dc7
[o2k] copy plugin objects as is (and respect enabled flag) (#3419)
* clears all errors in tests, enables overrides for spec generators

* removes copy/pasta in tests, uses spec generator, removes useless async

continuing from the last commit, but separated out for easier review

* consolidates openapi x-kong extension to one place, uses consistently

these were used for some things, not used for others, exported in some places, not exported in others.  now it's uniform and we can look up references for each type.

* adds failing test for ticket

* only adds `enabled` where it was specified

* allows adding passing top-level properties to config

now, the line that was there specifically for `config` is redundant.

* adds tags to test result per review feedback

* removes unnecessary generic

for some reason, this didn't error before, but now it is.

* removes unnecessary argument

this failed on the CI with:

openapi-2-kong: FAIL src/generate.test.ts
openapi-2-kong:   ● Test suite failed to run
openapi-2-kong:     src/generate.test.ts:90:58 - error TS2769: No overload matches this call.
openapi-2-kong:       Overload 1 of 2, '(src: string, options?: (ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined): any', gave the following error.
openapi-2-kong:         Argument of type '"utf8"' is not assignable to parameter of type '(ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined'.
openapi-2-kong:       Overload 2 of 2, '(src: string, reviver: Reviver, options?: (ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined): any', gave the following error.
openapi-2-kong:         Argument of type 'string' is not assignable to parameter of type 'Reviver'.
openapi-2-kong:     90       const parsedSpec = YAML.parse(dcFixtureFileString, 'utf8');
openapi-2-kong:                                                                 ~~~~~~
openapi-2-kong:     src/generate.test.ts💯59 - error TS2769: No overload matches this call.
openapi-2-kong:       Overload 1 of 2, '(src: string, options?: (ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined): any', gave the following error.
openapi-2-kong:         Argument of type '"utf8"' is not assignable to parameter of type '(ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined'.
openapi-2-kong:       Overload 2 of 2, '(src: string, reviver: Reviver, options?: (ParseOptions & DocumentOptions & SchemaOptions & ToJSOptions) | undefined): any', gave the following error.
openapi-2-kong:         Argument of type 'string' is not assignable to parameter of type 'Reviver'.
openapi-2-kong:     100       const parsedSpec = YAML.parse(k8sFixtureFileString, 'utf8');
2021-05-25 16:05:52 -04:00
Josh Soref
9006babd38
fix spelling (#2976) 2021-05-25 12:16:43 -04:00
Dimitri Mitropoulos
5cd52b2bc9
Fix: o2k optional tags signatures (#3416)
* removes unnecessary plugin indirection

there is no reason to have functions that literally call other functions with the same argument.  well... maybe not _no_ reason, but the one valid reason I can think of (to satisfy an abstraction's constraints) is not met here.  This serves no documentational value either because it creates indirection rather than showing what it's really doing (which is, to generate a plugin).

* reworks generatePlugins and generatePlugin signatures

adds Entry, removes optional `tags`, curries

* use option parameter syntax for generateRequestValidatorPlugin

also, many errors were occurring for OA3Operation.responses not being passed over and over again, leading me to believe it's valid to do so.

* ensures `generateOperationPlugins` has tags, uses option parameter

* removes flowtype comments

* updates readme examples along with readme function signatures

parseSpec and generate were `async` but never awaited

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-25 08:26:42 -04:00
Opender Singh
2fe35d5314 update lockfile 2021-05-25 19:08:43 +12:00
Opender Singh
88ed96fc47 merge release branch with develop and resolve conflicts 2021-05-25 09:30:09 +12:00
Opender Singh
f2609fcaa9
show both name and uri during import through insomnia protocol (#3407)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-05-25 09:25:13 +12:00
Dimitri Mitropoulos
42341e6e6e
fixes 'previewHidden' of undefined error (#3409)
* readability improvements and reduced indirection

* adds type for handleShowModifyCookieModal

* correctly types wrapperProps property, thereby fixing bug.

if you add `console.log({ previewHidden, propsOne: this.props.wrapperProps.activeWorkspaceMeta });` to the third line of `_renderPreview()` you'll see that `activeWorkspaceMeta` is indeed, sometimes, `undefined.

Also, there's no reason to use `await` on `this.setState`.  I didn't find any more of these in the codebase, I just found this one.

* adds type for swaggerUiSpec

* undoes lifting props to state

almost always, this is done for performance reasons, but I removed it the app is working pretty quick-and-snappy for me without needing to introduced duplicated application state and keep track of it.

I went ahead and measured it before and after this commit (using performance.now):

before = [
  1.93500000750646,
  1.149999996414408,
  0.9499999869149178,
  0.9950000094249845,
  0.8650000090710819,
  1.560000004246831,
  1.5699999930802733,
  0.8450000023003668,
  1.4550000196322799,
  1.3299999991431832,
  1.3050000125076622,
  1.4099999971222132,
  1.3099999923724681,
  1.3100000214762986,
  1.1999999987892807,
  1.0099999781232327,
  0.830000004498288,
  1.2449999921955168,
  1.2500000011641532,
  1.4349999837577343,
]

after = [
  2.9400000057648867,
  2.449999999953434,
  2.33499999740161,
  2.2849999950267375,
  1.7700000025797635,
  1.8149999959859997,
  2.1249999990686774,
  1.9150000007357448,
  2.074999996693805,
  1.9899999897461385,
  2.0200000144541264,
  2.869999996619299,
  2.1450000058393925,
  2.33499999740161,
  2.130000008037314,
  2.119999990100041,
  2.144999976735562,
  2.130000008037314,
  2.380000009201467,
  2.8999999922234565,
]

> R.mean(before)
> 1.2480000004870817

> R.mean(after)
> 2.243749999080319

> R.median(before)
> 1.2775000068359077

> R.median(after)
> 2.137499992386438

So basically, considering a 16ms render rate (i.e. 60hz), 1ms saved by lifting props to state makes no difference in application performance.

This is committed separately so that if there's any reason we want to keep the prior implementation, we can just still do so.
2021-05-24 10:14:00 -04:00
Dimitri Mitropoulos
8fb789f14d
[o2k] fix: kubernetes TLS implementation is (very) wrong (#3410)
* updates Kubernetes types to actually match Kuberenetes Ingress/v1beta1 API

* checks type of result in tests

among other cosmetic changes

* enables strict mode in o2k (but leaves bug it uncovered that this PR fixes)

I really do need this to complete the task at hand.  For example, there was an existing error in `ingressDocWithOverride`:

```
Type 'string | null | undefined' is not assignable to type 'string | undefined'.
  Type 'null' is not assignable to type 'string | undefined'.ts(2322)
kubernetes-config.ts(36, 3): The expected type comes from property 'path' which is declared here on type 'K8sHTTPIngressPath'
```

That is caught only by strict mode.  This is literally what I am fixing in this PR, so it seems like as good a time as any.  Thankfully, only took me ~30 minutes to do because it was already super close.

* fixtures for `kong-for-kubernetes`

* index exporters for actual exports

when I made these files, I didn't understand that the lower-level helpers are not actually exported by the library, therefore there's no reason to have these index.ts files.

Furthermore, the types file could use it's own for the same reason, because those types _are_ actually exported.

* fixes bug: TLS is now an array and a child of K8sIngress.spec

* updates 'yaml'

for some reason I cannot explain, suddenly the CI is failing constantly because of this package.  https://github.com/Kong/insomnia/runs/2639615988

The only `yaml` exports we use in`o2k` are `parse` and `stringify` and we don't re-export it in any way.  Therefore, we should be safe to update it (many other projects in the monorepo are on different versions anyway).  This recent version is written purely in TypeScript, so we don't need the types packages anymore.

* adds a few more docs
2021-05-24 08:23:51 -04:00
Dimitri Mitropoulos
7860be36e3
adds logging for when setting default protocol client fails (#3408)
* adds logging for when setting default protocol client fails

https://www.electronjs.org/docs/api/app#appsetasdefaultprotocolclientprotocol-path-args

* logs `isDefaultProtocolClient` and `getApplicationNameForProtocol`
2021-05-23 22:22:22 -04:00
Dimitri Mitropoulos
33460a4c44
fixes error code used when build fails (#3402) 2021-05-20 09:50:10 -04:00
Dimitri Mitropoulos
3605bc17cc
Feat/o2k improvements (#3396)
* makes this `yaml` import match all others

for better or for worse, until we upgrade `YAML` (it's now written in TypeScript) we should probably aim for consistency.

* adds overloads so that types of package exports

it would be FAR preferable to use an object with the arguments instead because then we don't have to fall into all the traps that come with overloads, but I am avoiding changing the actual call signature of these function.

* fixes and updates types

* corrects mispelling

* removes shim types and exports actual types from openapi-2-kong

we had everything in place for the rest of the build pipeline to consume these types, but were missing the main exports at the root index.ts file

* use actual openapi-2-kong types now that they're available

* use existing variable for filePath

* extracts o2k-specific helper data to live in o2k

evidently, this data is useful for the usage of o2k, therefore o2k should be the thing exporting it.

* use KubernetesManifest for name of kubernetes manifest union

when first naming this, I didn't have much more context than the property name (documents), so after taking a look,  it's clear that these are kubernetes manifests

* removes attempt at correctly typing overloads

I will return to this, and so I'm leaving it here in a commit rather than squashing it out, but I can't see a way to get it to work without changing the signature in a big way.

* fixes error (now that there are yaml types)

* makes `K8s` vs `Kubernetes` type terminology consistent

part of the motivation for this is that there are significant things in common between the two kinds of configs, making them closer in form is therefore ideal.

* updates mistake in name per review feedback
2021-05-19 22:49:50 -04:00
Opender Singh
9c5742ae73 publish npm packages lib@2.3.0-beta.3 2021-05-20 13:12:04 +12:00
Opender Singh
6b8cf10689 bump to beta.1 2021-05-20 13:05:26 +12:00
Opender Singh
c78f019543 dont lock spectral and bring back prepare script 2021-05-20 12:56:49 +12:00
David Marby
13a45ff621
Fix the ca certs import (#3404) 2021-05-20 10:16:55 +12:00
Dimitri Mitropoulos
fa72e0977b
reverts changes to main.min.js artifact location (#3401) 2021-05-19 15:00:12 -04:00
Dimitri Mitropoulos
a060562697
Fixes clean scripts (#3400)
* removes (unused and unwanted) husky scripts

might as well, it's only taking up space for nothing in our node_modules

* adds `lerna run clean` to main clean script

we didn't have `clean` scripts in the packages before, but now that we do, it makes sense to.... hahah... _use them_.

Note that it's important that we run the package scripts first, because otherwise after the rimraf (which is now at the end) there's no `lerna` left to call.

* adds missing clean script to insomnia-components

although it looks like there are other changes at first glance, there shouldn't be any behavioral differences now except the fact that build will always generate SVGs (which, was an oversight/bug that it wasn't before).  We need this to occur so that when we clean it removes the things that were built, and when we build it replaces those same things.

* adds a postclean script to insomnia-app like every other package

I'll be honest, I'm not entirely sure what the reason is for having `postclean` scripts in every package with (mostly) `rimraf dist` (i.e. instead of just including that in the main clean script at the end), but that's clearly the convention - so for now I'm just following it

* removes references to old build artifact location

well, except for the .gitignore.  I guess I could remove it from the .gitignore, commit it, commit deleting it, which would clear it from everyone's projects... but I'll just leave it there for a bit in the .gitignore.  hopefully people either start fresh or run `clean` from the root every once in a while, which will clean this up.

After a few weeks or months we can remove these two references (in the package.json.clean and .gitignore) altogether if we feel like it.

* removes unused reference in config to build artifact

I searched high and low for every place I could find that consumes this file and none of them seem to use this field anyway.  And even if they did, it's wrong.  In fact, it's been wrong for a while I'd guess because (relative to the root, if that's what it was intended to mean).

As far as I can tell this was added c6a7c4d682 (diff-6918d2464ad7fb0f3e985d8587ce0c4218eeba6c6dea60c58642251f4db99ecb)

So I even checked out that commit and looked at all usages of that file at that time and it was, there too, unused (so far as I can tell).  Appears to be a case of wishful thinking that it'd be useful for something, not sure.
2021-05-19 09:56:10 -04:00
David Marby
34b8c17260 publish npm packages lib@2.3.0-beta.2 2021-05-19 14:50:58 +02:00
David Marby
65a53f45fd Fix .npmignore 2021-05-19 14:37:56 +02:00
Dimitri Mitropoulos
860565f3a6
fixes react controlled input error (#3391)
* fix ts-expect-error

* removes useless await

see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/await-thenable.md

We're not quite ready to have this rule on everywhere, but in this case I can see that it's correct to follow.

* add comment about magic number

and moves the assignment to the one place it's used

I opted not to make a ticket because we are recently running out of tickets and this seems to be a relatively small thing @reynolek please confirm this is the correct course of action.

* initialize ref to reflect reality (and include actual type)

* fixes root cause of error, inlines one-liners

the error with the type of `_handleInputColorChange` was due to `onChange` being the wrong prop to use (where `onChange` is the one we want).

* use onChange instead of onInput to access correct types

ultimately, since react's behavior diverged from the DOM behavior to match onInput, this should have no effect on any functionality since react assigns this event to `onChange` anyway.  see https://github.com/facebook/react/blob/master/fixtures/attribute-behavior/src/attributes.js#L2089

* clears remaining ts-expect-errors in file

* updates fallback call per review feedback
2021-05-19 08:24:01 -04:00
Opender Singh
5fa8f0069d
Enable ESLint & TS for smoke tests (#3397)
* remove babel and add configs

* add ts-node

* lint scripts

* eslint override

* remove type module

* add expect errors

* update js files to ts

* fix electron import

* remove errors

* update readme

* add build step

* typesync

* add eslintignore
2021-05-19 07:49:48 -04:00
Opender Singh
a3a6c0fdfd
fail if non zero exit code during build (#3399) 2021-05-19 23:41:50 +12:00
Opender Singh
b93d963712 publish npm packages lib@2.3.0-beta.1 2021-05-19 18:51:57 +12:00
Opender Singh
0855462a92 fix insomnia-importers 2021-05-19 18:49:45 +12:00
Roger Guasch
3972bb50ab
Theme preview tile for OS themes (#3387)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-19 18:14:11 +12:00
cobwebsonsale
212ca5d764
Allow switching sub-environment inside Manage Environment modal (#2891)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-19 17:46:18 +12:00
Opender Singh
d713d27578 add missing await in release script 2021-05-19 10:22:03 +12:00
Opender Singh
b2040dacd2 publish npm packages lib@2.3.0-beta.0 2021-05-19 09:21:52 +12:00
Dimitri Mitropoulos
6e073c8a38
use same array-type rule, project-wide (#3395) 2021-05-19 08:32:18 +12:00
Opender Singh
50d72b8991 bump version 2021-05-18 15:56:38 +12:00
Dimitri Mitropoulos
06d099f9d3
fixes redux-devtools-specific error, "sync" is not available (#3390)
until https://github.com/reduxjs/redux-devtools/pull/711 is available to us, our best course of action is to remove it for now
2021-05-17 19:26:52 -05:00
Dimitri Mitropoulos
e161f45b06
ResponseTimer callstack exceeded (#3386)
* no default export (prepping for hooks)

* makes logic match other implementation

note that above in `componentDidUpdate` it uses `<= 0`, whereas here it uses `> 0` but then only checks for false.

Also, logically, there's no way to ever get `aria-hidden="true"` since it returns early so that entire attribute can just be removed.

* removes fake private class member syntax

this is moving to hooks anyway, but in the meantime...

* undoes calling identical code twice in a row...

* condenses class methods to prepare for hooks

* hooks refactor

fairly faithful to the original, this attempts to just refactor to hooks.  this exposes, again, the fact that we're setting state within useEffect.

* removes 200 ms offset for response time

so that, now, you know, the time reported is the actual time.

* adds logging for response timer lage

* removes timer logging and `responseTime` prop after PR discussion

it's definitely fruitful, but the fix for the callstack exceeded is what needs to be the focus.

* removes shadowed variable per PR feedback

* reinstates and documents 200ms compensation

* add delay endpoint to example server

* Update packages/insomnia-app/app/ui/components/response-timer.tsx

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-17 18:58:05 -05: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+lityG4LlvN6EAPIQyOyCgRuIFhgyIjVsxlZM8gAvPnjxeWVF208xXB9+MhByGZQmgARugIAwaKYLCFcCBNKdQDBoFBeGcQDxkABJZBOOAxZAw5AAdzgJmMmmM5hQwFOsKc0AJwCwEAKRmIRyw7ggADo4uIyrRzjNORMSss8JFprk3h9kHI+syZf5DrkTshhQB1KBwMwWKA0TIXADatGFtAAundkFNXsh3mBPncAHzfX7-IEgsHkyEMvGwkIgBFQJFouCojFYnEofFEklgMkQynUsC0qD0xnytkc7maXnGp6i8XW21wGV9MaFJ4arU6q0zKV20uKgi-JHifhiZAwfgga65SIxKBxBJJTvdi6q4oAJhrNToDSayw6vW6nX6g2GowII57eQmU5eMzm2k2Szaq02NA2+m2uw3W7Hu+nIDr9rFLoBwNB4IpUJ9cP9iOREM0UxbFcSjYlSU9BNIiTOkGRQMpvQAAxDEwkOMWlIhAdASX3XIAH5iHSZAuxuBkQFoU43EDCAslVKlk05OUjAzEEsxzFs2zsDsu23fM8KfG1pVlRU2VOXdK21aAvwsTQYHHMAJwtR9ny+W4nVfYJXQ-D14x-GE-wDIMUWA8MwLJaNIL0qkYOTVMmRY5VMx5Pld2QSSdVoBtHkUlShPrfZAmCWDGUJTQoB0NpsFVAAPCwsl4KgmyCFLUrS9KMsyrKUoIAVciFJ4+TnZo2jFMhKFqRhmFYEtZHVTUpKgIrGhK75yssegmBYNhZTqydmvnUrSAoDqqu62qCAkhrq3qFr83ayqupq3rFDykACsmWhLwgE9vnjWpnFcdxiggLwfB6uV6qraA+W23axX2xwXDcDxTu8XwS0m-qtqPRZ80e2hDpek6zo+kSpuupqfrWe6oIO57js8d6LqCjCdpQAAqHgyQMjGwoiqLcAgOLaMgHgkuyymqepoJkuQAABMAsAAWmJ+KwFZwNwuQQEEg7YAoBVOxW24cBcu3DbymhzZ-opeGjte0GUd+RmWbZ0nOYBKAeb5mABaFiRBAgMWrsa27fqkIaAaBxG3vOz6VaZ1mSayTXud5tE9cF05haNk3vu22WLHl4GkftkTHbVl2OcRd3df1n3DdFsAvsUjybul-Qg46m3FeRz66dV532bd7WPdIWjcmDJPjZTtbJfNmHs5D23meccO5Uj4uNdjsu+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
Opender Singh
5525e6c87f
Allow inso generate config to specify tags (#3381)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-05-14 11:30:44 +12:00
Dimitri Mitropoulos
5a1f793547
adds mocha polyfill to clear it.each errors (#3383) 2021-05-13 16:45:17 -05:00
Opender Singh
1d0f6faf42
check the length of react children correctly (#3380) 2021-05-13 09:01:06 -04:00
Opender Singh
1ff28abb11
chore: add repository, bug urls, and license to plugins missing it (#3379) 2021-05-13 07:31:33 -04:00
Dimitri Mitropoulos
5fe277ee02
remove duplication of all jest configs (#3375)
* use jest-preset for all but app

* separate properties that are the same as the preset

for some reason, it doesn't work.  you get:
```
Preset ../../jest-preset.js not found.
```

This needs to be investigated.

* removes unused/unneeded npm script in `app`, `test:jest`
2021-05-13 07:29:02 -04:00
Roger Guasch
3b757251c9
Improve spec preview code font color (#3369) 2021-05-13 18:05:27 +12:00
Opender Singh
162ca5aec0
Fix vercel deployments (#3378) 2021-05-13 10:49:58 +12:00
Dimitri Mitropoulos
9faf0b3fbb
sanitize all electron.shell.openExternal calls (#3336)
* sanitize all electron.shell.openExternal calls

* adds lint rule to disallow future usage of `openExternal`

* updates to use URL constructor per review feedback
2021-05-12 16:20:52 -04:00
Dimitri Mitropoulos
78c4a18f0b
makes all package.json author fields consistent (#3338)
* makes all package.json author fields consistent

* adds Preston Alvarado as a contributor per review feedback.
2021-05-12 08:31:07 -04:00
Dimitri Mitropoulos
d9677611f5
enables react-redux devtools (#3373)
* add react and redux devtools

* convert to try-catch

* updates package-lock.json

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 08:22:40 -04:00
Josh Soref
d0d3f27e90
Consistently use infinity (#3345)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2021-05-12 08:12:58 -04:00
dependabot[bot]
f1a78d0650
chore(deps): bump lodash in /packages/insomnia-importers (#3363)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 08:00:20 -04:00