mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-15 22:52:16 +03:00
[enums] Enum for CPU architecture should be CPUArch rather than CPUName
This commit is contained in:
6
src/enums/ua-parser-enums.d.ts
vendored
6
src/enums/ua-parser-enums.d.ts
vendored
@@ -171,7 +171,7 @@ export const BrowserType: Readonly<{
|
|||||||
LIBRARY: "library",
|
LIBRARY: "library",
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export const CPUName: Readonly<{
|
export const CPUArch: Readonly<{
|
||||||
'68K': "68k",
|
'68K': "68k",
|
||||||
ALPHA: "alpha",
|
ALPHA: "alpha",
|
||||||
ARM: "arm",
|
ARM: "arm",
|
||||||
@@ -192,9 +192,9 @@ export const CPUName: Readonly<{
|
|||||||
X86_64: "amd64",
|
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<{
|
export const DeviceType: Readonly<{
|
||||||
CONSOLE: "console",
|
CONSOLE: "console",
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ const BrowserType = Object.freeze({
|
|||||||
LIBRARY: 'library'
|
LIBRARY: 'library'
|
||||||
});
|
});
|
||||||
|
|
||||||
const CPUName = Object.freeze({
|
const CPUArch = Object.freeze({
|
||||||
'68K': '68k',
|
'68K': '68k',
|
||||||
ALPHA: 'alpha',
|
ALPHA: 'alpha',
|
||||||
ARM : 'arm',
|
ARM : 'arm',
|
||||||
@@ -199,9 +199,9 @@ const CPUName = Object.freeze({
|
|||||||
X86_64: 'amd64'
|
X86_64: 'amd64'
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
* @deprecated Use `CPUName` instead
|
* @deprecated Use `CPUArch` instead
|
||||||
*/
|
*/
|
||||||
const CPU = CPUName;
|
const CPU = CPUArch;
|
||||||
|
|
||||||
const DeviceType = Object.freeze({
|
const DeviceType = Object.freeze({
|
||||||
CONSOLE: 'console',
|
CONSOLE: 'console',
|
||||||
@@ -688,7 +688,7 @@ module.exports = {
|
|||||||
OS, // deprecated
|
OS, // deprecated
|
||||||
BrowserName,
|
BrowserName,
|
||||||
BrowserType,
|
BrowserType,
|
||||||
CPUName,
|
CPUArch,
|
||||||
DeviceType,
|
DeviceType,
|
||||||
DeviceVendor,
|
DeviceVendor,
|
||||||
EngineName,
|
EngineName,
|
||||||
|
|||||||
Reference in New Issue
Block a user