@ronin/compiler 0.13.10-leo-ron-1099-experimental-305 → 0.13.11-leo-ron-1099-experimental-306
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.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -784,8 +784,11 @@ var composeFieldValues = (models, model, statementParams, instructionName, value
|
|
784
784
|
);
|
785
785
|
const collectStatementValue = options.type !== "fields";
|
786
786
|
const symbol = getSymbol(value);
|
787
|
-
|
788
|
-
let conditionValue =
|
787
|
+
let conditionMatcher = "=";
|
788
|
+
let conditionValue = value;
|
789
|
+
if (options.condition) {
|
790
|
+
[conditionMatcher, conditionValue] = WITH_CONDITIONS[options.condition](value);
|
791
|
+
}
|
789
792
|
if (symbol) {
|
790
793
|
if (symbol?.type === "expression") {
|
791
794
|
conditionValue = parseFieldExpression(
|
@@ -803,7 +806,7 @@ var composeFieldValues = (models, model, statementParams, instructionName, value
|
|
803
806
|
}
|
804
807
|
if (options.type === "fields") return conditionSelector;
|
805
808
|
if (options.type === "values") return conditionValue;
|
806
|
-
return `${conditionSelector} ${
|
809
|
+
return `${conditionSelector} ${conditionMatcher} ${conditionValue}`;
|
807
810
|
};
|
808
811
|
var composeConditions = (models, model, statementParams, instructionName, value, options) => {
|
809
812
|
const isNested = isObject(value) && Object.keys(value).length > 0;
|
package/package.json
CHANGED