aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2024-03-22 02:33:33 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2024-03-21 21:24:35 +0000
commit2f3f2ae7f098376f535e5aa993c9eedc14e36f5d (patch)
treed919bda212744493a7b66c2e91a75455421d62cc /src/helpers
parentUpgrade electron to '29.1.5' (diff)
downloadferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.tar.gz
ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.tar.zst
ferdium-app-2f3f2ae7f098376f535e5aa993c9eedc14e36f5d.zip
Upgrade node modules
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/certs-helpers.ts2
-rw-r--r--src/helpers/password-helpers.ts2
-rw-r--r--src/helpers/update-helpers.ts2
-rw-r--r--src/helpers/url-helpers.ts2
-rw-r--r--src/helpers/userAgent-helpers.ts2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/helpers/certs-helpers.ts b/src/helpers/certs-helpers.ts
index a6c83f5c4..fdbc495bc 100644
--- a/src/helpers/certs-helpers.ts
+++ b/src/helpers/certs-helpers.ts
@@ -1,5 +1,5 @@
1import { readdirSync, readFileSync, ensureDirSync } from 'fs-extra';
2import { join } from 'node:path'; 1import { join } from 'node:path';
2import { ensureDirSync, readFileSync, readdirSync } from 'fs-extra';
3import { userDataCertsPath } from '../environment-remote'; 3import { userDataCertsPath } from '../environment-remote';
4import { removeNewLines } from '../jsUtils'; 4import { removeNewLines } from '../jsUtils';
5 5
diff --git a/src/helpers/password-helpers.ts b/src/helpers/password-helpers.ts
index 75ef5606a..a628ea51e 100644
--- a/src/helpers/password-helpers.ts
+++ b/src/helpers/password-helpers.ts
@@ -1,4 +1,4 @@
1import { createHash, BinaryLike } from 'node:crypto'; 1import { type BinaryLike, createHash } from 'node:crypto';
2 2
3export function hash(password: BinaryLike): string { 3export function hash(password: BinaryLike): string {
4 return createHash('sha256').update(password).digest('base64'); 4 return createHash('sha256').update(password).digest('base64');
diff --git a/src/helpers/update-helpers.ts b/src/helpers/update-helpers.ts
index ca541c4b0..3e548c69b 100644
--- a/src/helpers/update-helpers.ts
+++ b/src/helpers/update-helpers.ts
@@ -1,5 +1,5 @@
1import { Octokit } from '@octokit/core'; 1import { Octokit } from '@octokit/core';
2import { defineMessages, IntlShape } from 'react-intl'; 2import { type IntlShape, defineMessages } from 'react-intl';
3 3
4export function getFerdiumVersion( 4export function getFerdiumVersion(
5 currentLocation: string, 5 currentLocation: string,
diff --git a/src/helpers/url-helpers.ts b/src/helpers/url-helpers.ts
index fe637bb08..b30c2cd83 100644
--- a/src/helpers/url-helpers.ts
+++ b/src/helpers/url-helpers.ts
@@ -1,7 +1,7 @@
1// This is taken from: https://benjamin-altpeter.de/shell-openexternal-dangers/ 1// This is taken from: https://benjamin-altpeter.de/shell-openexternal-dangers/
2import { URL } from 'node:url'; 2import { URL } from 'node:url';
3import { ensureDirSync, existsSync } from 'fs-extra';
4import { shell } from 'electron'; 3import { shell } from 'electron';
4import { ensureDirSync, existsSync } from 'fs-extra';
5import normalizeUrl from 'normalize-url'; 5import normalizeUrl from 'normalize-url';
6import { ALLOWED_PROTOCOLS } from '../config'; 6import { ALLOWED_PROTOCOLS } from '../config';
7 7
diff --git a/src/helpers/userAgent-helpers.ts b/src/helpers/userAgent-helpers.ts
index 42e3a9851..fd9b8c835 100644
--- a/src/helpers/userAgent-helpers.ts
+++ b/src/helpers/userAgent-helpers.ts
@@ -3,9 +3,9 @@ import macosVersion from 'macos-version';
3import { chrome } from 'useragent-generator'; 3import { chrome } from 'useragent-generator';
4import { 4import {
5 chromeVersion, 5 chromeVersion,
6 is64Bit,
6 isMac, 7 isMac,
7 isWindows, 8 isWindows,
8 is64Bit,
9 osArch, 9 osArch,
10 osRelease, 10 osRelease,
11} from '../environment'; 11} from '../environment';