Skip to content

Commit da2b58a

Browse files
committed
ua -> userAgent
1 parent 891da07 commit da2b58a

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

apps/site/components/Downloads/DownloadButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Button from '#site/components/Common/Button';
88
import { useClientContext } from '#site/hooks';
99
import type { NodeRelease } from '#site/types';
1010
import { getNodeDownloadUrl } from '#site/util/download';
11-
import { getUserPlatform } from '#site/util/ua';
11+
import { getUserPlatform } from '#site/util/userAgent';
1212

1313
import styles from './index.module.css';
1414

apps/site/components/Downloads/DownloadLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import LinkWithArrow from '#site/components/LinkWithArrow';
66
import { useClientContext } from '#site/hooks';
77
import type { NodeRelease } from '#site/types';
88
import { getNodeDownloadUrl, type DownloadKind } from '#site/util/download';
9-
import { getUserPlatform } from '#site/util/ua';
9+
import { getUserPlatform } from '#site/util/userAgent';
1010

1111
type DownloadLinkProps = { release: NodeRelease; kind?: DownloadKind };
1212

apps/site/components/Downloads/Release/PlatformDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useClientContext } from '#site/hooks';
99
import { ReleaseContext } from '#site/providers/releaseProvider';
1010
import type { UserPlatform } from '#site/types/userOS';
1111
import { PLATFORMS, nextItem, parseCompat } from '#site/util/download';
12-
import { getUserPlatform } from '#site/util/ua';
12+
import { getUserPlatform } from '#site/util/userAgent';
1313

1414
const PlatformDropdown: FC = () => {
1515
const { architecture, bitness } = useClientContext();

apps/site/hooks/react-client/useDetectOS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useEffect, useState } from 'react';
44

55
import type { UserArchitecture, UserBitness, UserOS } from '#site/types/userOS';
6-
import { getHighEntropyValues, detectOS } from '#site/util/ua';
6+
import { getHighEntropyValues, detectOS } from '#site/util/userAgent.js';
77

88
type UserOSState = {
99
os: UserOS | 'LOADING';

apps/site/util/__tests__/ua.test.mjs renamed to apps/site/util/__tests__/userAgent.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
detectOsInUserAgent,
77
getHighEntropyValues,
88
getUserPlatform,
9-
} from '#site/util/ua';
9+
} from '#site/util/userAgent';
1010

1111
const userAgentTestCases = [
1212
[

0 commit comments

Comments
 (0)