Comparing version 7.0.0-beta7 to 7.0.0-beta8
{ | ||
"name": "titanium", | ||
"version": "7.0.0-beta7", | ||
"version": "7.0.0-beta8", | ||
"author": "TiDev, Inc. <npm@tidev.io>", | ||
@@ -22,3 +22,3 @@ "description": "Command line interface for building Titanium SDK apps", | ||
"chalk": "5.3.0", | ||
"commander": "11.1.0", | ||
"commander": "12.0.0", | ||
"execa": "8.0.1", | ||
@@ -28,4 +28,4 @@ "fs-extra": "11.2.0", | ||
"prompts": "2.4.2", | ||
"semver": "7.5.4", | ||
"undici": "6.4.0", | ||
"semver": "7.6.0", | ||
"undici": "6.6.1", | ||
"which": "4.0.0", | ||
@@ -37,4 +37,4 @@ "wrap-ansi": "9.0.0", | ||
"devDependencies": { | ||
"@reporters/github": "1.5.4", | ||
"@vitest/coverage-istanbul": "1.2.1", | ||
"@reporters/github": "1.6.0", | ||
"@vitest/coverage-istanbul": "1.2.2", | ||
"c8": "9.1.0", | ||
@@ -41,0 +41,0 @@ "eslint": "8.56.0", |
@@ -7,2 +7,4 @@ import chalk from 'chalk'; | ||
const ansiRE = /\x1B\[\d+m/g; | ||
export class Logger extends EventEmitter { | ||
@@ -53,7 +55,7 @@ #banner = ''; | ||
this.warn = (msg = '', ...args) => { | ||
this.render(4, this.stderr, `${yellow(`[WARN] ${format(msg, ...args)}`)}`); | ||
this.render(4, this.stderr, `${yellow(`[WARN] ${format(msg, ...args).replace(ansiRE, '')}`)}`); | ||
}; | ||
this.error = (msg = '', ...args) => { | ||
this.render(5, this.stderr, red(`[ERROR] ${format(msg, ...args)}`)); | ||
this.render(5, this.stderr, red(`[ERROR] ${format(msg, ...args).replace(ansiRE, '')}`)); | ||
}; | ||
@@ -60,0 +62,0 @@ |
@@ -122,15 +122,18 @@ import { readdir } from 'node:fs/promises'; | ||
function getSDKType(name) { | ||
if (/.ga$/i.test(name)) { | ||
if (/\.ga$/i.test(name)) { | ||
return 'ga'; | ||
} | ||
if (/.rc$/i.test(name)) { | ||
if (/\.rc$/i.test(name)) { | ||
return 'rc'; | ||
} | ||
if (/.beta$/i.test(name)) { | ||
if (/\.beta$/i.test(name)) { | ||
return 'beta'; | ||
} | ||
return 'unsupported'; | ||
if (/\.v\d+$/i.test(name)) { | ||
return 'nightly'; | ||
} | ||
return 'local'; | ||
} | ||
const sortTypes = ['unsupported', 'beta', 'rc', 'ga']; | ||
const sortTypes = ['local', 'nightly', 'beta', 'rc', 'ga']; | ||
@@ -171,3 +174,4 @@ export async function initSDK({ config, cwd, debugLogger, logger, promptingEnabled, selectedSdk, showSDKPrompt }) { | ||
const typeLabels = { | ||
unsupported: 'Unsupported', | ||
local: 'Local Build', | ||
nightly: 'Nightly Build', | ||
beta: 'Beta', | ||
@@ -174,0 +178,0 @@ rc: 'Release Candidate', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
197656
5854
+ Addedcommander@12.0.0(transitive)
+ Addedsemver@7.6.0(transitive)
+ Addedundici@6.6.1(transitive)
- Removedcommander@11.1.0(transitive)
- Removedsemver@7.5.4(transitive)
- Removedundici@6.4.0(transitive)
Updatedcommander@12.0.0
Updatedsemver@7.6.0
Updatedundici@6.6.1