Minor fixes

pull/915/head
fflorent 3 weeks ago
parent 99e6257929
commit 55a26c05fc

@ -773,7 +773,7 @@ export class UserAPIImpl extends BaseAPI implements UserAPI {
}
public async getWorker(key: string): Promise<string> {
const json: PublicDocWorkerUrlInfo = (await this.requestJson(`${this._url}/api/worker/${key}`, {
const json = (await this.requestJson(`${this._url}/api/worker/${key}`, {
method: 'GET',
credentials: 'include'
})) as PublicDocWorkerUrlInfo;
@ -1159,7 +1159,7 @@ export class DocAPIImpl extends BaseAPI implements DocAPI {
/**
* Reprensents information to build public doc worker url.
*
* Structure that may contain either **exlusively**:
* Structure that may contain either **exclusively**:
* - a selfPrefix when no pool of doc worker exist.
* - a public doc worker url otherwise.
*/

@ -21,8 +21,8 @@ import * as multiparty from 'multiparty';
import fetch, {Response as FetchResponse} from 'node-fetch';
import * as path from 'path';
import * as tmp from 'tmp';
import { IDocWorkerMap } from './DocWorkerMap';
import { getDocWorkerInfoOrSelfPrefix } from './DocWorkerUtils';
import {IDocWorkerMap} from './DocWorkerMap';
import {getDocWorkerInfoOrSelfPrefix} from './DocWorkerUtils';
// After some time of inactivity, clean up the upload. We give an hour, which seems generous,
// except that if one is toying with import options, and leaves the upload in an open browser idle

@ -158,7 +158,7 @@ describe('DocApi', function () {
describe("should work behind a proxy", async () => {
let proxy: TestServerProxy;
const originalHeaders = new WeakMap<AxiosRequestConfig, AxiosRequestConfig<any>["headers"]>();
const originalHeaders = new WeakMap<AxiosRequestConfig, AxiosRequestConfig["headers"]>();
function iterateOverAccountHeaders (
cb: (account: AxiosRequestConfig) => AxiosRequestConfig<any>["headers"]
) {

Loading…
Cancel
Save