signal-desktop/libtextsecure
Lilia af8b0164b5 Move to node fetch API for web requests instead of XHR (#1552)
* Use node-fetch instead of xhr

* Remove XMLHttpRequest.js

// FREEBIE

* Avoid calling json() on non json responses

Previously we would catch and swallow JSON parsing errors resulting from an
empty response, though empty responses are normal from a few endpoints, like
requesting sms or voice registration codes.

Since the JSON parsing call is now handled internally by node-fetch, we have to
keep closer track of our expected response type to avoid throwing an exception.

// FREEBIE
2017-10-20 15:52:02 -07:00
..
storage Cache messages on receipt, remove from cache when processed 2017-08-04 12:03:25 -07:00
test Profiles (#1453) 2017-09-14 17:04:00 -07:00
account_manager.js Feature: Blue check marks for read messages if opted in (#1489) 2017-10-04 15:28:43 -07:00
api.js Move to node fetch API for web requests instead of XHR (#1552) 2017-10-20 15:52:02 -07:00
components.js Update autosize, which should fix stack overflow error (#1560) 2017-10-13 11:44:35 -07:00
contacts_parser.js Profiles (#1453) 2017-09-14 17:04:00 -07:00
crypto.js Profiles (#1453) 2017-09-14 17:04:00 -07:00
errors.js Decrypt any IncomingIdentityKeyError still sticking around 2017-08-12 13:17:53 -07:00
event_target.js Animated loading screens on startup and first conversation load 2017-08-04 12:03:25 -07:00
helpers.js Move, rename, and simplify toArrayBuffer helper 2016-03-13 04:56:28 -07:00
key_worker.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
libsignal-protocol.js Set messageKeysLimit to unlimited if communicating with our devices (#1348) 2017-08-04 12:25:30 -07:00
message_receiver.js Better handling of network disconnection/reconnection (#1546) 2017-10-06 16:28:13 -07:00
outgoing_message.js Feature: Blue check marks for read messages if opted in (#1489) 2017-10-04 15:28:43 -07:00
protobufs.js Protobufs: More logging on failure to load protobufs, fix tests 2017-09-14 17:02:45 -07:00
protocol_wrapper.js Update libsignal-protocol v0.9.0 2016-05-17 12:03:37 -07:00
ProvisioningCipher.js Feature: Blue check marks for read messages if opted in (#1489) 2017-10-04 15:28:43 -07:00
sendmessage.js Feature: Blue check marks for read messages if opted in (#1489) 2017-10-04 15:28:43 -07:00
storage.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
stringview.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
sync_request.js Add logging to help track down problems with Sync 2017-08-17 17:33:22 -07:00
task_with_timeout.js createTaskWithTimeout: Don't log expiration if task threw (#1412) 2017-08-30 13:33:55 -07:00
websocket-resources.js Better handling of network disconnection/reconnection (#1546) 2017-10-06 16:28:13 -07:00