Compare commits

...

3 Commits

3 changed files with 8 additions and 7 deletions

View File

@ -211,6 +211,7 @@
"src"
],
"bin": "./script/cli.js",
"sideEffects": false,
"scripts": {
"build": "./script/build-dist.sh && ./script/build-esm.js",
"build+test": "npm run build && npm run test",

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,