Commit Graph

1561 Commits

Author SHA1 Message Date
Opender Singh
efc11b3ba2 version packages lib@2.3.3-alpha.0 2021-10-05 16:59:17 +13:00
Opender Singh
bc7bf8f08c bump version 2021-10-05 16:56:29 +13:00
Opender Singh
06be068c0b Update compression args 2021-10-05 15:32:46 +13:00
Opender Singh
3542bbcc70 update linux compression command to use xz compressino 2021-10-05 15:32:46 +13:00
Opender Singh
e6c288c7b9 compress via script 2021-10-05 15:32:46 +13:00
Dimitri Mitropoulos
51096a2565 fixes typo now that there's only one binary
before, this made sense to be plural because it was always expected that there'd be more than one binary
2021-10-05 15:32:46 +13:00
Dimitri Mitropoulos
584d57d2a8 adds documentation and simplifies targets
this was returning an array before in part because it needed to check if the array was empty to detect an error case.  now, it doesn't need to do that, so there's no point in returning an array that statically only has one item just to join it with commas later (which will have no effect since it only has one item).  If we ever want to modify this, we can just as well change something like `'node12-macos-x64'` to `'node12-macos-x64,node12-macos-arm64'` in the `getTargets` function.
2021-10-05 15:32:46 +13:00
Dimitri Mitropoulos
794a28859c simplifies platform getting
there's no way for the platform to change in the midst of a script like this, and therefore no motivation to have a closure for it.
2021-10-05 15:32:46 +13:00
Dimitri Mitropoulos
8cf4ef3dc1 fixes error handling (and removes some else-returns) in pkg.ts
prior to this, the `reject` on line 28 does not hault execution.  it's reasonable that this mistake was made because it's an easy one to make if you don't allow the function that ultimately had the failure case to have the control flow.

As it was before, code _after_ the reject was still executing.

Now, the promise rejection is handled in the place it really occurs.  Promises are designed to work well with `throw` like this and since there is no other callback that the throw is captured in (e.g. like a setTimeout or something) this is totally fine to do.  Here is what the output would look like:

```
> ts-node src/scripts/pkg.ts

Error: [pkg-inso] Unsupported OS: freebsd
    at getTargets (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/src/scripts/pkg.ts:24:9)
    at /home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/src/scripts/pkg.ts:29:21
    at new Promise (<anonymous>)
    at pkg (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/src/scripts/pkg.ts:28:10)
    at Object.<anonymous> (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/src/scripts/pkg.ts:67:1)
    at Module._compile (internal/modules/cjs/loader.js:1137:30)
    at Module.m._compile (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/node_modules/ts-node/src/index.ts:1056:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
    at Object.require.extensions.<computed> [as .ts] (/home/dimitri/src/github.com/Kong/insomnia/packages/insomnia-inso/node_modules/ts-node/src/index.ts:1059:12)
    at Module.load (internal/modules/cjs/loader.js:985:32)
```
2021-10-05 15:32:46 +13:00
Opender Singh
5ae0d1b0d8 update packagelock and tar command 2021-10-05 15:32:46 +13:00
Opender Singh
a8ce57df27 add test case for export spec 2021-10-05 15:32:46 +13:00
Opender Singh
11b76efaef improve tar structure and package from script 2021-10-05 15:32:46 +13:00
Opender Singh
ad1ca71142 remove libc detection 2021-10-05 15:32:45 +13:00
Opender Singh
a665fc4417 add smoke tests for other commands and move docs to main readme 2021-10-05 15:32:45 +13:00
Opender Singh
8ea57f3f4d write oa3 spec for smoke test server, update inso-nedb fixture to include a spec so we can lint and generate config with it, add readme for how to update it 2021-10-05 15:32:45 +13:00
Opender Singh
1d7f08b10d refactor cli smoke test and add ramda 2021-10-05 15:32:45 +13:00
Opender Singh
eac24d936a only target node12-x64 for the OS being run on 2021-10-05 15:32:45 +13:00
Opender Singh
cd46099afd script to override pkg targets 2021-10-05 15:32:45 +13:00
Opender Singh
0fa695c8f4 remove debug script 2021-10-05 15:32:45 +13:00
Opender Singh
f0557b8196 replace all jsonpath with jsonpath-plus 2021-10-05 15:32:45 +13:00
Opender Singh
e79a780a99 add safety-net around plugin loading 2021-10-05 15:32:45 +13:00
Opender Singh
f38a2e9c3b undo more things 2021-10-05 15:32:45 +13:00
Opender Singh
eb32c9500c remove console logs 2021-10-05 15:32:45 +13:00
Dimitri Mitropoulos
7cf7184df7 adds back cross compilation and check script 2021-10-05 15:32:45 +13:00
Opender Singh
5250051e70 WIP 2021-10-05 15:32:45 +13:00
Opender Singh
3c3e36045c bootstrap and update packagelock 2021-10-05 15:32:45 +13:00
Dimitri Mitropoulos
102e691075 adds verify-pkg script and cross-compile targets 2021-10-05 15:32:45 +13:00
Dimitri Mitropoulos
a6107c3a97 adds failing test for simultaneously smoke testing the single executable
also fixes some other things, e.g. using the (now deprecated) `--appDataDir` option.

