Compare commits

...

3 Commits

3 changed files with 8 additions and 7 deletions

View File

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

View File

@ -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",

View File

@ -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,