aoye 0.0.64 → 0.0.65

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/aoye.cjs.js CHANGED
@@ -1603,7 +1603,7 @@ function effect(callback, depOrOpt, opt) {
1603
1603
  return ef;
1604
1604
  }
1605
1605
  let mounted = false;
1606
- const deps = depOrOpt;
1606
+ const deps = depOrOpt.map(dep => typeof dep === 'function' ? new Computed(dep) : dep);
1607
1607
  const immediate = deps.length === 0 ? true : opt.immediate ?? true;
1608
1608
  const vs = Array.from({
1609
1609
  length: deps.length