@arela/uploader 1.0.9 → 1.0.10

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arela/uploader",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "CLI to upload files/directories to Arela",
5
5
  "bin": {
6
6
  "arela": "./src/index.js"
@@ -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
 
@@ -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.9';
37
+ return packageJson.version || '1.0.10';
38
38
  } catch (error) {
39
39
  console.warn('⚠️ Could not read package.json version, using fallback');
40
- return '1.0.9';
40
+ return '1.0.10';
41
41
  }
42
42
  }
43
43