@optique/config 0.10.0-dev.355 → 0.10.0-dev.360
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
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { bindConfig, clearActiveConfig, configKey, createConfigContext, getActiveConfig, setActiveConfig } from "./src-
|
|
1
|
+
import { bindConfig, clearActiveConfig, configKey, createConfigContext, getActiveConfig, setActiveConfig } from "./src-BugYO70U.js";
|
|
2
2
|
|
|
3
3
|
export { bindConfig, clearActiveConfig, configKey, createConfigContext, getActiveConfig, setActiveConfig };
|
package/dist/run.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_src = require('./src-
|
|
1
|
+
const require_src = require('./src-BymfS_8n.cjs');
|
|
2
2
|
const node_fs_promises = require_src.__toESM(require("node:fs/promises"));
|
|
3
3
|
const node_path = require_src.__toESM(require("node:path"));
|
|
4
4
|
const node_process = require_src.__toESM(require("node:process"));
|
package/dist/run.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clearActiveConfig, configKey, setActiveConfig } from "./src-
|
|
1
|
+
import { clearActiveConfig, configKey, setActiveConfig } from "./src-BugYO70U.js";
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
import { basename } from "node:path";
|
|
4
4
|
import process from "node:process";
|
|
@@ -191,7 +191,10 @@ function bindConfig(parser, options) {
|
|
|
191
191
|
return getConfigOrDefault(state, options);
|
|
192
192
|
},
|
|
193
193
|
suggest: parser.suggest,
|
|
194
|
-
getDocFragments
|
|
194
|
+
getDocFragments(state, upperDefaultValue) {
|
|
195
|
+
const defaultValue = upperDefaultValue ?? options.default;
|
|
196
|
+
return parser.getDocFragments(state, defaultValue);
|
|
197
|
+
}
|
|
195
198
|
};
|
|
196
199
|
}
|
|
197
200
|
/**
|
|
@@ -214,7 +214,10 @@ function bindConfig(parser, options) {
|
|
|
214
214
|
return getConfigOrDefault(state, options);
|
|
215
215
|
},
|
|
216
216
|
suggest: parser.suggest,
|
|
217
|
-
getDocFragments
|
|
217
|
+
getDocFragments(state, upperDefaultValue) {
|
|
218
|
+
const defaultValue = upperDefaultValue ?? options.default;
|
|
219
|
+
return parser.getDocFragments(state, defaultValue);
|
|
220
|
+
}
|
|
218
221
|
};
|
|
219
222
|
}
|
|
220
223
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/config",
|
|
3
|
-
"version": "0.10.0-dev.
|
|
3
|
+
"version": "0.10.0-dev.360+0d55f751",
|
|
4
4
|
"description": "Configuration file support for Optique with Standard Schema validation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@standard-schema/spec": "^1.1.0"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@optique/core": "0.10.0-dev.
|
|
70
|
+
"@optique/core": "0.10.0-dev.360+0d55f751"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@standard-schema/spec": "^1.1.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "tsdown",
|
|
81
81
|
"prepublish": "tsdown",
|
|
82
|
-
"test": "
|
|
83
|
-
"test:bun": "
|
|
82
|
+
"test": "node --experimental-transform-types --test",
|
|
83
|
+
"test:bun": "bun test",
|
|
84
84
|
"test:deno": "deno test",
|
|
85
85
|
"test-all": "tsdown && node --experimental-transform-types --test && bun test && deno test"
|
|
86
86
|
}
|