Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

axe-sarif-converter

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axe-sarif-converter - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

dist/cli.d.ts

2

dist/axe-raw-sarif-converter.js

@@ -48,3 +48,3 @@ "use strict";

tool: {
driver: __assign({}, this.getAxeProperties(environmentData), { rules: resultToRuleConverter.getRulePropertiesFromResults() }),
driver: __assign(__assign({}, this.getAxeProperties(environmentData)), { rules: resultToRuleConverter.getRulePropertiesFromResults() }),
},

@@ -51,0 +51,0 @@ invocations: this.invocationConverter(environmentData),

@@ -49,3 +49,3 @@ "use strict";

tool: {
driver: __assign({}, this.getAxeProperties(environmentData), { rules: resultToRuleConverter.getRulePropertiesFromResults() }),
driver: __assign(__assign({}, this.getAxeProperties(environmentData)), { rules: resultToRuleConverter.getRulePropertiesFromResults() }),
},

@@ -52,0 +52,0 @@ invocations: this.invocationConverter(environmentData),

@@ -47,3 +47,3 @@ "use strict";

if (wcagLinkData.title) {
taxa = __assign({}, taxa, { shortDescription: {
taxa = __assign(__assign({}, taxa), { shortDescription: {
text: wcagLinkData.title,

@@ -53,5 +53,5 @@ } });

if (wcagLinkData.url) {
taxa = __assign({}, taxa, { helpUri: wcagLinkData.url });
taxa = __assign(__assign({}, taxa), { helpUri: wcagLinkData.url });
}
return taxa;
}
{
"name": "axe-sarif-converter",
"version": "2.0.3",
"version": "2.1.0",
"description": "Convert axe-core accessibility scan results to the SARIF format",
"main": "dist/index.js",
"bin": "dist/cli.js",
"types": "dist/index.d.js",

@@ -17,3 +18,4 @@ "files": [

"@types/sarif": ">=2.1.1 <=2.1.2",
"axe-core": "^3.2.2"
"axe-core": "^3.2.2",
"yargs": "^14.0.0"
},

@@ -24,5 +26,6 @@ "devDependencies": {

"@types/node": "^12.6.8",
"@types/yargs": "^13.0.2",
"jest": "^24.8.0",
"jest-circus": "^24.8.0",
"jest-junit": "^6.4.0",
"jest-junit": "^8.0.0",
"license-check-and-add": "^2.3.6",

@@ -29,0 +32,0 @@ "lodash": "^4.17.15",

@@ -13,3 +13,3 @@ <!--

Convert [axe-core](https://github.com/dequelabs/axe-core) accessibility scan results to the [SARIF format](http://sarifweb.azurewebsites.net/).
Convert [axe-core](https://github.com/dequelabs/axe-core) accessibility scan results to the [SARIF format](http://sarifweb.azurewebsites.net/). Provides both a TypeScript API and a CLI tool.

@@ -50,2 +50,14 @@ Use this with the [Sarif Viewer Build Tab Azure DevOps Extension](https://marketplace.visualstudio.com/items?itemName=sariftools.sarif-viewer-build-tab) to visualize accessibility scan results in the build results of an [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) build.

You can also use axe-sarif-converter as a command line tool:
```bash
# axe-cli is used here for example purposes only; you could also run axe-core
# using your library of choice and JSON.stringify the results.
npx axe-cli https://accessibilityinsights.io --save ./sample-axe-results.json
npx axe-sarif-converter --input-files ./sample-axe-results.json --output-file ./sample-axe-results.sarif
```
See `npx axe-sarif-converter --help` for full command line option details.
## Samples

@@ -66,2 +78,22 @@

To get started working on the project:
1. Install dependencies:
- Install [Node.js](https://nodejs.org/en/download/) (LTS version)
- `npm install -g yarn`
- `yarn install`
1. Run all build, lint, and test steps:
- `yarn precheckin`
1. Run the CLI tool with your changes:
- `yarn build`
- `node dist/cli.js`
- Alternately, register a linked global `axe-sarif-converter` command with `npm install && npm link` (yarn doesn't work for this; see [yarnpkg/yarn#1585](https://github.com/yarnpkg/yarn/issues/1585))
### Contributor License Agreement
This project welcomes contributions and suggestions. Most contributions require you to agree to a

@@ -75,4 +107,6 @@ Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us

### Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc