@optique/env 1.0.0-dev.788 → 1.0.0-dev.886
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 +8 -0
- package/dist/index.js +8 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -248,6 +248,14 @@ function bool(options = {}) {
|
|
|
248
248
|
},
|
|
249
249
|
format(value) {
|
|
250
250
|
return value ? "true" : "false";
|
|
251
|
+
},
|
|
252
|
+
suggest(prefix) {
|
|
253
|
+
const allLiterals = [...TRUE_LITERALS, ...FALSE_LITERALS];
|
|
254
|
+
const normalizedPrefix = prefix.toLowerCase();
|
|
255
|
+
return allLiterals.filter((lit) => lit.startsWith(normalizedPrefix)).map((lit) => ({
|
|
256
|
+
kind: "literal",
|
|
257
|
+
text: lit
|
|
258
|
+
}));
|
|
251
259
|
}
|
|
252
260
|
};
|
|
253
261
|
}
|
package/dist/index.js
CHANGED
|
@@ -225,6 +225,14 @@ function bool(options = {}) {
|
|
|
225
225
|
},
|
|
226
226
|
format(value) {
|
|
227
227
|
return value ? "true" : "false";
|
|
228
|
+
},
|
|
229
|
+
suggest(prefix) {
|
|
230
|
+
const allLiterals = [...TRUE_LITERALS, ...FALSE_LITERALS];
|
|
231
|
+
const normalizedPrefix = prefix.toLowerCase();
|
|
232
|
+
return allLiterals.filter((lit) => lit.startsWith(normalizedPrefix)).map((lit) => ({
|
|
233
|
+
kind: "literal",
|
|
234
|
+
text: lit
|
|
235
|
+
}));
|
|
228
236
|
}
|
|
229
237
|
};
|
|
230
238
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/env",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.886+4b42a9bd",
|
|
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.
|
|
57
|
+
"@optique/core": "1.0.0-dev.886+4b42a9bd"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/node": "^20.19.9",
|