@namiml/expo-sdk 3.4.3-dev.202606120301 → 3.4.3-dev.202606121440
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 +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/utils/rendering.ts +4 -3
package/dist/index.cjs
CHANGED
|
@@ -2737,13 +2737,14 @@ function testObjectMatches(ctx, { value: rawValue, expected, operator }, block,
|
|
|
2737
2737
|
return !value?.includes?.(expected);
|
|
2738
2738
|
}
|
|
2739
2739
|
if (operator === 'set') {
|
|
2740
|
+
const present = value != null && value !== '' && !value.toString().match(sdkCore.LIQUID_VARIABLE_REGEX);
|
|
2740
2741
|
if (typeof expected === 'boolean') {
|
|
2741
|
-
return
|
|
2742
|
+
return present === expected;
|
|
2742
2743
|
}
|
|
2743
|
-
return
|
|
2744
|
+
return present;
|
|
2744
2745
|
}
|
|
2745
2746
|
if (operator === 'notSet') {
|
|
2746
|
-
return
|
|
2747
|
+
return value == null || value === '' || !!value.toString().match(sdkCore.LIQUID_VARIABLE_REGEX);
|
|
2747
2748
|
}
|
|
2748
2749
|
if (operator === 'gt')
|
|
2749
2750
|
return value > expected;
|