"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ts/updater/common.ts" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

common.ts  (Signal-Desktop-1.35.2):common.ts  (Signal-Desktop-1.36.1)
skipping to change at line 25 skipping to change at line 25
import { get as getFromConfig } from 'config'; import { get as getFromConfig } from 'config';
import { get, GotOptions, stream } from 'got'; import { get, GotOptions, stream } from 'got';
import { v4 as getGuid } from 'uuid'; import { v4 as getGuid } from 'uuid';
import pify from 'pify'; import pify from 'pify';
import mkdirp from 'mkdirp'; import mkdirp from 'mkdirp';
import rimraf from 'rimraf'; import rimraf from 'rimraf';
import { app, BrowserWindow, dialog, ipcMain } from 'electron'; import { app, BrowserWindow, dialog, ipcMain } from 'electron';
import { getTempPath } from '../../app/attachments'; import { getTempPath } from '../../app/attachments';
import { Dialogs } from '../types/Dialogs'; import { Dialogs } from '../types/Dialogs';
import { getUserAgent } from '../util/getUserAgent';
// @ts-ignore // @ts-ignore
import * as packageJson from '../../package.json'; import * as packageJson from '../../package.json';
import { getSignatureFileName } from './signature'; import { getSignatureFileName } from './signature';
import { isPathInside } from '../util/isPathInside'; import { isPathInside } from '../util/isPathInside';
import { LocaleType } from '../types/I18N'; import { LocaleType } from '../types/I18N';
import { LoggerType } from '../types/Logging'; import { LoggerType } from '../types/Logging';
const writeFile = pify(writeFileCallback); const writeFile = pify(writeFileCallback);
skipping to change at line 327 skipping to change at line 328
function getGotOptions(): GotOptions<null> { function getGotOptions(): GotOptions<null> {
const ca = getCertificateAuthority(); const ca = getCertificateAuthority();
const proxyUrl = getProxyUrl(); const proxyUrl = getProxyUrl();
const agent = proxyUrl ? new ProxyAgent(proxyUrl) : undefined; const agent = proxyUrl ? new ProxyAgent(proxyUrl) : undefined;
return { return {
agent, agent,
ca, ca,
headers: { headers: {
'Cache-Control': 'no-cache', 'Cache-Control': 'no-cache',
'User-Agent': `Signal Desktop ${packageJson.version}`, 'User-Agent': getUserAgent(packageJson.version),
}, },
useElectronNet: false, useElectronNet: false,
}; };
} }
function getBaseTempDir() { function getBaseTempDir() {
// We only use tmpdir() when this code is run outside of an Electron app (as i n: tests) // We only use tmpdir() when this code is run outside of an Electron app (as i n: tests)
return app ? getTempPath(app.getPath('userData')) : tmpdir(); return app ? getTempPath(app.getPath('userData')) : tmpdir();
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)