@optique/env 1.0.0-dev.1536 → 1.0.0-dev.1553

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
@@ -131,6 +131,8 @@ function bindEnv(parser, options) {
131
131
  type: "optional",
132
132
  terms: parser.usage
133
133
  }] : parser.usage,
134
+ leadingNames: parser.leadingNames,
135
+ acceptingAnyToken: parser.acceptingAnyToken,
134
136
  initialState: parser.initialState,
135
137
  parse: (context) => {
136
138
  const annotations = (0, __optique_core_annotations.getAnnotations)(context.state);
@@ -192,6 +194,11 @@ function bindEnv(parser, options) {
192
194
  configurable: true,
193
195
  enumerable: false
194
196
  });
197
+ if (typeof parser.normalizeValue === "function") Object.defineProperty(boundParser, "normalizeValue", {
198
+ value: parser.normalizeValue.bind(parser),
199
+ configurable: true,
200
+ enumerable: false
201
+ });
195
202
  return boundParser;
196
203
  }
197
204
  function getEnvOrDefault(state, options, mode, innerParser, innerState) {
package/dist/index.js CHANGED
@@ -108,6 +108,8 @@ function bindEnv(parser, options) {
108
108
  type: "optional",
109
109
  terms: parser.usage
110
110
  }] : parser.usage,
111
+ leadingNames: parser.leadingNames,
112
+ acceptingAnyToken: parser.acceptingAnyToken,
111
113
  initialState: parser.initialState,
112
114
  parse: (context) => {
113
115
  const annotations = getAnnotations(context.state);
@@ -169,6 +171,11 @@ function bindEnv(parser, options) {
169
171
  configurable: true,
170
172
  enumerable: false
171
173
  });
174
+ if (typeof parser.normalizeValue === "function") Object.defineProperty(boundParser, "normalizeValue", {
175
+ value: parser.normalizeValue.bind(parser),
176
+ configurable: true,
177
+ enumerable: false
178
+ });
172
179
  return boundParser;
173
180
  }
174
181
  function getEnvOrDefault(state, options, mode, innerParser, innerState) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/env",
3
- "version": "1.0.0-dev.1536+1f9feab6",
3
+ "version": "1.0.0-dev.1553+1e439439",
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.1536+1f9feab6"
57
+ "@optique/core": "1.0.0-dev.1553+1e439439"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/node": "^20.19.9",