@optique/run 1.3.0-dev.2534 → 1.3.0-dev.2536
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/print.cjs +5 -1
- package/dist/print.d.cts +7 -1
- package/dist/print.d.ts +7 -1
- package/dist/print.js +5 -1
- package/package.json +4 -4
package/dist/print.cjs
CHANGED
|
@@ -12,6 +12,8 @@ const __optique_core_internal_terminal = require_rolldown_runtime.__toESM(requir
|
|
|
12
12
|
*
|
|
13
13
|
* @param message The structured message to print.
|
|
14
14
|
* @param options Optional formatting options to override defaults.
|
|
15
|
+
* @throws {TypeError} If initialWidth is not a finite integer.
|
|
16
|
+
* @throws {RangeError} If initialWidth is negative or a theme color is invalid.
|
|
15
17
|
*
|
|
16
18
|
* @example
|
|
17
19
|
* ```typescript
|
|
@@ -71,7 +73,9 @@ function printError(message, options = {}) {
|
|
|
71
73
|
* operations or when you want to override the automatic terminal detection.
|
|
72
74
|
*
|
|
73
75
|
* @param options Formatting options for the printer.
|
|
74
|
-
* @returns A printer function that can be called with messages.
|
|
76
|
+
* @returns A printer function that can be called with messages. The returned
|
|
77
|
+
* function validates initialWidth and theme colors when formatting a message
|
|
78
|
+
* and can throw the exceptions documented on {@link Printer}.
|
|
75
79
|
*
|
|
76
80
|
* @example
|
|
77
81
|
* ```typescript
|
package/dist/print.d.cts
CHANGED
|
@@ -52,6 +52,8 @@ interface PrinterOptions extends MessageFormatOptions {
|
|
|
52
52
|
/**
|
|
53
53
|
* A printer function that outputs formatted messages.
|
|
54
54
|
* @param message The structured message to print.
|
|
55
|
+
* @throws {TypeError} If the configured initialWidth is not a finite integer.
|
|
56
|
+
* @throws {RangeError} If initialWidth is negative or a theme color is invalid.
|
|
55
57
|
* @since 0.3.0
|
|
56
58
|
*/
|
|
57
59
|
type Printer = (message: Message) => void;
|
|
@@ -64,6 +66,8 @@ type Printer = (message: Message) => void;
|
|
|
64
66
|
*
|
|
65
67
|
* @param message The structured message to print.
|
|
66
68
|
* @param options Optional formatting options to override defaults.
|
|
69
|
+
* @throws {TypeError} If initialWidth is not a finite integer.
|
|
70
|
+
* @throws {RangeError} If initialWidth is negative or a theme color is invalid.
|
|
67
71
|
*
|
|
68
72
|
* @example
|
|
69
73
|
* ```typescript
|
|
@@ -119,7 +123,9 @@ declare function printError(message: Message, options?: PrintErrorOptions): void
|
|
|
119
123
|
* operations or when you want to override the automatic terminal detection.
|
|
120
124
|
*
|
|
121
125
|
* @param options Formatting options for the printer.
|
|
122
|
-
* @returns A printer function that can be called with messages.
|
|
126
|
+
* @returns A printer function that can be called with messages. The returned
|
|
127
|
+
* function validates initialWidth and theme colors when formatting a message
|
|
128
|
+
* and can throw the exceptions documented on {@link Printer}.
|
|
123
129
|
*
|
|
124
130
|
* @example
|
|
125
131
|
* ```typescript
|
package/dist/print.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ interface PrinterOptions extends MessageFormatOptions {
|
|
|
52
52
|
/**
|
|
53
53
|
* A printer function that outputs formatted messages.
|
|
54
54
|
* @param message The structured message to print.
|
|
55
|
+
* @throws {TypeError} If the configured initialWidth is not a finite integer.
|
|
56
|
+
* @throws {RangeError} If initialWidth is negative or a theme color is invalid.
|
|
55
57
|
* @since 0.3.0
|
|
56
58
|
*/
|
|
57
59
|
type Printer = (message: Message) => void;
|
|
@@ -64,6 +66,8 @@ type Printer = (message: Message) => void;
|
|
|
64
66
|
*
|
|
65
67
|
* @param message The structured message to print.
|
|
66
68
|
* @param options Optional formatting options to override defaults.
|
|
69
|
+
* @throws {TypeError} If initialWidth is not a finite integer.
|
|
70
|
+
* @throws {RangeError} If initialWidth is negative or a theme color is invalid.
|
|
67
71
|
*
|
|
68
72
|
* @example
|
|
69
73
|
* ```typescript
|
|
@@ -119,7 +123,9 @@ declare function printError(message: Message, options?: PrintErrorOptions): void
|
|
|
119
123
|
* operations or when you want to override the automatic terminal detection.
|
|
120
124
|
*
|
|
121
125
|
* @param options Formatting options for the printer.
|
|
122
|
-
* @returns A printer function that can be called with messages.
|
|
126
|
+
* @returns A printer function that can be called with messages. The returned
|
|
127
|
+
* function validates initialWidth and theme colors when formatting a message
|
|
128
|
+
* and can throw the exceptions documented on {@link Printer}.
|
|
123
129
|
*
|
|
124
130
|
* @example
|
|
125
131
|
* ```typescript
|
package/dist/print.js
CHANGED
|
@@ -11,6 +11,8 @@ import { getDisplayWidth, renderTerminalTerm, resolveMessageFormatter } from "@o
|
|
|
11
11
|
*
|
|
12
12
|
* @param message The structured message to print.
|
|
13
13
|
* @param options Optional formatting options to override defaults.
|
|
14
|
+
* @throws {TypeError} If initialWidth is not a finite integer.
|
|
15
|
+
* @throws {RangeError} If initialWidth is negative or a theme color is invalid.
|
|
14
16
|
*
|
|
15
17
|
* @example
|
|
16
18
|
* ```typescript
|
|
@@ -70,7 +72,9 @@ function printError(message, options = {}) {
|
|
|
70
72
|
* operations or when you want to override the automatic terminal detection.
|
|
71
73
|
*
|
|
72
74
|
* @param options Formatting options for the printer.
|
|
73
|
-
* @returns A printer function that can be called with messages.
|
|
75
|
+
* @returns A printer function that can be called with messages. The returned
|
|
76
|
+
* function validates initialWidth and theme colors when formatting a message
|
|
77
|
+
* and can throw the exceptions documented on {@link Printer}.
|
|
74
78
|
*
|
|
75
79
|
* @example
|
|
76
80
|
* ```typescript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/run",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.2536",
|
|
4
4
|
"description": "Type-safe combinatorial command-line interface parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
},
|
|
77
77
|
"sideEffects": false,
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@optique/core": "1.3.0-dev.
|
|
79
|
+
"@optique/core": "1.3.0-dev.2536+22f9c880"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@optique/config": "1.3.0-dev.
|
|
83
|
-
"@optique/env": "1.3.0-dev.
|
|
82
|
+
"@optique/config": "1.3.0-dev.2536+22f9c880",
|
|
83
|
+
"@optique/env": "1.3.0-dev.2536+22f9c880",
|
|
84
84
|
"@types/node": "^24.0.0",
|
|
85
85
|
"fast-check": "^4.7.0",
|
|
86
86
|
"tsdown": "^0.13.0",
|