@optique/config 1.0.0-dev.600 → 1.0.0-dev.604
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -135,7 +135,7 @@ function createConfigContext(options) {
|
|
|
135
135
|
schema: options.schema,
|
|
136
136
|
mode: "dynamic",
|
|
137
137
|
getAnnotations(parsed, runtimeOptions) {
|
|
138
|
-
if (
|
|
138
|
+
if (parsed === void 0) return {};
|
|
139
139
|
const opts = runtimeOptions;
|
|
140
140
|
if (!opts || !opts.getConfigPath && !opts.load) throw new TypeError("Either getConfigPath or load must be provided in the runner options when using ConfigContext.");
|
|
141
141
|
const parsedValue = parsed;
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ function createConfigContext(options) {
|
|
|
112
112
|
schema: options.schema,
|
|
113
113
|
mode: "dynamic",
|
|
114
114
|
getAnnotations(parsed, runtimeOptions) {
|
|
115
|
-
if (
|
|
115
|
+
if (parsed === void 0) return {};
|
|
116
116
|
const opts = runtimeOptions;
|
|
117
117
|
if (!opts || !opts.getConfigPath && !opts.load) throw new TypeError("Either getConfigPath or load must be provided in the runner options when using ConfigContext.");
|
|
118
118
|
const parsedValue = parsed;
|
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.604+c1a6f556",
|
|
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.604+c1a6f556"
|
|
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.604+c1a6f556"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "tsdown",
|