insomnia/packages/insomnia-app/app/common
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
..
__fixtures__ [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
__mocks__ [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
__tests__ sanitize all electron.shell.openExternal calls (#3336) 2021-05-12 16:20:52 -04:00
analytics.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
api-specs.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
constants.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
database.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
documentation.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
electron-helpers.ts sanitize all electron.shell.openExternal calls (#3336) 2021-05-12 16:20:52 -04:00
get-workspace-label.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
grpc-events.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
grpc-paths.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
har.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
hotkeys-listener.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
hotkeys.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
import.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
keyboard-keys.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
log.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
markdown-to-html.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
migrate-from-designer.ts sanitize all electron.shell.openExternal calls (#3336) 2021-05-12 16:20:52 -04:00
misc.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
render.ts fix node-libcurl imports (#3384) 2021-05-17 09:59:43 -04:00
select-file-or-folder.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
send-request.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
sorting.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00
strings.ts [TypeScript] Phase 1 & 2 (#3370) 2021-05-12 18:35:00 +12:00