@optique/logtape 1.0.0-dev.1410 → 1.0.0-dev.1420
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/index.cjs +3 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -460,6 +460,8 @@ Original error: ${e}`);
|
|
|
460
460
|
* // --debug
|
|
461
461
|
* ```
|
|
462
462
|
*
|
|
463
|
+
* @throws {TypeError} If the `level` discriminant is not one of `"option"`,
|
|
464
|
+
* `"verbosity"`, or `"debug"`.
|
|
463
465
|
* @since 0.8.0
|
|
464
466
|
*/
|
|
465
467
|
function loggingOptions(config) {
|
|
@@ -494,6 +496,7 @@ function loggingOptions(config) {
|
|
|
494
496
|
levelParser = debug(debugOptions);
|
|
495
497
|
break;
|
|
496
498
|
}
|
|
499
|
+
default: throw new TypeError(`Unsupported level configuration: ${String(config.level)}. Expected "option", "verbosity", or "debug".`);
|
|
497
500
|
}
|
|
498
501
|
const defaultOutput = { type: "console" };
|
|
499
502
|
const outputParser = (0, __optique_core_modifiers.withDefault)(logOutput({ long: outputLong }), defaultOutput);
|
package/dist/index.d.cts
CHANGED
|
@@ -571,6 +571,8 @@ type LoggingOptionsConfig = LoggingOptionsWithLevel | LoggingOptionsWithVerbosit
|
|
|
571
571
|
* // --debug
|
|
572
572
|
* ```
|
|
573
573
|
*
|
|
574
|
+
* @throws {TypeError} If the `level` discriminant is not one of `"option"`,
|
|
575
|
+
* `"verbosity"`, or `"debug"`.
|
|
574
576
|
* @since 0.8.0
|
|
575
577
|
*/
|
|
576
578
|
declare function loggingOptions(config: LoggingOptionsConfig): Parser<"sync", LoggingOptionsResult, unknown>;
|
package/dist/index.d.ts
CHANGED
|
@@ -571,6 +571,8 @@ type LoggingOptionsConfig = LoggingOptionsWithLevel | LoggingOptionsWithVerbosit
|
|
|
571
571
|
* // --debug
|
|
572
572
|
* ```
|
|
573
573
|
*
|
|
574
|
+
* @throws {TypeError} If the `level` discriminant is not one of `"option"`,
|
|
575
|
+
* `"verbosity"`, or `"debug"`.
|
|
574
576
|
* @since 0.8.0
|
|
575
577
|
*/
|
|
576
578
|
declare function loggingOptions(config: LoggingOptionsConfig): Parser<"sync", LoggingOptionsResult, unknown>;
|
package/dist/index.js
CHANGED
|
@@ -437,6 +437,8 @@ Original error: ${e}`);
|
|
|
437
437
|
* // --debug
|
|
438
438
|
* ```
|
|
439
439
|
*
|
|
440
|
+
* @throws {TypeError} If the `level` discriminant is not one of `"option"`,
|
|
441
|
+
* `"verbosity"`, or `"debug"`.
|
|
440
442
|
* @since 0.8.0
|
|
441
443
|
*/
|
|
442
444
|
function loggingOptions(config) {
|
|
@@ -471,6 +473,7 @@ function loggingOptions(config) {
|
|
|
471
473
|
levelParser = debug(debugOptions);
|
|
472
474
|
break;
|
|
473
475
|
}
|
|
476
|
+
default: throw new TypeError(`Unsupported level configuration: ${String(config.level)}. Expected "option", "verbosity", or "debug".`);
|
|
474
477
|
}
|
|
475
478
|
const defaultOutput = { type: "console" };
|
|
476
479
|
const outputParser = withDefault(logOutput({ long: outputLong }), defaultOutput);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/logtape",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.1420+7622cdfa",
|
|
4
4
|
"description": "LogTape logging integration for Optique CLI parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@optique/core": "1.0.0-dev.
|
|
66
|
+
"@optique/core": "1.0.0-dev.1420+7622cdfa"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@logtape/file": "^2.0.4",
|