@oddo/lang 0.0.15 → 0.0.16

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 CHANGED
@@ -3713,7 +3713,7 @@ function createReactiveExpr(oddoExpr, valueExpr, attrExpression = false) {
3713
3713
  const identifiers = allIdentifiers.filter((id) => isReactive(id));
3714
3714
  const pragma = attrExpression ? "computed" : "x";
3715
3715
  if (identifiers.length === 0) {
3716
- if (t.isLiteral(valueExpr)) {
3716
+ if (attrExpression || t.isLiteral(valueExpr)) {
3717
3717
  return valueExpr;
3718
3718
  }
3719
3719
  usedModifiers.add(pragma);
@@ -4780,7 +4780,7 @@ function convertArrowFunction2(expr) {
4780
4780
  body = null;
4781
4781
  }
4782
4782
  currentScope = savedScope;
4783
- if (reactiveDepsForBody.length > 0 || params.length > 0 && inReactiveScope) {
4783
+ if (reactiveDepsForBody.length > 0) {
4784
4784
  usedModifiers.add("liftFn");
4785
4785
  const depParams = reactiveDepsForBody.map((id) => t.identifier(id));
4786
4786
  const allParams = [...depParams, ...params];
package/dist/index.mjs CHANGED
@@ -3713,7 +3713,7 @@ function createReactiveExpr(oddoExpr, valueExpr, attrExpression = false) {
3713
3713
  const identifiers = allIdentifiers.filter((id) => isReactive(id));
3714
3714
  const pragma = attrExpression ? "computed" : "x";
3715
3715
  if (identifiers.length === 0) {
3716
- if (t.isLiteral(valueExpr)) {
3716
+ if (attrExpression || t.isLiteral(valueExpr)) {
3717
3717
  return valueExpr;
3718
3718
  }
3719
3719
  usedModifiers.add(pragma);
@@ -4780,7 +4780,7 @@ function convertArrowFunction2(expr) {
4780
4780
  body = null;
4781
4781
  }
4782
4782
  currentScope = savedScope;
4783
- if (reactiveDepsForBody.length > 0 || params.length > 0 && inReactiveScope) {
4783
+ if (reactiveDepsForBody.length > 0) {
4784
4784
  usedModifiers.add("liftFn");
4785
4785
  const depParams = reactiveDepsForBody.map((id) => t.identifier(id));
4786
4786
  const allParams = [...depParams, ...params];