[enums] Enum for CPU architecture should be CPUArch rather than CPUName

This commit is contained in:
Faisal Salman 2025-08-28 11:11:32 +07:00
parent f810a6d1d9
commit 7dcbb8def3
2 changed files with 7 additions and 7 deletions

View File

@ -171,7 +171,7 @@ export const BrowserType: Readonly<{
LIBRARY: "library",
}>;
export const CPUName: Readonly<{
export const CPUArch: Readonly<{
'68K': "68k",
ALPHA: "alpha",
ARM: "arm",
@ -192,9 +192,9 @@ export const CPUName: Readonly<{
X86_64: "amd64",
}>;
/**
* @deprecated Use `CPUName` instead
* @deprecated Use `CPUArch` instead
*/
export const CPU: typeof CPUName;
export const CPU: typeof CPUArch;
export const DeviceType: Readonly<{
CONSOLE: "console",

View File

@ -178,7 +178,7 @@ const BrowserType = Object.freeze({
LIBRARY: 'library'
});
const CPUName = Object.freeze({
const CPUArch = Object.freeze({
'68K': '68k',
ALPHA: 'alpha',
ARM : 'arm',
@ -199,9 +199,9 @@ const CPUName = Object.freeze({
X86_64: 'amd64'
});
/**
* @deprecated Use `CPUName` instead
* @deprecated Use `CPUArch` instead
*/
const CPU = CPUName;
const CPU = CPUArch;
const DeviceType = Object.freeze({
CONSOLE: 'console',
@ -688,7 +688,7 @@ module.exports = {
OS, // deprecated
BrowserName,
BrowserType,
CPUName,
CPUArch,
DeviceType,
DeviceVendor,
EngineName,