pasika 0.10.20 → 0.10.21
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.
|
@@ -3093,7 +3093,6 @@ var pureFunctionExtractRule = {
|
|
|
3093
3093
|
const exported = node.parent?.type === "ExportNamedDeclaration";
|
|
3094
3094
|
const moduleLevel = exported || node.parent?.type === "Program";
|
|
3095
3095
|
if (!moduleLevel) return;
|
|
3096
|
-
if (!isRouteFile && !exported) return;
|
|
3097
3096
|
const name = node.id?.name;
|
|
3098
3097
|
if (!name) return;
|
|
3099
3098
|
if (isRouteFile && ROUTE_HANDLER_EXPORT_NAMES.has(name)) return;
|
|
@@ -3109,7 +3108,6 @@ var pureFunctionExtractRule = {
|
|
|
3109
3108
|
const exported = container?.type === "ExportNamedDeclaration";
|
|
3110
3109
|
const moduleLevel = exported || container?.type === "Program";
|
|
3111
3110
|
if (!moduleLevel) return;
|
|
3112
|
-
if (!isRouteFile && !exported) return;
|
|
3113
3111
|
if (isRouteFile && ROUTE_HANDLER_EXPORT_NAMES.has(name)) return;
|
|
3114
3112
|
if (isComponentLikeName(name) || isHookName2(name)) return;
|
|
3115
3113
|
const init = node.init;
|