@optique/env 1.4.0-dev.2715 → 1.4.0-dev.2716
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 -1
- package/dist/index.js +3 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -21,12 +21,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
}) : target, mod));
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
|
+
const __optique_core_extension = __toESM(require("@optique/core/extension"));
|
|
24
25
|
const __optique_core_doc = __toESM(require("@optique/core/doc"));
|
|
25
26
|
const __optique_core_usage = __toESM(require("@optique/core/usage"));
|
|
26
27
|
const node_fs = __toESM(require("node:fs"));
|
|
27
28
|
const node_path = __toESM(require("node:path"));
|
|
28
29
|
const __optique_core_annotations = __toESM(require("@optique/core/annotations"));
|
|
29
|
-
const __optique_core_extension = __toESM(require("@optique/core/extension"));
|
|
30
30
|
const __optique_core_fluent = __toESM(require("@optique/core/fluent"));
|
|
31
31
|
const __optique_core_message = __toESM(require("@optique/core/message"));
|
|
32
32
|
const __optique_core_valueparser = __toESM(require("@optique/core/valueparser"));
|
|
@@ -547,6 +547,8 @@ function bindEnv(parser, options) {
|
|
|
547
547
|
enumerable: false
|
|
548
548
|
});
|
|
549
549
|
(0, __optique_core_extension.delegateOptionParsing)(boundParser, parser, getInnerState);
|
|
550
|
+
const emptyStep = (0, __optique_core_extension.getEmptyInputBehavior)(parser).step;
|
|
551
|
+
(0, __optique_core_extension.defineEmptyInputBehavior)(boundParser, { ...emptyStep === void 0 ? {} : { step: emptyStep === "failure" ? "success" : emptyStep } });
|
|
550
552
|
return (0, __optique_core_fluent.fluent)(boundParser);
|
|
551
553
|
}
|
|
552
554
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { defineEmptyInputBehavior, defineTraits, delegateOptionParsing, delegateSuggestNodes, dispatchByMode, getEmptyInputBehavior, getTraits, inheritAnnotations, inheritOptionScope, injectAnnotations, isInjectedAnnotationState, mapModeValue, mapSourceMetadata, wrapForMode } from "@optique/core/extension";
|
|
1
2
|
import { isDocEntryHidden } from "@optique/core/doc";
|
|
2
3
|
import { formatUsageTerm, isDocHidden } from "@optique/core/usage";
|
|
3
4
|
import { readFileSync } from "node:fs";
|
|
4
5
|
import { resolve } from "node:path";
|
|
5
6
|
import { getAnnotations } from "@optique/core/annotations";
|
|
6
|
-
import { defineTraits, delegateOptionParsing, delegateSuggestNodes, dispatchByMode, getTraits, inheritAnnotations, inheritOptionScope, injectAnnotations, isInjectedAnnotationState, mapModeValue, mapSourceMetadata, wrapForMode } from "@optique/core/extension";
|
|
7
7
|
import { fluent } from "@optique/core/fluent";
|
|
8
8
|
import { envVar, message, valueSet } from "@optique/core/message";
|
|
9
9
|
import { ensureNonEmptyString, isValueParser } from "@optique/core/valueparser";
|
|
@@ -524,6 +524,8 @@ function bindEnv(parser, options) {
|
|
|
524
524
|
enumerable: false
|
|
525
525
|
});
|
|
526
526
|
delegateOptionParsing(boundParser, parser, getInnerState);
|
|
527
|
+
const emptyStep = getEmptyInputBehavior(parser).step;
|
|
528
|
+
defineEmptyInputBehavior(boundParser, { ...emptyStep === void 0 ? {} : { step: emptyStep === "failure" ? "success" : emptyStep } });
|
|
527
529
|
return fluent(boundParser);
|
|
528
530
|
}
|
|
529
531
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/env",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.2716",
|
|
4
4
|
"description": "Environment variable support for Optique",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
},
|
|
61
61
|
"sideEffects": false,
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@optique/core": "1.4.0-dev.
|
|
63
|
+
"@optique/core": "1.4.0-dev.2716+57cbdb77"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@optique/config": "1.4.0-dev.
|
|
66
|
+
"@optique/config": "1.4.0-dev.2716+57cbdb77",
|
|
67
67
|
"@types/node": "^24.0.0",
|
|
68
68
|
"fast-check": "^4.7.0",
|
|
69
69
|
"tsdown": "^0.13.0",
|