@optique/derived-defaults 1.4.0-dev.2715 → 1.4.0-dev.2716
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 +3 -1
- package/dist/index.js +3 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -21,8 +21,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
}) : target, mod));
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
|
-
const __optique_core_message = __toESM(require("@optique/core/message"));
|
|
25
24
|
const __optique_core_extension = __toESM(require("@optique/core/extension"));
|
|
25
|
+
const __optique_core_message = __toESM(require("@optique/core/message"));
|
|
26
26
|
const __optique_core_fluent = __toESM(require("@optique/core/fluent"));
|
|
27
27
|
const __optique_core_annotations = __toESM(require("@optique/core/annotations"));
|
|
28
28
|
|
|
@@ -342,6 +342,8 @@ function bindDerivedDefault(parser, options) {
|
|
|
342
342
|
configurable: true,
|
|
343
343
|
enumerable: false
|
|
344
344
|
});
|
|
345
|
+
const emptyStep = (0, __optique_core_extension.getEmptyInputBehavior)(parser).step;
|
|
346
|
+
(0, __optique_core_extension.defineEmptyInputBehavior)(boundParser, { ...emptyStep === void 0 ? {} : { step: emptyStep === "failure" ? "success" : emptyStep } });
|
|
345
347
|
return (0, __optique_core_fluent.fluent)(boundParser);
|
|
346
348
|
}
|
|
347
349
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { defineEmptyInputBehavior, defineTraits, delegateSuggestNodes, extractPhase2SeedKey, getEmptyInputBehavior, inheritAnnotations, inheritOptionScope, injectAnnotations, mapModeValue, mapSourceMetadata, withAnnotationView, wrapForMode } from "@optique/core/extension";
|
|
1
2
|
import { message } from "@optique/core/message";
|
|
2
|
-
import { defineTraits, delegateSuggestNodes, extractPhase2SeedKey, inheritAnnotations, inheritOptionScope, injectAnnotations, mapModeValue, mapSourceMetadata, withAnnotationView, wrapForMode } from "@optique/core/extension";
|
|
3
3
|
import { fluent } from "@optique/core/fluent";
|
|
4
4
|
import { getAnnotations } from "@optique/core/annotations";
|
|
5
5
|
|
|
@@ -319,6 +319,8 @@ function bindDerivedDefault(parser, options) {
|
|
|
319
319
|
configurable: true,
|
|
320
320
|
enumerable: false
|
|
321
321
|
});
|
|
322
|
+
const emptyStep = getEmptyInputBehavior(parser).step;
|
|
323
|
+
defineEmptyInputBehavior(boundParser, { ...emptyStep === void 0 ? {} : { step: emptyStep === "failure" ? "success" : emptyStep } });
|
|
322
324
|
return fluent(boundParser);
|
|
323
325
|
}
|
|
324
326
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/derived-defaults",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.2716",
|
|
4
4
|
"description": "Derived default value support for Optique",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
},
|
|
61
61
|
"sideEffects": false,
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@optique/core": "1.4.0-dev.
|
|
63
|
+
"@optique/core": "1.4.0-dev.2716+57cbdb77"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@optique/config": "1.4.0-dev.
|
|
67
|
-
"@optique/env": "1.4.0-dev.
|
|
68
|
-
"@optique/run": "1.4.0-dev.
|
|
66
|
+
"@optique/config": "1.4.0-dev.2716+57cbdb77",
|
|
67
|
+
"@optique/env": "1.4.0-dev.2716+57cbdb77",
|
|
68
|
+
"@optique/run": "1.4.0-dev.2716+57cbdb77",
|
|
69
69
|
"@types/node": "^24.0.0",
|
|
70
70
|
"fast-check": "^4.7.0",
|
|
71
71
|
"tsdown": "^0.13.0",
|