New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@qualweb/earl-reporter

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qualweb/earl-reporter - npm Package Compare versions

Comparing version

to
0.2.3

60

dist/index.js

@@ -12,33 +12,31 @@ 'use strict';

const context = {
'@context': {
'@vocab': 'http://www.w3.org/ns/earl#',
'earl': 'http://www.w3.org/ns/earl#',
'WCAG20': 'http://www.w3.org/TR/WCAG20/#',
'WCAG21': 'http://www.w3.org/TR/WCAG21/#',
'dct': 'http://purl.org/dc/terms/',
'sch': 'https://schema.org/',
'doap': 'http://usefulinc.com/ns/doap#',
'foaf': 'http://xmlns.com/foaf/0.1/',
'WebPage': 'sch:WebPage',
'url': 'dct:source',
'source': 'dct:source',
'redirectedTo': 'dct:source',
'assertions': {
'@reverse': 'subject'
},
'assertedBy': {
'@type': '@id'
},
'outcome': {
'@type': '@id'
},
'mode': {
'@type': '@id'
},
'pointer': {
'@type': 'ptr:CSSSelectorPointer'
},
'title': {
'@type': 'dct:title'
}
'@vocab': 'http://www.w3.org/ns/earl#',
'earl': 'http://www.w3.org/ns/earl#',
'WCAG20': 'http://www.w3.org/TR/WCAG20/#',
'WCAG21': 'http://www.w3.org/TR/WCAG21/#',
'dct': 'http://purl.org/dc/terms/',
'sch': 'https://schema.org/',
'doap': 'http://usefulinc.com/ns/doap#',
'foaf': 'http://xmlns.com/foaf/0.1/',
'WebPage': 'sch:WebPage',
'url': 'dct:source',
'source': 'dct:source',
'redirectedTo': 'dct:source',
'assertions': {
'@reverse': 'subject'
},
'assertedBy': {
'@type': '@id'
},
'outcome': {
'@type': '@id'
},
'mode': {
'@type': '@id'
},
'pointer': {
'@type': 'ptr:CSSSelectorPointer'
},
'title': {
'@type': 'dct:title'
}

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

{
"name": "@qualweb/earl-reporter",
"version": "0.2.2",
"version": "0.2.3",
"description": "Qualweb earl reporter",

@@ -28,3 +28,3 @@ "main": "dist/index.js",

"devDependencies": {
"@qualweb/types": "^0.3.2",
"@qualweb/types": "^0.3.3",
"@types/lodash.clonedeep": "^4.5.6",

@@ -31,0 +31,0 @@ "@types/node": "^12.12.25",

@@ -21,33 +21,31 @@ 'use strict';

const context: EarlContext = {
'@context': {
'@vocab': 'http://www.w3.org/ns/earl#',
'earl': 'http://www.w3.org/ns/earl#',
'WCAG20': 'http://www.w3.org/TR/WCAG20/#',
'WCAG21': 'http://www.w3.org/TR/WCAG21/#',
'dct': 'http://purl.org/dc/terms/',
'sch': 'https://schema.org/',
'doap': 'http://usefulinc.com/ns/doap#',
'foaf': 'http://xmlns.com/foaf/0.1/',
'WebPage': 'sch:WebPage',
'url': 'dct:source',
'source': 'dct:source',
'redirectedTo': 'dct:source',
'assertions': {
'@reverse': 'subject'
},
'assertedBy': {
'@type': '@id'
},
'outcome': {
'@type': '@id'
},
'mode': {
'@type': '@id'
},
'pointer': {
'@type': 'ptr:CSSSelectorPointer'
},
'title': {
'@type': 'dct:title'
}
'@vocab': 'http://www.w3.org/ns/earl#',
'earl': 'http://www.w3.org/ns/earl#',
'WCAG20': 'http://www.w3.org/TR/WCAG20/#',
'WCAG21': 'http://www.w3.org/TR/WCAG21/#',
'dct': 'http://purl.org/dc/terms/',
'sch': 'https://schema.org/',
'doap': 'http://usefulinc.com/ns/doap#',
'foaf': 'http://xmlns.com/foaf/0.1/',
'WebPage': 'sch:WebPage',
'url': 'dct:source',
'source': 'dct:source',
'redirectedTo': 'dct:source',
'assertions': {
'@reverse': 'subject'
},
'assertedBy': {
'@type': '@id'
},
'outcome': {
'@type': '@id'
},
'mode': {
'@type': '@id'
},
'pointer': {
'@type': 'ptr:CSSSelectorPointer'
},
'title': {
'@type': 'dct:title'
}

@@ -54,0 +52,0 @@ };

@@ -271,3 +271,3 @@ const { expect } = require('chai');

describe('EARL report', function () {
describe('"context" field', function () {
describe('"@context" field', function () {
it('should exist', async function () {

@@ -279,20 +279,7 @@ const earl = await reporter.generateEARLReport([evaluationReport]);

const earl = await reporter.generateEARLReport([evaluationReport]);
expect(earl[0]['@context'].trim()).to.be.not.equal('');
expect(earl[0]['@context']).to.be.not.equal({});
});
it('should be valid', async function () {
this.timeout(10 * 1000);
const earl = await reporter.generateEARLReport([evaluationReport]);
const contextUrl = earl[0]['@context'].trim();
const options = {
method: 'GET',
uri: contextUrl,
resolveWithFullResponse: true
};
const response = await request(options);
expect(response.statusCode).to.be.equal(200);
expect(response.body.trim()).to.be.not.equal('');
});
});
describe('"graph" field', function() {
describe('"@graph" field', function() {
it('should exists', async function () {

@@ -299,0 +286,0 @@ const earl = await reporter.generateEARLReport([evaluationReport]);

Sorry, the diff of this file is not supported yet