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
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+BmZ8xQD0AcjK0PBIyJoAbt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te0GUd+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
Opender Singh
26a94a695a
keep the previous svgr assets dir in gitignore ( #3372 )
2021-05-12 07:58:22 -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
Opender Singh
14ebadd8f9
publish npm packages lib@2.2.35
2021-04-29 08:50:33 +12:00
Opender Singh
663198c548
chore: bump version to 2021.3 stable
2021-04-29 08:47:18 +12:00
Opender Singh
dbdfaaa7a3
chore: bootstrap
2021-04-29 08:45:12 +12:00
Opender Singh
2da4fe8471
chore: update o2k docs ( #3332 )
...
Co-authored-by: Thijs Schreijer <thijs@thijsschreijer.nl>
2021-04-29 08:33:44 +12:00
Opender Singh
69d7514095
Tags for all of the plugins! ( #3328 )
...
* feat: add tags to regular plugins
* feat: plugin support for request validator plugins
* feat: add tags to security plugins
* feat: security plugins detecting the expected property
* chore: don't force publish and bump version
* publish npm packages lib@2.2.35-beta.4
2021-04-28 08:14:49 +12:00
mikaello
05b5c3d041
Add metadata fields to openapi-2-kong package.json ( #2802 )
...
* add metadata fields to openapi-2-kong package.json
* fix issue url in openapi-2-kong package.json
Format according to npm docs: https://docs.npmjs.com/cli/v6/configuring-npm/package-json#bugs
* improve repo-field in openapi-2-kong package.json
See structure in NPM docs: https://docs.npmjs.com/cli/v6/configuring-npm/package-json#repository
* Update packages/openapi-2-kong/package.json
Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2021-04-27 19:08:42 +12:00
Thijs Schreijer
28db994bb7
[o2k] fix parameter default styles ( #3327 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-27 13:18:04 +12:00
Thijs Schreijer
a5f67bbb35
[o2k] fix name generation ( #3318 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-27 13:00:08 +12:00
Thijs Schreijer
84e47da5f2
[o2k] fix targets not getting tags ( #3320 )
2021-04-27 11:57:09 +12:00
Dimitri Mitropoulos
cde2516a8b
strip_path
explicit support, and x-kong-route-defaults
support (#3273 )
...
* x-kong-{route, upstream, service}-defaults, strip_path
supports selecting but not merging defaults
Co-authored-by: Thijs Schreijer <thijs@thijsschreijer.nl>
2021-04-26 12:17:02 -04:00
Thijs Schreijer
e4c7ed2629
split url
into components on a service
( #3314 )
...
* split url into components on a `service`
also fixes a bug to use the upstream name in a service instead
of an actual hostname from the 'servers' block
* fix parseUrl to not return 'null:null'
* do not add targets if there is no hostname
previously a server with just a path; '/some/path' would generate
a target 'null:null'.
* Update packages/openapi-2-kong/src/declarative-config/services.js
* Update packages/openapi-2-kong/src/declarative-config/services.js
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-23 14:41:27 +12:00
Bruno Fusieger
1ea4b4b81f
Fix license metadata ( #3233 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-23 08:21:22 +12:00
Opender Singh
4d07a0cfda
chore: bump version to beta.1
2021-04-22 11:25:45 +12:00
Opender Singh
141685488d
publish npm packages lib@2.2.35-beta.3
2021-04-22 11:14:08 +12:00
Opender Singh
44814d44c7
update versions
2021-04-22 11:12:25 +12:00
Opender Singh
6022ea2493
publish npm packages lib@2.2.35-beta.2
2021-04-22 11:10:30 +12:00
Opender Singh
64145a129e
chore: bump versions in insomnia-app
2021-04-22 11:07:33 +12:00
Opender Singh
d90328e406
publish npm packages lib@2.2.35-beta.1
2021-04-22 11:01:51 +12:00
Opender Singh
8c6fcd8312
publish npm packages lib@2.2.35-beta.0
2021-04-22 10:02:24 +12:00
Opender Singh
a8bc2d3bd9
chore: update packagelock
2021-04-22 09:59:16 +12:00
Opender Singh
5e71430587
publish npm packages lib@2.2.34-beta.0
2021-04-22 09:43:12 +12:00
Opender Singh
f03d60cd8d
chore: bump to beta.0
2021-04-22 08:35:23 +12:00
Mike Ellan
70738103d7
Custom & default tagging for plugins ( #3286 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-21 12:34:39 +12:00
dependabot[bot]
1f03fd2a94
Bump xmldom from 0.1.27 to 0.5.0 in /packages/insomnia-xpath ( #3188 )
...
Bumps [xmldom](https://github.com/xmldom/xmldom ) from 0.1.27 to 0.5.0.
- [Release notes](https://github.com/xmldom/xmldom/releases )
- [Changelog](https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/xmldom/xmldom/compare/v0.1.27...0.5.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-20 14:35:24 +12:00
Ramón Márquez
7e745c6bf6
Plugin API: Add getHeaders method to context.response ( #3289 )
...
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-20 13:50:02 +12:00
AlexNaga
c4d72a21d1
fix: use insomnia default dark color during initial startup ( #3303 )
...
Co-authored-by: Alex <alex.naga@postnord.com>
2021-04-20 13:33:46 +12:00
Opender Singh
60a3faaa34
Respect request validator plugin defined at the document root and hierarchy of plugin definitions ( #3293 )
2021-04-20 13:30:17 +12:00
Jessé Souza
88049326d9
Misspelled error message when installing a plugin fails ( #3304 )
2021-04-20 13:08:12 +12:00
Opender Singh
874f6c9b27
Request validator plugin respects existing properties and generates required ones ( #3283 )
2021-04-20 13:04:22 +12:00
Thijs Schreijer
40deacb718
fix(o2k) update path param regex to match 1 segment only ( #3298 )
...
existing regex '\S+' is equivalent to '[^\s]+' by adding the
'/' character as not allowed, we limit the regex to match only 1 path
segment
This path: "/tracks/{hello}/world/{there}”
Would create: “/tracks/(?<hello>\S+)/world/(?<there>\S+)$”
This path works as expected:
/tracks/xxx/world/yyy
With captures:
hello: xxx
there: yyy
This path also works, unexpected:
/tracks/xxx/zzz/world/yyy/andthensome
With captures:
hello: xxx/zzz
there: yyy/andthensome
The last one should have matched only a single path segment, but
actually matches multiple.
2021-04-19 19:50:46 +12:00