feat(#6250): use fetch in couch-request#9746
Conversation
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
| json: true, | ||
| body: { urns: ['tel:phone1'], text: 'message1', }, | ||
| headers: { Accept: 'application/json', Authorization: 'Token customRapidPro' }, | ||
| headers: { Authorization: 'Token customRapidPro' }, |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| json: true, | ||
| body: { urns: ['tel:phone2'], text: 'message2', }, | ||
| headers: { Accept: 'application/json', Authorization: 'Token customRapidPro' }, | ||
| headers: { Authorization: 'Token customRapidPro' }, |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| json: true, | ||
| qs: { broadcast: `broadcast${i}` }, | ||
| headers: { Accept: 'application/json', Authorization: 'Token key' }, | ||
| headers: { Authorization: 'Token key' }, |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| json: true, | ||
| qs: { broadcast: `ref2` }, | ||
| headers: { Accept: 'application/json', Authorization: 'Token key' }, | ||
| headers: { Authorization: 'Token key' }, |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| json: true, | ||
| qs: { broadcast: `ref4` }, | ||
| headers: { Accept: 'application/json', Authorization: 'Token key' }, | ||
| headers: { Authorization: 'Token key' }, |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| uri: '/api/v2/messages.json', | ||
| qs: { broadcast: `ref1` }, | ||
| headers: { Accept: 'application/json', Authorization: 'Token key' }, | ||
| headers: { Authorization: 'Token key' }, |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| uri: '/api/v2/messages.json', | ||
| qs: { broadcast: `ref2` }, | ||
| headers: { Accept: 'application/json', Authorization: 'Token key' }, | ||
| headers: { Authorization: 'Token key' }, |
Check failure
Code scanning / CodeQL
Hard-coded credentials
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
| await couchRequest.post({ | ||
| url: 'http://a:b@marvel.net:5984/a', | ||
| auth: { username: 'admin', password: '123456' }, | ||
| headers: { authorization: 'Bearer something' }, |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| headers: { | ||
| accept: 'application/json', | ||
| 'content-type': 'application/json', | ||
| authorization: 'Bearer something', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
|
Hi @jkuester ! Would you mind with some feedback over here? Appreciate it!!! |
|
👍 Will have a look asap, but might not be until Friday. |
There was a problem hiding this comment.
Send it! Just a few minor non-blocking comments.
(Also just have to say that I hate JS. With no type safety this kind of refactor is terrifying. AFICT you caught all the user > username, pass > password, and statusCode > status changes, but it is really hard to tell....)
Signed-off-by: Diana Barsan <barsan@medic.org>
Signed-off-by: Diana Barsan <barsan@medic.org>
| const opts = { | ||
| url: 'http://a:b@marvel.net:5984/a', | ||
| auth: { username: 'admin', password: '123456' }, | ||
| headers: { authorization: 'Bearer something' }, |
Check failure
Code scanning / CodeQL
Hard-coded credentials
Signed-off-by: Diana Barsan <barsan@medic.org>
Description
Removes
request-promise-native.#6250
Code review checklist
can_view_old_navigationpermission to see the old design.Compose URLs
If Build CI hasn't passed, these may 404:
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.