@namiml/expo-sdk 3.4.3-dev.202606120301 → 3.4.3-dev.202606121502

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.mjs CHANGED
@@ -2736,13 +2736,14 @@ function testObjectMatches(ctx, { value: rawValue, expected, operator }, block,
2736
2736
  return !value?.includes?.(expected);
2737
2737
  }
2738
2738
  if (operator === 'set') {
2739
+ const present = value != null && value !== '' && !value.toString().match(LIQUID_VARIABLE_REGEX);
2739
2740
  if (typeof expected === 'boolean') {
2740
- return !!value && (!(value.toString().match(LIQUID_VARIABLE_REGEX)) === expected);
2741
+ return present === expected;
2741
2742
  }
2742
- return !!value && !value.toString().match(LIQUID_VARIABLE_REGEX);
2743
+ return present;
2743
2744
  }
2744
2745
  if (operator === 'notSet') {
2745
- return !value || !!value.toString().match(LIQUID_VARIABLE_REGEX);
2746
+ return value == null || value === '' || !!value.toString().match(LIQUID_VARIABLE_REGEX);
2746
2747
  }
2747
2748
  if (operator === 'gt')
2748
2749
  return value > expected;