@optique/env 1.0.0-dev.600 → 1.0.0-dev.604

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 CHANGED
@@ -100,6 +100,8 @@ function createEnvContext(options = {}) {
100
100
  * @param parser Parser that reads CLI values.
101
101
  * @param options Environment binding options.
102
102
  * @returns A parser with environment fallback behavior.
103
+ * @throws {Error} If the inner parser or environment value parser throws
104
+ * while parsing or completing a value.
103
105
  * @since 1.0.0
104
106
  */
105
107
  function bindEnv(parser, options) {
@@ -214,6 +216,7 @@ const FALSE_LITERALS = [
214
216
  *
215
217
  * @param options Parser configuration options.
216
218
  * @returns A value parser for Boolean values.
219
+ * @throws {TypeError} If `options.metavar` is an empty string.
217
220
  * @since 1.0.0
218
221
  */
219
222
  function bool(options = {}) {
package/dist/index.d.cts CHANGED
@@ -112,6 +112,8 @@ interface BindEnvOptions<M extends Mode, TValue> {
112
112
  * @param parser Parser that reads CLI values.
113
113
  * @param options Environment binding options.
114
114
  * @returns A parser with environment fallback behavior.
115
+ * @throws {Error} If the inner parser or environment value parser throws
116
+ * while parsing or completing a value.
115
117
  * @since 1.0.0
116
118
  */
117
119
  declare function bindEnv<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, options: BindEnvOptions<M, TValue>): Parser<M, TValue, TState>;
@@ -147,6 +149,7 @@ interface BoolOptions {
147
149
  *
148
150
  * @param options Parser configuration options.
149
151
  * @returns A value parser for Boolean values.
152
+ * @throws {TypeError} If `options.metavar` is an empty string.
150
153
  * @since 1.0.0
151
154
  */
152
155
  declare function bool(options?: BoolOptions): ValueParser<"sync", boolean>;
package/dist/index.d.ts CHANGED
@@ -112,6 +112,8 @@ interface BindEnvOptions<M extends Mode, TValue> {
112
112
  * @param parser Parser that reads CLI values.
113
113
  * @param options Environment binding options.
114
114
  * @returns A parser with environment fallback behavior.
115
+ * @throws {Error} If the inner parser or environment value parser throws
116
+ * while parsing or completing a value.
115
117
  * @since 1.0.0
116
118
  */
117
119
  declare function bindEnv<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, options: BindEnvOptions<M, TValue>): Parser<M, TValue, TState>;
@@ -147,6 +149,7 @@ interface BoolOptions {
147
149
  *
148
150
  * @param options Parser configuration options.
149
151
  * @returns A value parser for Boolean values.
152
+ * @throws {TypeError} If `options.metavar` is an empty string.
150
153
  * @since 1.0.0
151
154
  */
152
155
  declare function bool(options?: BoolOptions): ValueParser<"sync", boolean>;
package/dist/index.js CHANGED
@@ -77,6 +77,8 @@ function createEnvContext(options = {}) {
77
77
  * @param parser Parser that reads CLI values.
78
78
  * @param options Environment binding options.
79
79
  * @returns A parser with environment fallback behavior.
80
+ * @throws {Error} If the inner parser or environment value parser throws
81
+ * while parsing or completing a value.
80
82
  * @since 1.0.0
81
83
  */
82
84
  function bindEnv(parser, options) {
@@ -191,6 +193,7 @@ const FALSE_LITERALS = [
191
193
  *
192
194
  * @param options Parser configuration options.
193
195
  * @returns A value parser for Boolean values.
196
+ * @throws {TypeError} If `options.metavar` is an empty string.
194
197
  * @since 1.0.0
195
198
  */
196
199
  function bool(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/env",
3
- "version": "1.0.0-dev.600+759e075b",
3
+ "version": "1.0.0-dev.604+c1a6f556",
4
4
  "description": "Environment variable support for Optique",
5
5
  "keywords": [
6
6
  "CLI",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "sideEffects": false,
56
56
  "dependencies": {
57
- "@optique/core": "1.0.0-dev.600+759e075b"
57
+ "@optique/core": "1.0.0-dev.604+c1a6f556"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/node": "^20.19.9",