scai 0.1.48 → 0.1.49
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.
|
@@ -11,7 +11,7 @@ export async function extractFunctionsFromFile(filePath, content, fileId) {
|
|
|
11
11
|
const type = detectFileType(filePath).trim().toLowerCase();
|
|
12
12
|
try {
|
|
13
13
|
if (type === 'js' || type === 'ts' || type === 'javascript' || type === 'typescript') {
|
|
14
|
-
log(`✅ Attempting to extract JS functions from ${filePath}
|
|
14
|
+
log(`✅ Attempting to extract JS functions from ${filePath}`);
|
|
15
15
|
return await extractFromJS(filePath, content, fileId);
|
|
16
16
|
}
|
|
17
17
|
if (type === 'java') {
|
|
@@ -4,6 +4,6 @@ export function isGeneratedOrBundledFile(filePath) {
|
|
|
4
4
|
const base = path.basename(filePath);
|
|
5
5
|
const isMinified = /\.min\.(js|ts)$/.test(base); // ✅ New check
|
|
6
6
|
const isHashNamed = /[-_.](worker|bundle|chunk|[a-f0-9]{6,})\.(js|ts)$/.test(base);
|
|
7
|
-
const isInOutputFolder = /[\\/]dist[\\/]|[\\/]build[\\/]|[\\/]assets[\\/]|[\\/]node_modules[\\/]/i.test(filePath);
|
|
7
|
+
const isInOutputFolder = /[\\/]dist[\\/]|[\\/]build[\\/]|[\\/]assets[\\/]|[\\/]node_modules[\\/]|[\\/]lib[\\/]|[\\/]plugin[s]?[\\/]/i.test(filePath);
|
|
8
8
|
return isMinified || isHashNamed || isInOutputFolder;
|
|
9
9
|
}
|