@optique/env 1.1.7 → 1.1.9
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 +2 -1
- package/dist/index.js +3 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -387,7 +387,7 @@ function bindEnv(parser, options) {
|
|
|
387
387
|
parse: (context) => {
|
|
388
388
|
const annotations = (0, __optique_core_annotations.getAnnotations)(context.state);
|
|
389
389
|
const hadCliValue = isEnvBindState(context.state) && context.state.hasCliValue;
|
|
390
|
-
const innerState =
|
|
390
|
+
const innerState = getInnerState(context.state);
|
|
391
391
|
const innerContext = innerState !== context.state ? {
|
|
392
392
|
...context,
|
|
393
393
|
state: innerState
|
|
@@ -489,6 +489,7 @@ function bindEnv(parser, options) {
|
|
|
489
489
|
configurable: true,
|
|
490
490
|
enumerable: false
|
|
491
491
|
});
|
|
492
|
+
(0, __optique_core_extension.delegateOptionParsing)(boundParser, parser, getInnerState);
|
|
492
493
|
return boundParser;
|
|
493
494
|
}
|
|
494
495
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { getAnnotations } from "@optique/core/annotations";
|
|
4
|
-
import { defineTraits, delegateSuggestNodes, dispatchByMode, getTraits, inheritAnnotations, injectAnnotations, isInjectedAnnotationState, mapModeValue, mapSourceMetadata, wrapForMode } from "@optique/core/extension";
|
|
4
|
+
import { defineTraits, delegateOptionParsing, delegateSuggestNodes, dispatchByMode, getTraits, inheritAnnotations, injectAnnotations, isInjectedAnnotationState, mapModeValue, mapSourceMetadata, wrapForMode } from "@optique/core/extension";
|
|
5
5
|
import { envVar, message, valueSet } from "@optique/core/message";
|
|
6
6
|
import { ensureNonEmptyString, isValueParser } from "@optique/core/valueparser";
|
|
7
7
|
|
|
@@ -364,7 +364,7 @@ function bindEnv(parser, options) {
|
|
|
364
364
|
parse: (context) => {
|
|
365
365
|
const annotations = getAnnotations(context.state);
|
|
366
366
|
const hadCliValue = isEnvBindState(context.state) && context.state.hasCliValue;
|
|
367
|
-
const innerState =
|
|
367
|
+
const innerState = getInnerState(context.state);
|
|
368
368
|
const innerContext = innerState !== context.state ? {
|
|
369
369
|
...context,
|
|
370
370
|
state: innerState
|
|
@@ -466,6 +466,7 @@ function bindEnv(parser, options) {
|
|
|
466
466
|
configurable: true,
|
|
467
467
|
enumerable: false
|
|
468
468
|
});
|
|
469
|
+
delegateOptionParsing(boundParser, parser, getInnerState);
|
|
469
470
|
return boundParser;
|
|
470
471
|
}
|
|
471
472
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/env",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
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.1.
|
|
63
|
+
"@optique/core": "1.1.9"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@optique/config": "1.1.
|
|
66
|
+
"@optique/config": "1.1.9",
|
|
67
67
|
"@types/node": "^24.0.0",
|
|
68
68
|
"fast-check": "^4.7.0",
|
|
69
69
|
"tsdown": "^0.13.0",
|