@oclif/core 4.0.18 → 4.0.20
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/lib/ux/write.js +8 -8
- package/package.json +2 -2
package/lib/ux/write.js
CHANGED
|
@@ -4,31 +4,31 @@ exports.stderr = exports.stdout = void 0;
|
|
|
4
4
|
const node_util_1 = require("node:util");
|
|
5
5
|
const stdout = (str, ...args) => {
|
|
6
6
|
if (!str && args) {
|
|
7
|
-
|
|
7
|
+
console.log((0, node_util_1.format)(...args));
|
|
8
8
|
}
|
|
9
9
|
else if (!str) {
|
|
10
|
-
|
|
10
|
+
console.log();
|
|
11
11
|
}
|
|
12
12
|
else if (typeof str === 'string') {
|
|
13
|
-
|
|
13
|
+
console.log((0, node_util_1.format)(str, ...args));
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
16
|
-
|
|
16
|
+
console.log((0, node_util_1.format)(...str, ...args));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
exports.stdout = stdout;
|
|
20
20
|
const stderr = (str, ...args) => {
|
|
21
21
|
if (!str && args) {
|
|
22
|
-
|
|
22
|
+
console.error((0, node_util_1.format)(...args));
|
|
23
23
|
}
|
|
24
24
|
else if (!str) {
|
|
25
|
-
|
|
25
|
+
console.error();
|
|
26
26
|
}
|
|
27
27
|
else if (typeof str === 'string') {
|
|
28
|
-
|
|
28
|
+
console.error((0, node_util_1.format)(str, ...args));
|
|
29
29
|
}
|
|
30
30
|
else {
|
|
31
|
-
|
|
31
|
+
console.error((0, node_util_1.format)(...str, ...args));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
exports.stderr = stderr;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/core",
|
|
3
3
|
"description": "base library for oclif CLIs",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.20",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/core/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"eslint-config-oclif": "^5.2.1",
|
|
53
53
|
"eslint-config-oclif-typescript": "^3.1.9",
|
|
54
54
|
"eslint-config-prettier": "^9.1.0",
|
|
55
|
-
"husky": "^9.1.
|
|
55
|
+
"husky": "^9.1.5",
|
|
56
56
|
"lint-staged": "^15",
|
|
57
57
|
"madge": "^6.1.0",
|
|
58
58
|
"mocha": "^10.7.3",
|