@optique/core 1.0.0-dev.1682 → 1.0.0-dev.1684
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/facade.cjs +2 -2
- package/dist/facade.js +2 -2
- package/package.json +1 -1
package/dist/facade.cjs
CHANGED
|
@@ -1235,7 +1235,7 @@ async function runWithBody(parser, programName, contexts, args, options) {
|
|
|
1235
1235
|
if (parser.$mode === "async") return runParser(parser, programName, args, options);
|
|
1236
1236
|
return Promise.resolve(runParser(parser, programName, args, options));
|
|
1237
1237
|
}
|
|
1238
|
-
const ctxOptions = options
|
|
1238
|
+
const ctxOptions = options.contextOptions;
|
|
1239
1239
|
const { annotations: phase1Annotations, annotationsList: phase1AnnotationsList, hasDynamic: needsTwoPhase } = await collectPhase1Annotations(contexts, ctxOptions);
|
|
1240
1240
|
if (!needsTwoPhase) {
|
|
1241
1241
|
const augmentedParser = injectAnnotationsIntoParser(parser, phase1Annotations);
|
|
@@ -1303,7 +1303,7 @@ async function runWith(parser, programName, contexts, options) {
|
|
|
1303
1303
|
function runWithSyncBody(parser, programName, contexts, args, options) {
|
|
1304
1304
|
require_validate.validateContextIds(contexts);
|
|
1305
1305
|
if (needsEarlyExit(args, options)) return runParser(parser, programName, args, options);
|
|
1306
|
-
const ctxOptions = options
|
|
1306
|
+
const ctxOptions = options.contextOptions;
|
|
1307
1307
|
const { annotations: phase1Annotations, annotationsList: phase1AnnotationsList, hasDynamic: needsTwoPhase } = collectPhase1AnnotationsSync(contexts, ctxOptions);
|
|
1308
1308
|
if (!needsTwoPhase) {
|
|
1309
1309
|
const augmentedParser = injectAnnotationsIntoParser(parser, phase1Annotations);
|
package/dist/facade.js
CHANGED
|
@@ -1235,7 +1235,7 @@ async function runWithBody(parser, programName, contexts, args, options) {
|
|
|
1235
1235
|
if (parser.$mode === "async") return runParser(parser, programName, args, options);
|
|
1236
1236
|
return Promise.resolve(runParser(parser, programName, args, options));
|
|
1237
1237
|
}
|
|
1238
|
-
const ctxOptions = options
|
|
1238
|
+
const ctxOptions = options.contextOptions;
|
|
1239
1239
|
const { annotations: phase1Annotations, annotationsList: phase1AnnotationsList, hasDynamic: needsTwoPhase } = await collectPhase1Annotations(contexts, ctxOptions);
|
|
1240
1240
|
if (!needsTwoPhase) {
|
|
1241
1241
|
const augmentedParser = injectAnnotationsIntoParser(parser, phase1Annotations);
|
|
@@ -1303,7 +1303,7 @@ async function runWith(parser, programName, contexts, options) {
|
|
|
1303
1303
|
function runWithSyncBody(parser, programName, contexts, args, options) {
|
|
1304
1304
|
validateContextIds(contexts);
|
|
1305
1305
|
if (needsEarlyExit(args, options)) return runParser(parser, programName, args, options);
|
|
1306
|
-
const ctxOptions = options
|
|
1306
|
+
const ctxOptions = options.contextOptions;
|
|
1307
1307
|
const { annotations: phase1Annotations, annotationsList: phase1AnnotationsList, hasDynamic: needsTwoPhase } = collectPhase1AnnotationsSync(contexts, ctxOptions);
|
|
1308
1308
|
if (!needsTwoPhase) {
|
|
1309
1309
|
const augmentedParser = injectAnnotationsIntoParser(parser, phase1Annotations);
|