@inquirer/core 12.0.6 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/make-theme.js +3 -0
- package/package.json +8 -8
package/dist/lib/make-theme.js
CHANGED
|
@@ -12,6 +12,9 @@ function deepMerge(...objects) {
|
|
|
12
12
|
const output = {};
|
|
13
13
|
for (const obj of objects) {
|
|
14
14
|
for (const [key, value] of Object.entries(obj)) {
|
|
15
|
+
// A key explicitly set to `undefined` keeps the value from the previous theme.
|
|
16
|
+
if (value === undefined)
|
|
17
|
+
continue;
|
|
15
18
|
const prevValue = output[key];
|
|
16
19
|
output[key] =
|
|
17
20
|
isPlainObject(prevValue) && isPlainObject(value)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/core",
|
|
3
|
-
"version": "12.0
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "Core Inquirer prompt API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,16 +67,16 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/ansi": "^2.0
|
|
71
|
-
"@inquirer/figures": "^2.0
|
|
72
|
-
"@inquirer/type": "4.
|
|
70
|
+
"@inquirer/ansi": "^2.1.0",
|
|
71
|
+
"@inquirer/figures": "^2.1.0",
|
|
72
|
+
"@inquirer/type": "4.3.0",
|
|
73
73
|
"cli-width": "^4.1.0",
|
|
74
74
|
"fast-wrap-ansi": "^0.2.0",
|
|
75
|
-
"mute-stream": "^
|
|
75
|
+
"mute-stream": "^4.0.0",
|
|
76
76
|
"signal-exit": "^4.1.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@repo/tsconfig": "0.
|
|
79
|
+
"@repo/tsconfig": "0.1.0",
|
|
80
80
|
"@types/mute-stream": "^0.0.4",
|
|
81
81
|
"@types/node": "^26.1.1",
|
|
82
82
|
"typescript": "^7.0.2"
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|
|
93
|
-
"node": "
|
|
93
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
94
94
|
},
|
|
95
95
|
"main": "./dist/index.js",
|
|
96
96
|
"types": "./dist/index.d.ts",
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "00ded073f80523aaeaf8a903bbfb535994990475"
|
|
98
98
|
}
|