@reddoorla/maintenance 0.6.2 → 0.6.3

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/cli/bin.js CHANGED
@@ -1524,7 +1524,7 @@ function removeDollarRestProps(source) {
1524
1524
  }
1525
1525
 
1526
1526
  // src/recipes/svelte-5/codemods/state-effect-sync.ts
1527
- var PATTERN = /let\s+(\w+)\s*=\s*\$state\(\s*([^)]+?)\s*\)\s*;[ \t\r\n]*\$effect\(\s*\(\s*\)\s*=>\s*\{\s*\w+\s*;\s*\1\s*=\s*([^;}]+?)\s*\}\s*\)\s*;?/g;
1527
+ var PATTERN = /let\s+(\w+)\s*=\s*\$state\(\s*([^)]+?)\s*\)\s*;[ \t\r\n]*\$effect\(\s*\(\s*\)\s*=>\s*\{\s*\w+\s*;\s*\1\s*=\s*([^;}]+?)\s*;?\s*\}\s*\)\s*;?/g;
1528
1528
  function stateEffectSyncToDerived(source) {
1529
1529
  return source.replace(PATTERN, (full, name, initExpr, effectExpr) => {
1530
1530
  if (initExpr.trim() !== effectExpr.trim()) return full;