wcag-scanner 1.2.5 → 1.2.55

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.md CHANGED
@@ -33,10 +33,10 @@ WCAG Scanner is a powerful accessibility testing tool that helps developers iden
33
33
  ### Using npm
34
34
 
35
35
  ```bash
36
- npm install wcag-scanner --save-dev
36
+ npm i wcag-scanner
37
37
  ```
38
38
 
39
39
  ### Using yarn
40
40
  ```bash
41
- yarn add wcag-scanner --dev
41
+ yarn add wcag-scanner
42
42
  ```
package/dist/scanner.d.ts CHANGED
@@ -41,4 +41,9 @@ export declare class WCAGScanner {
41
41
  * @returns ScanResults Current scan results
42
42
  */
43
43
  getResults(): ScanResults;
44
+ /**
45
+ * Update scanner options
46
+ * @param newOptions New options to apply
47
+ */
48
+ updateOptions(newOptions: Partial<ScannerOptions>): void;
44
49
  }
package/dist/scanner.js CHANGED
@@ -173,5 +173,15 @@ class WCAGScanner {
173
173
  getResults() {
174
174
  return this.results;
175
175
  }
176
+ /**
177
+ * Update scanner options
178
+ * @param newOptions New options to apply
179
+ */
180
+ updateOptions(newOptions) {
181
+ this.options = {
182
+ ...this.options,
183
+ ...newOptions
184
+ };
185
+ }
176
186
  }
177
187
  exports.WCAGScanner = WCAGScanner;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wcag-scanner",
3
- "version": "1.2.5",
3
+ "version": "1.2.55",
4
4
  "description": "Scan HTML for WCAG accessibility violations with AI-powered fix suggestions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,8 @@
20
20
  "test:coverage": "jest --coverage",
21
21
  "build": "rimraf dist && tsc",
22
22
  "prepublishOnly": "npm run build",
23
- "lint": "eslint src/**/*.ts"
23
+ "lint": "eslint src/**/*.ts",
24
+ "codecov": "codecov"
24
25
  },
25
26
  "repository": {
26
27
  "type": "git",
@@ -45,6 +46,7 @@
45
46
  "@types/node": "^22.13.8",
46
47
  "@typescript-eslint/eslint-plugin": "^8.24.0",
47
48
  "@typescript-eslint/parser": "^8.24.0",
49
+ "codecov": "^3.8.2",
48
50
  "eslint": "^9.21.0",
49
51
  "jest": "^29.7.0",
50
52
  "rimraf": "^6.0.1",