@optique/config 1.2.0-dev.2179 → 1.2.0-dev.2187
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.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -25,6 +25,7 @@ const node_fs = __toESM(require("node:fs"));
|
|
|
25
25
|
const node_path = __toESM(require("node:path"));
|
|
26
26
|
const __optique_core_annotations = __toESM(require("@optique/core/annotations"));
|
|
27
27
|
const __optique_core_extension = __toESM(require("@optique/core/extension"));
|
|
28
|
+
const __optique_core_fluent = __toESM(require("@optique/core/fluent"));
|
|
28
29
|
const __optique_core_message = __toESM(require("@optique/core/message"));
|
|
29
30
|
|
|
30
31
|
//#region src/index.ts
|
|
@@ -423,7 +424,7 @@ function bindConfig(parser, options) {
|
|
|
423
424
|
configurable: true,
|
|
424
425
|
enumerable: false
|
|
425
426
|
});
|
|
426
|
-
return boundParser;
|
|
427
|
+
return (0, __optique_core_fluent.fluent)(boundParser);
|
|
427
428
|
}
|
|
428
429
|
/**
|
|
429
430
|
* Helper function to get value from config or default.
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
2
2
|
import { ParserValuePlaceholder, SourceContext } from "@optique/core/context";
|
|
3
3
|
import { Parser } from "@optique/core/parser";
|
|
4
|
+
import { FluentParser } from "@optique/core/fluent";
|
|
4
5
|
|
|
5
6
|
//#region src/index.d.ts
|
|
6
7
|
|
|
@@ -242,6 +243,6 @@ interface BindConfigOptions<T, TValue, TConfigMeta = ConfigMeta> {
|
|
|
242
243
|
* });
|
|
243
244
|
* ```
|
|
244
245
|
*/
|
|
245
|
-
declare function bindConfig<M extends "sync" | "async", TValue, TState, T, TConfigMeta = ConfigMeta>(parser: Parser<M, TValue, TState>, options: BindConfigOptions<T, TValue, TConfigMeta>):
|
|
246
|
+
declare function bindConfig<M extends "sync" | "async", TValue, TState, T, TConfigMeta = ConfigMeta>(parser: Parser<M, TValue, TState>, options: BindConfigOptions<T, TValue, TConfigMeta>): FluentParser<M, TValue, TState>;
|
|
246
247
|
//#endregion
|
|
247
248
|
export { BindConfigOptions, ConfigContext, ConfigContextOptions, ConfigContextRequiredOptions, ConfigLoadResult, ConfigMeta, bindConfig, createConfigContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FluentParser } from "@optique/core/fluent";
|
|
1
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
2
3
|
import { ParserValuePlaceholder, SourceContext } from "@optique/core/context";
|
|
3
4
|
import { Parser } from "@optique/core/parser";
|
|
@@ -242,6 +243,6 @@ interface BindConfigOptions<T, TValue, TConfigMeta = ConfigMeta> {
|
|
|
242
243
|
* });
|
|
243
244
|
* ```
|
|
244
245
|
*/
|
|
245
|
-
declare function bindConfig<M extends "sync" | "async", TValue, TState, T, TConfigMeta = ConfigMeta>(parser: Parser<M, TValue, TState>, options: BindConfigOptions<T, TValue, TConfigMeta>):
|
|
246
|
+
declare function bindConfig<M extends "sync" | "async", TValue, TState, T, TConfigMeta = ConfigMeta>(parser: Parser<M, TValue, TState>, options: BindConfigOptions<T, TValue, TConfigMeta>): FluentParser<M, TValue, TState>;
|
|
246
247
|
//#endregion
|
|
247
248
|
export { BindConfigOptions, ConfigContext, ConfigContextOptions, ConfigContextRequiredOptions, ConfigLoadResult, ConfigMeta, bindConfig, createConfigContext };
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { readFileSync } from "node:fs";
|
|
|
2
2
|
import { dirname, resolve } from "node:path";
|
|
3
3
|
import { getAnnotations } from "@optique/core/annotations";
|
|
4
4
|
import { defineTraits, delegateSuggestNodes, inheritAnnotations, injectAnnotations, mapModeValue, mapSourceMetadata, withAnnotationView, wrapForMode } from "@optique/core/extension";
|
|
5
|
+
import { fluent } from "@optique/core/fluent";
|
|
5
6
|
import { message } from "@optique/core/message";
|
|
6
7
|
|
|
7
8
|
//#region src/index.ts
|
|
@@ -400,7 +401,7 @@ function bindConfig(parser, options) {
|
|
|
400
401
|
configurable: true,
|
|
401
402
|
enumerable: false
|
|
402
403
|
});
|
|
403
|
-
return boundParser;
|
|
404
|
+
return fluent(boundParser);
|
|
404
405
|
}
|
|
405
406
|
/**
|
|
406
407
|
* Helper function to get value from config or default.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/config",
|
|
3
|
-
"version": "1.2.0-dev.
|
|
3
|
+
"version": "1.2.0-dev.2187",
|
|
4
4
|
"description": "Configuration file support for Optique with Standard Schema validation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@standard-schema/spec": "^1.1.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@optique/core": "1.2.0-dev.
|
|
68
|
+
"@optique/core": "1.2.0-dev.2187+6112b083"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@standard-schema/spec": "^1.1.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"tsdown": "^0.13.0",
|
|
75
75
|
"typescript": "^5.8.3",
|
|
76
76
|
"zod": "^3.25.0 || ^4.0.0",
|
|
77
|
-
"@optique/env": "1.2.0-dev.
|
|
77
|
+
"@optique/env": "1.2.0-dev.2187+6112b083"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "tsdown",
|