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

axe-sarif-converter

Package Overview
Dependencies
Maintainers
4
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.5.1 to 2.6.0

1

dist/axe-raw-sarif-converter.js

@@ -41,2 +41,3 @@ "use strict";

version: '2.1.0',
$schema: 'https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json',
runs: [this.convertRun(results, converterOptions, environmentData)],

@@ -43,0 +44,0 @@ };

2

dist/cli.js

@@ -70,3 +70,3 @@ #!/usr/bin/env node

if (Array.isArray(inputFileJson)) {
// Treating as array of axe results, like axe-cli produces
// Treating as array of axe results, like @axe-core/cli produces
return inputFileJson.map(_1.convertAxeToSarif);

@@ -73,0 +73,0 @@ }

@@ -41,2 +41,3 @@ "use strict";

version: '2.1.0',
$schema: 'https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json',
runs: [this.convertRun(results, options)],

@@ -43,0 +44,0 @@ };

{
"name": "axe-sarif-converter",
"version": "2.5.1",
"version": "2.6.0",
"description": "Convert axe-core accessibility scan results to the SARIF format",

@@ -17,5 +17,5 @@ "main": "dist/index.js",

"dependencies": {
"@types/sarif": ">=2.1.1 <=2.1.2",
"@types/sarif": ">=2.1.1 <=2.1.4",
"axe-core": "^3.2.2 || ^4.0.0",
"yargs": "^15.0.2"
"yargs": "^16.0.3"
},

@@ -33,3 +33,3 @@ "devDependencies": {

"jest-circus": "^26.0.0",
"jest-junit": "^11.0.1",
"jest-junit": "^12.0.0",
"license-check-and-add": "^3.0.3",

@@ -39,3 +39,3 @@ "lodash": "^4.17.15",

"rimraf": "^3.0.0",
"semantic-release": "^17.0.1",
"semantic-release": "^17.1.1",
"ts-jest": "^26.0.0",

@@ -48,3 +48,4 @@ "typemoq": "^2.1.0",

"acorn": "^7.1.1",
"kind-of": "^6.0.3"
"kind-of": "^6.0.3",
"semantic-release/**/lock-verify/**/yargs": "^15.4.1"
},

@@ -51,0 +52,0 @@ "scripts": {

@@ -19,3 +19,3 @@ <!--

Before using axe-sarif-converter, you will need to run an [axe](https://github.com/dequelabs/axe-core) accessibility scan to produce some axe results to convert. Typically, you would do this by using an axe integration library for your favorite browser automation tool ([axe-puppeteer](https://github.com/dequelabs/axe-puppeteer), [axe-webdriverjs](https://github.com/dequelabs/axe-webdriverjs), [cypress-axe](https://github.com/avanslaars/cypress-axe)).
Before using axe-sarif-converter, you will need to run an [axe](https://github.com/dequelabs/axe-core) accessibility scan to produce some axe results to convert. Typically, you would do this by using an axe integration library for your favorite browser automation tool ([@axe-core/puppeteer](https://github.com/dequelabs/axe-core-npm/tree/develop/packages/puppeteer), [@axe-core/webdriverjs](https://github.com/dequelabs/axe-core-npm/tree/develop/packages/webdriverjs), [cypress-axe](https://github.com/avanslaars/cypress-axe)).

@@ -25,6 +25,6 @@ axe-sarif-converter exports a single function, named `convertAxeToSarif`. Use it like this:

```ts
import * as Axe from 'axe';
import * as AxePuppeteer from 'axe-puppeteer';
import * as Axe from 'axe-core';
import * as AxePuppeteer from '@axe-core/puppeteer';
import * as fs from 'fs';
import * as Puppeteer from 'puppeteer'
import * as Puppeteer from 'puppeteer';
import * as util from 'util';

@@ -35,4 +35,4 @@

test('my accessibility test', async () => {
// This example uses axe-puppeteer, but you can use any axe-based library
// that outputs axe scan results in the default axe output format
// This example uses @axe-core/puppeteer, but you can use any axe-based
// library that outputs axe scan results in the default axe output format
const testPage: Puppeteer.Page = /* ... set up your test page ... */;

@@ -55,5 +55,5 @@ const axeResults: Axe.AxeResults = await new AxePuppeteer(testPage).analyze();

```bash
# axe-cli is used here for example purposes only; you could also run axe-core
# @axe-core/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-core/cli https://accessibilityinsights.io --save ./sample-axe-results.json

@@ -73,3 +73,3 @@ npx axe-sarif-converter --input-files ./sample-axe-results.json --output-file ./sample-axe-results.sarif

- axe-sarif-converter version 2.x supports input from version ^3.2.0 || ^4.0.0 of axe-core (tested with 3.2.2, 3.3.2, 3.4.1, 3.4.2, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.5.5, and 4.0.1) and outputs SARIF v2.1
- axe-sarif-converter version 2.x supports input from version ^3.2.0 || ^4.0.0 of axe-core (tested with 3.2.2, 3.3.2, 3.4.1, 3.4.2, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.5.5, 4.0.1, and 4.0.2) and outputs SARIF v2.1
- axe-sarif-converter version 1.x supports input from version >= 3.2.0 < 3.3.0 of axe-core (tested with 3.2.2) and outputs SARIF v2.0

@@ -116,3 +116,3 @@

```
1. Update the versions of axe-cli and axe-core in `src/test-resources/generator/package.json`
1. Update the versions of @axe-core/cli and axe-core in `src/test-resources/generator/package.json`
1. Generate test resource files for the new version with:

@@ -119,0 +119,0 @@

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