axe-sarif-converter
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "axe-sarif-converter", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Convert axe-core accessibility scan results to the SARIF format", | ||
@@ -12,2 +12,6 @@ "main": "dist/index.js", | ||
], | ||
"engines": { | ||
"node": ">= 8", | ||
"yarn": "^1.15.1" | ||
}, | ||
"dependencies": { | ||
@@ -17,21 +21,21 @@ "axe-core": "^3.2.2" | ||
"devDependencies": { | ||
"@types/jest": "^24.0.11", | ||
"@types/jest": "^24.0.12", | ||
"@types/lodash": "^4.14.123", | ||
"@types/node": "^11.13.0", | ||
"jest": "^24.5.0", | ||
"jest-circus": "^24.5.0", | ||
"jest-junit": "^6.3.0", | ||
"@types/node": "^11.13.9", | ||
"jest": "^24.7.1", | ||
"jest-circus": "^24.7.1", | ||
"jest-junit": "^6.4.0", | ||
"license-check-and-add": "^2.3.6", | ||
"lodash": "^4.17.11", | ||
"prettier": "^1.16.4", | ||
"prettier": "^1.17.0", | ||
"rimraf": "^2.6.3", | ||
"semantic-release": "^15.13.3", | ||
"ts-jest": "^24.0.1", | ||
"tslint": "^5.15.0", | ||
"tslint-microsoft-contrib": "^6.1.0", | ||
"ts-jest": "^24.0.2", | ||
"tslint": "^5.16.0", | ||
"tslint-microsoft-contrib": "^6.1.1", | ||
"typemoq": "^2.1.0", | ||
"typescript": "^3.4.1" | ||
"typescript": "^3.4.5" | ||
}, | ||
"scripts": { | ||
"prebuild": "npm run clean", | ||
"prebuild": "yarn clean", | ||
"build": "tsc -p .", | ||
@@ -44,3 +48,3 @@ "clean": "rimraf dist/* test-results/*", | ||
"copyrightheaders": "license-check-and-add", | ||
"precheckin": "npm run format-check && npm run lint && npm run build && npm test && npm run copyrightheaders", | ||
"precheckin": "yarn format-check && yarn lint && yarn build && yarn test && yarn copyrightheaders", | ||
"watch:build": "tsc -p . --watch", | ||
@@ -47,0 +51,0 @@ "watch:test": "jest --watch --coverage false --colors", |
@@ -24,2 +24,8 @@ <!-- | ||
```ts | ||
import * as Axe from 'axe'; | ||
import * as AxePuppeteer from 'axe-puppeteer'; | ||
import * as fs from 'fs'; | ||
import * as Puppeteer from 'puppeteer' | ||
import * as util from 'util'; | ||
import { convertAxeToSarif, SarifLog } from 'axe-sarif-converter'; | ||
@@ -37,3 +43,3 @@ | ||
// Output a SARIF file, perhaps for use with a Sarif Viewer tool | ||
await fs.promises.writeFile( | ||
await util.promisify(fs.writeFile)( | ||
'./test-results/my-accessibility-test.sarif', | ||
@@ -45,2 +51,6 @@ JSON.stringify(sarifResults), | ||
## Samples | ||
The [microsoft/axe-pipelines-samples](https://github.com/microsoft/axe-pipelines-samples) project contains full sample code that walks you through integrating this library into your project, from writing a test to seeing results in Azure Pipelines. | ||
## Contributing | ||
@@ -47,0 +57,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
152670
66