@arela/uploader 1.0.9 → 1.0.11
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/package.json
CHANGED
|
@@ -317,6 +317,7 @@ export class PropagateCommand {
|
|
|
317
317
|
directory_path,
|
|
318
318
|
arela_path,
|
|
319
319
|
rfc,
|
|
320
|
+
detected_pedimento,
|
|
320
321
|
detected_pedimento_year,
|
|
321
322
|
} = pedimento;
|
|
322
323
|
|
|
@@ -343,6 +344,7 @@ export class PropagateCommand {
|
|
|
343
344
|
id: file.id,
|
|
344
345
|
arelaPath: arela_path,
|
|
345
346
|
rfc: rfc,
|
|
347
|
+
detectedPedimento: detected_pedimento,
|
|
346
348
|
detectedPedimentoYear: detected_pedimento_year,
|
|
347
349
|
propagatedFromId: id,
|
|
348
350
|
propagationError: null,
|
|
@@ -544,6 +544,7 @@ export class ScanCommand {
|
|
|
544
544
|
/**
|
|
545
545
|
* Normalize file record for database insertion
|
|
546
546
|
* Stores paths with forward slashes for consistency but keeps them absolute
|
|
547
|
+
* Sets likelySimplificado to true if file is a PDF and filename contains 'simp'
|
|
547
548
|
* @private
|
|
548
549
|
*/
|
|
549
550
|
#normalizeFileRecord(filePath, fileStats, basePath, scanTimestamp) {
|
|
@@ -557,6 +558,11 @@ export class ScanCommand {
|
|
|
557
558
|
const relativePath = PathNormalizer.getRelativePath(filePath, basePath);
|
|
558
559
|
const absolutePath = PathNormalizer.normalizeSeparators(filePath);
|
|
559
560
|
|
|
561
|
+
// Determine if this is potentially a simplificado document
|
|
562
|
+
// Must be a PDF and filename must contain 'simp' (case-insensitive)
|
|
563
|
+
const likelySimplificado =
|
|
564
|
+
fileExtension === 'pdf' && fileName.toLowerCase().includes('simp');
|
|
565
|
+
|
|
560
566
|
return {
|
|
561
567
|
fileName,
|
|
562
568
|
fileExtension,
|
|
@@ -566,6 +572,7 @@ export class ScanCommand {
|
|
|
566
572
|
sizeBytes: Number(fileStats.size),
|
|
567
573
|
modifiedAt: fileStats.mtime.toISOString(),
|
|
568
574
|
scanTimestamp,
|
|
575
|
+
likelySimplificado,
|
|
569
576
|
};
|
|
570
577
|
}
|
|
571
578
|
|
package/src/config/config.js
CHANGED
|
@@ -34,10 +34,10 @@ class Config {
|
|
|
34
34
|
const __dirname = path.dirname(__filename);
|
|
35
35
|
const packageJsonPath = path.resolve(__dirname, '../../package.json');
|
|
36
36
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
37
|
-
return packageJson.version || '1.0.
|
|
37
|
+
return packageJson.version || '1.0.11';
|
|
38
38
|
} catch (error) {
|
|
39
39
|
console.warn('⚠️ Could not read package.json version, using fallback');
|
|
40
|
-
return '1.0.
|
|
40
|
+
return '1.0.11';
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|