@stacksjs/stx 0.2.120 → 0.2.122

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/render.js CHANGED
@@ -120,7 +120,12 @@ ${clientScripts.join(`
120
120
  const contentMatch = fullScript.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);
121
121
  if (!contentMatch)
122
122
  return fullScript;
123
- return await processClientScript(contentMatch[1], { eventBindings, templateContent: output, serverData });
123
+ return await processClientScript(contentMatch[1], {
124
+ eventBindings,
125
+ templateContent: output,
126
+ serverData,
127
+ filePath
128
+ });
124
129
  }))).join(`
125
130
  `);
126
131
  if (output.match(/(<\/body>)/i))
package/dist/signals.js CHANGED
@@ -2414,7 +2414,8 @@ else if (name === 'ref' || name === ':ref' || name === 'x-ref' || name === 'data
2414
2414
  // handler like \`pick(option.value)\` receives the whole item.
2415
2415
  // It is not an error, so it lands silently: the wrong value is
2416
2416
  // stored and only surfaces much later.
2417
- if (v && typeof v === 'function' && v._isSignal && !v._isStxLoopItem && expressionUsesSignalApi(value, k)) {
2417
+ if (v && typeof v === 'function' && v._isSignal && !v._isStxLoopItem
2418
+ && (expressionCallsSignal(value, k) || expressionUsesSignalApi(value, k))) {
2418
2419
  return 'var ' + k + ' = __s["' + k + '"]';
2419
2420
  }
2420
2421
  return 'var ' + k + ' = __s["' + k + '"] && typeof __s["' + k + '"] === "function" && __s["' + k + '"]._isSignal ? __s["' + k + '"]() : __s["' + k + '"]';