Skip to content

Commit 1c1a1be

Browse files
authored
Merge pull request #898 from tidev/fix-colors-again
2 parents 77f8e89 + de77eab commit 1c1a1be

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
8.1.4 (1/18/2026)
2+
-------------------
3+
* fix: Allow `colors` shim methods to be redefined by the real `colors`
4+
15
8.1.3 (1/17/2026)
26
-------------------
37
* fix: Define `colors` shim for `info` command
8+
* fix: Default value ignored when getting an empty config value
49

510
8.1.2 (10/28/2025)
611
-------------------

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "titanium",
3-
"version": "8.1.3",
3+
"version": "8.1.4",
44
"author": "TiDev, Inc. <[email protected]>",
55
"description": "Command line interface for building Titanium SDK apps",
66
"type": "module",

src/cli.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -437,15 +437,15 @@ export class CLI {
437437
// the SDK still uses the `colors` package, so we need to add the
438438
// colors to the string prototype
439439
const assignColors = proto => Object.defineProperties(proto, {
440-
blue: { get() { return blue(`${this}`); } },
441-
bold: { get() { return bold(`${this}`); } },
442-
cyan: { get() { return cyan(`${this}`); } },
443-
gray: { get() { return gray(`${this}`); } },
444-
green: { get() { return green(`${this}`); } },
445-
grey: { get() { return gray(`${this}`); } },
446-
magenta: { get() { return magenta(`${this}`); } },
447-
red: { get() { return red(`${this}`); } },
448-
yellow: { get() { return yellow(`${this}`); } }
440+
blue: { get() { return blue(`${this}`); }, configurable: true },
441+
bold: { get() { return bold(`${this}`); }, configurable: true },
442+
cyan: { get() { return cyan(`${this}`); }, configurable: true },
443+
gray: { get() { return gray(`${this}`); }, configurable: true },
444+
green: { get() { return green(`${this}`); }, configurable: true },
445+
grey: { get() { return gray(`${this}`); }, configurable: true },
446+
magenta: { get() { return magenta(`${this}`); }, configurable: true },
447+
red: { get() { return red(`${this}`); }, configurable: true },
448+
yellow: { get() { return yellow(`${this}`); }, configurable: true }
449449
});
450450

451451
assignColors(String.prototype);

0 commit comments

Comments
 (0)