@optique/config 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 +7 -0
- package/dist/index.js +7 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -307,6 +307,8 @@ function bindConfig(parser, options) {
|
|
|
307
307
|
type: "optional",
|
|
308
308
|
terms: parser.usage
|
|
309
309
|
}] : parser.usage,
|
|
310
|
+
leadingNames: parser.leadingNames,
|
|
311
|
+
acceptingAnyToken: parser.acceptingAnyToken,
|
|
310
312
|
initialState: parser.initialState,
|
|
311
313
|
parse: (context) => {
|
|
312
314
|
const annotations = (0, __optique_core_annotations.getAnnotations)(context.state);
|
|
@@ -368,6 +370,11 @@ function bindConfig(parser, options) {
|
|
|
368
370
|
configurable: true,
|
|
369
371
|
enumerable: false
|
|
370
372
|
});
|
|
373
|
+
if (typeof parser.normalizeValue === "function") Object.defineProperty(boundParser, "normalizeValue", {
|
|
374
|
+
value: parser.normalizeValue.bind(parser),
|
|
375
|
+
configurable: true,
|
|
376
|
+
enumerable: false
|
|
377
|
+
});
|
|
371
378
|
return boundParser;
|
|
372
379
|
}
|
|
373
380
|
/**
|
package/dist/index.js
CHANGED
|
@@ -284,6 +284,8 @@ function bindConfig(parser, options) {
|
|
|
284
284
|
type: "optional",
|
|
285
285
|
terms: parser.usage
|
|
286
286
|
}] : parser.usage,
|
|
287
|
+
leadingNames: parser.leadingNames,
|
|
288
|
+
acceptingAnyToken: parser.acceptingAnyToken,
|
|
287
289
|
initialState: parser.initialState,
|
|
288
290
|
parse: (context) => {
|
|
289
291
|
const annotations = getAnnotations(context.state);
|
|
@@ -345,6 +347,11 @@ function bindConfig(parser, options) {
|
|
|
345
347
|
configurable: true,
|
|
346
348
|
enumerable: false
|
|
347
349
|
});
|
|
350
|
+
if (typeof parser.normalizeValue === "function") Object.defineProperty(boundParser, "normalizeValue", {
|
|
351
|
+
value: parser.normalizeValue.bind(parser),
|
|
352
|
+
configurable: true,
|
|
353
|
+
enumerable: false
|
|
354
|
+
});
|
|
348
355
|
return boundParser;
|
|
349
356
|
}
|
|
350
357
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/config",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.1553+1e439439",
|
|
4
4
|
"description": "Configuration file support for Optique with Standard Schema validation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@standard-schema/spec": "^1.1.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@optique/core": "1.0.0-dev.
|
|
62
|
+
"@optique/core": "1.0.0-dev.1553+1e439439"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@standard-schema/spec": "^1.1.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsdown": "^0.13.0",
|
|
68
68
|
"typescript": "^5.8.3",
|
|
69
69
|
"zod": "^3.25.0 || ^4.0.0",
|
|
70
|
-
"@optique/env": "1.0.0-dev.
|
|
70
|
+
"@optique/env": "1.0.0-dev.1553+1e439439"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "tsdown",
|