mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
Merge pull request #18398 from overleaf/em-web-resolved-comment-ids
Return resolved comment ids with getDocument() GitOrigin-RevId: 30234f72d52b90b313821290b6c63aa6cc6cb243
This commit is contained in:
@@ -9,8 +9,8 @@ const https = require('https')
|
||||
* Make a request and return the parsed JSON response.
|
||||
*
|
||||
* @param {string | URL} url - request URL
|
||||
* @param {object} opts - fetch options
|
||||
* @return {Promise<object>} the parsed JSON response
|
||||
* @param {any} [opts] - fetch options
|
||||
* @return {Promise<any>} the parsed JSON response
|
||||
* @throws {RequestFailedError} if the response has a failure status code
|
||||
*/
|
||||
async function fetchJson(url, opts = {}) {
|
||||
@@ -39,7 +39,7 @@ async function fetchJsonWithResponse(url, opts = {}) {
|
||||
* If the response body is destroyed, the request is aborted.
|
||||
*
|
||||
* @param {string | URL} url - request URL
|
||||
* @param {object} opts - fetch options
|
||||
* @param {any} [opts] - fetch options
|
||||
* @return {Promise<Readable>}
|
||||
* @throws {RequestFailedError} if the response has a failure status code
|
||||
*/
|
||||
@@ -67,7 +67,7 @@ async function fetchStreamWithResponse(url, opts = {}) {
|
||||
* Make a request and discard the response.
|
||||
*
|
||||
* @param {string | URL} url - request URL
|
||||
* @param {object} opts - fetch options
|
||||
* @param {any} [opts] - fetch options
|
||||
* @return {Promise<Response>}
|
||||
* @throws {RequestFailedError} if the response has a failure status code
|
||||
*/
|
||||
@@ -86,7 +86,7 @@ async function fetchNothing(url, opts = {}) {
|
||||
* Make a request and extract the redirect from the response.
|
||||
*
|
||||
* @param {string | URL} url - request URL
|
||||
* @param {object} opts - fetch options
|
||||
* @param {any} [opts] - fetch options
|
||||
* @return {Promise<string>}
|
||||
* @throws {RequestFailedError} if the response has a non redirect status code or missing Location header
|
||||
*/
|
||||
@@ -115,7 +115,7 @@ async function fetchRedirect(url, opts = {}) {
|
||||
* Make a request and return a string.
|
||||
*
|
||||
* @param {string | URL} url - request URL
|
||||
* @param {object} opts - fetch options
|
||||
* @param {any} [opts] - fetch options
|
||||
* @return {Promise<string>}
|
||||
* @throws {RequestFailedError} if the response has a failure status code
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user