@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 +1 -1
- package/dist/cli/bin.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1250,7 +1250,7 @@ function removeDollarRestProps(source) {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
|
|
1252
1252
|
// src/recipes/svelte-5/codemods/state-effect-sync.ts
|
|
1253
|
-
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;
|
|
1253
|
+
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;
|
|
1254
1254
|
function stateEffectSyncToDerived(source) {
|
|
1255
1255
|
return source.replace(PATTERN, (full, name, initExpr, effectExpr) => {
|
|
1256
1256
|
if (initExpr.trim() !== effectExpr.trim()) return full;
|