Skip to content

Commit 7dcbb8d

Browse files
committed
[enums] Enum for CPU architecture should be CPUArch rather than CPUName
1 parent f810a6d commit 7dcbb8d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/enums/ua-parser-enums.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export const BrowserType: Readonly<{
171171
LIBRARY: "library",
172172
}>;
173173

174-
export const CPUName: Readonly<{
174+
export const CPUArch: Readonly<{
175175
'68K': "68k",
176176
ALPHA: "alpha",
177177
ARM: "arm",
@@ -192,9 +192,9 @@ export const CPUName: Readonly<{
192192
X86_64: "amd64",
193193
}>;
194194
/**
195-
* @deprecated Use `CPUName` instead
195+
* @deprecated Use `CPUArch` instead
196196
*/
197-
export const CPU: typeof CPUName;
197+
export const CPU: typeof CPUArch;
198198

199199
export const DeviceType: Readonly<{
200200
CONSOLE: "console",

src/enums/ua-parser-enums.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ const BrowserType = Object.freeze({
178178
LIBRARY: 'library'
179179
});
180180

181-
const CPUName = Object.freeze({
181+
const CPUArch = Object.freeze({
182182
'68K': '68k',
183183
ALPHA: 'alpha',
184184
ARM : 'arm',
@@ -199,9 +199,9 @@ const CPUName = Object.freeze({
199199
X86_64: 'amd64'
200200
});
201201
/**
202-
* @deprecated Use `CPUName` instead
202+
* @deprecated Use `CPUArch` instead
203203
*/
204-
const CPU = CPUName;
204+
const CPU = CPUArch;
205205

206206
const DeviceType = Object.freeze({
207207
CONSOLE: 'console',
@@ -688,7 +688,7 @@ module.exports = {
688688
OS, // deprecated
689689
BrowserName,
690690
BrowserType,
691-
CPUName,
691+
CPUArch,
692692
DeviceType,
693693
DeviceVendor,
694694
EngineName,

0 commit comments

Comments
 (0)