also adds a (hopefully) helpful message for if this breaks in the future because of the files moving
2021-10-05 15:32:45 +13:00
Opender Singh
14c3c3af14 Update packages/insomnia-inso/package.json 2021-10-05 15:32:45 +13:00
Opender Singh
727b6c21b1 package inso binaries from code 2021-10-05 15:32:45 +13:00
Opender Singh
e704f796f8 Attach sync button and button from component library to themes properly (#4070) 2021-10-04 11:35:53 +02:00
Ismael Arias
d237b2c907 Implemented Prettier for GraphQL formatting (#4022)
* Implemented Prettier for GraphQL formatting (#3242)

* package bump and linting

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-10-01 12:31:02 +02:00
Dimitri Mitropoulos
e7c7c7ebdf change mocha timeout to be 1 minute (#4046) 2021-09-29 12:35:00 +00:00
James Gatz
fc32856e55 Use forwardRef for the Pane components (#4053)
* Use forwardRef for the Pane components

* Update packages/insomnia-app/app/ui/containers/app.tsx

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-29 09:44:28 +02:00
Dimitri Mitropoulos
d53ef39c9b use named exports for all (remaining) react components (#4050) 2021-09-27 15:47:22 +02:00
Matthias Ramsauer
7a8510f89c Add export as HAR format for single requests (#2715)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-22 13:35:34 +00: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
James Gatz
bc35b48f40 Fix/o2k allow whitespace in route paths (#4029)
* Update path param regex to allow for whitespace characters in paths

* Update fixtures for the route path regex
2021-09-20 12:43:39 +02:00
James Gatz
96fdf9d462 prevent fetching spellcheck Dictionary (#4030)
* Disable spellchecking and prevent fething translations from Chromium's CDN

* Update packages/insomnia-app/app/main/window-utils.ts

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>

* don't unnecessarily disable spellcheck

since, after all, it doesn't download in Mac and upcoming versions of Windows.  it's not like we have a thing against spellchecking - the ticket is to disable a dictionary download.

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-20 11:53:05 +02:00
Dimitri Mitropoulos
376700826e fixes all react/prefer-stateless-function warnings (#4019) 2021-09-15 16:16:04 -04:00
Ramón Márquez
fa2429da67 Plugin API feature: added getInfo method to context.app (#3975) 2021-09-16 08:10:20 +12:00
Timothy Lim
58ce5ec39e Allow Autocomplete to be properly registered as a Shortcut (#2726)
* Allow autocomplete to be registered

* On shortcut update refresh pane to enable shortcuts to register correctly

* Improve types and add explanation about keyname order

* bind code-editor to hotkeyregistry via redux so that it updates keymaps on change

* remove force refresh via key and convert to named export

* send hotkeyregistry in environment autocomplete options

* use autocomplete delay from settings

* Use Pick<T>

Co-authored-by: Timothy Lim <tim.lim@intercom.io>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-09-15 15:01:35 +02:00
Opender Singh
bc4b6cd237 Add type definition to plugin insomnia attribute (#4023) 2021-09-14 11:58:34 +00:00
James Gatz
1956665a2b Merge branch 'develop' into release-branch-2021 2021-09-14 00:47:29 +02:00
gatzjames
4f8ee1f010 Bump version to 2021.5.3 2021-09-13 23:15:35 +02:00
David Marby
411ea2d84a Downgrade electron-builder (#4014) 2021-09-13 23:08:53 +02:00
James Gatz
45f683f992 Use the database change listener in the global tests (#4017)
* Use the database change listener instead of waiting for an amount of time

* Fire the actions after registering the handler
2021-09-13 19:42:12 +02:00
John
7e7d235fec Added nested keys check after root keys check for environment editor. (#2685)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-10 19:25:32 +00:00
Timothy Lim
6b20648b5b Show Client Certificate paths (#2714)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-09-10 17:53:25 +00:00
Dimitri Mitropoulos
02c65a852d implements sort order for projects (#3953)
Co-authored-by: Opender Singh <opender94@gmail.com>
2021-09-09 21:42:57 +00:00