* move function outside of object
* convert flushProjectToMongoAndDelete function
* convert queueChange function
* install fetch utils, remove private fn from export
* promisify getDocument function
* fix unit tests
* preserve function order
* try parsing error body
* update tests on a new rebased file
* remove fetch-utils from devDependencies
GitOrigin-RevId: cc34d6f690b6b888214b32c2aee0efb6b585e159