gbu-accessibility-package 3.8.3 → 3.8.5

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/README-vi.md CHANGED
@@ -362,6 +362,7 @@ await fixer.checkFileSizes('./src');
362
362
  ### Tối ưu hóa dự án
363
363
 
364
364
  - **File không sử dụng** → Phát hiện file không được tham chiếu ở đâu trong toàn bộ dự án
365
+ - **File types được kiểm tra**: Hình ảnh, CSS, JavaScript, JSX, TypeScript, Vue, PHP, JSON, Markdown, XML, PDF, Video, Audio files (không bao gồm HTML)
365
366
  - **Quét toàn diện**: Phân tích từ project root, không giới hạn thư mục hiện tại
366
367
  - **Cross-reference detection**: Tìm tham chiếu từ HTML, CSS, JavaScript, JSON, và các file khác
367
368
  - **Multiple path formats**: Hỗ trợ relative paths, absolute paths, imports, requires
package/README.md CHANGED
@@ -349,7 +349,7 @@ await fixer.checkFileSizes('./src');
349
349
 
350
350
  ### Project Optimization
351
351
  - **Unused Files** → Detect files not referenced anywhere in the project
352
- - Images, CSS, JavaScript, HTML files
352
+ - Images, CSS, JavaScript, JSX, TypeScript, Vue, PHP, JSON, Markdown, XML, PDF, Video, Audio files
353
353
  - Local file references analysis
354
354
  - Heuristic detection with manual review recommendations
355
355
  - **Dead Code Analysis** → Find unused CSS rules and JavaScript functions
package/lib/fixer.js CHANGED
@@ -5768,7 +5768,8 @@ class AccessibilityFixer {
5768
5768
 
5769
5769
  async findAllProjectFiles(directory) {
5770
5770
  const files = [];
5771
- const extensions = ['.html', '.css', '.js', '.jpg', '.jpeg', '.png', '.gif', '.svg', '.webp', '.ico', '.pdf', '.mp4', '.webm', '.mp3', '.wav'];
5771
+ // Check all relevant file types except HTML files
5772
+ const extensions = ['.css', '.js', '.jsx', '.ts', '.tsx', '.vue', '.php', '.json', '.md', '.xml', '.jpg', '.jpeg', '.png', '.gif', '.svg', '.webp', '.ico', '.pdf', '.mp4', '.webm', '.mp3', '.wav'];
5772
5773
 
5773
5774
  const scan = async (dir) => {
5774
5775
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gbu-accessibility-package",
3
- "version": "3.8.3",
3
+ "version": "3.8.5",
4
4
  "description": "Comprehensive accessibility fixes and project optimization for HTML files. Smart context-aware alt text generation, form labels, button names, link names, landmarks, heading analysis, WCAG-compliant role attributes, unused files detection, dead code analysis, broken external links detection, and missing local resources detection. Covers major axe DevTools issues with individual fix modes.",
5
5
  "main": "index.js",
6
6
  "bin": {