@namiml/expo-sdk 3.4.3-dev.202606112157 → 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 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 !!value && (!(value.toString().match(sdkCore.LIQUID_VARIABLE_REGEX)) === expected);
2742
+ return present === expected;
2742
2743
  }
2743
- return !!value && !value.toString().match(sdkCore.LIQUID_VARIABLE_REGEX);
2744
+ return present;
2744
2745
  }
2745
2746
  if (operator === 'notSet') {
2746
- return !value || !!value.toString().match(sdkCore.LIQUID_VARIABLE_REGEX);
2747
+ return value == null || value === '' || !!value.toString().match(sdkCore.LIQUID_VARIABLE_REGEX);
2747
2748
  }
2748
2749
  if (operator === 'gt')
2749
2750
  return value > expected;