@website-checks/website-checks
Advanced tools
Comparing version 1.19.0 to 1.20.0
@@ -42,8 +42,8 @@ const puppeteer = require('puppeteer') | ||
checks.securityheaders() | ||
checks.ssldecoder() | ||
checks.ssllabs() | ||
checks.webbkoll() | ||
checks.webhint() | ||
checks.yellowlab() | ||
} | ||
runChecks() |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const { green } = require('kleur') | ||
@@ -2,0 +4,0 @@ const successHandler = require('./success-handler') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const checkYourWebsite = require('./checks/check-your-website') | ||
@@ -9,6 +11,6 @@ const crtsh = require('./checks/crtsh') | ||
const securityheaders = require('./checks/securityheaders') | ||
const ssldecoder = require('./checks/ssldecoder') | ||
const ssllabs = require('./checks/ssllabs') | ||
const webbkoll = require('./checks/webbkoll') | ||
const webhint = require('./checks/webhint') | ||
const yellowlab = require('./checks/yellowlab') | ||
@@ -24,6 +26,6 @@ module.exports = { | ||
securityheaders, | ||
ssldecoder, | ||
ssllabs, | ||
webbkoll, | ||
webhint, | ||
yellowlab, | ||
} |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -14,6 +16,6 @@ const checkFunction = require('../check-function') | ||
await page.goto('https://check-your-website.server-daten.de/?q=' + url) | ||
await page.waitFor(1000) | ||
await page.waitFor(10000) | ||
await page.waitForFunction('!document.querySelector(\'meta[http-equiv="refresh"]\')', { timeout: 340000 }) | ||
await page.waitFor(1000) | ||
await page.emulateMedia('screen') | ||
await page.emulateMediaType('screen') | ||
await page.evaluate(() => document.querySelector('#sdCookieBanner').style.display = 'none') | ||
@@ -20,0 +22,0 @@ await page.pdf({ path: path.resolve(output_path, './check-your-website.pdf'), format: 'A4', printBackground: true }) |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -2,0 +4,0 @@ const retry = require('../retry') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -14,3 +16,3 @@ const checkFunction = require('../check-function') | ||
await page.evaluate(() => document.querySelector('header').style.display = 'none') | ||
await page.emulateMedia('screen') | ||
await page.emulateMediaType('screen') | ||
await page.pdf({ path: path.resolve(output_path, './cryptcheck.pdf'), format: 'A4', printBackground: true }) | ||
@@ -17,0 +19,0 @@ } |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -2,0 +4,0 @@ const retry = require('../retry') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -11,3 +13,3 @@ const checkFunction = require('../check-function') | ||
await page.waitForSelector('#http-results', { timeout: 240000, visible: true }) | ||
await page.emulateMedia('screen') | ||
await page.emulateMediaType('screen') | ||
await page.pdf({ path: path.resolve(output_path, './httpobservatory.pdf'), scale: 0.75, format: 'A4', printBackground: true }) | ||
@@ -14,0 +16,0 @@ } |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -2,0 +4,0 @@ const retry = require('../retry') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -2,0 +4,0 @@ const retry = require('../retry') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -2,0 +4,0 @@ const checkFunction = require('../check-function') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -2,0 +4,0 @@ const checkFunction = require('../check-function') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -10,2 +12,3 @@ const checkFunction = require('../check-function') | ||
await page.goto('https://webbkoll.dataskydd.net/en/check?url=' + url + '&refresh=on') | ||
await page.click("form.search-bar button"); | ||
await page.waitForFunction('window.location.href.startsWith("https://webbkoll.dataskydd.net/en/results")', { timeout: 240000 }) | ||
@@ -12,0 +15,0 @@ await page.pdf({ path: path.resolve(output_path, './webbkoll.pdf'), format: 'A4', printBackground: true }) |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const path = require('path') | ||
@@ -2,0 +4,0 @@ const checkFunction = require('../check-function') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const fs = require('fs') | ||
@@ -2,0 +4,0 @@ const path = require('path') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = () => { | ||
@@ -2,0 +4,0 @@ let dateInstance = new Date() |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const fs = require('fs') | ||
@@ -2,0 +4,0 @@ const path = require('path') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const { red } = require('kleur') | ||
@@ -2,0 +4,0 @@ const teardown = require('./teardown') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const util = require('util') | ||
@@ -2,0 +4,0 @@ const delay = util.promisify(setTimeout) |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const fs = require('fs') | ||
@@ -2,0 +4,0 @@ const path = require('path') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = async () => { | ||
@@ -8,5 +10,5 @@ return await puppeteer.launch({ | ||
'--disable-dev-shm-usage', | ||
'--disable-gpu' | ||
'--disable-gpu', | ||
], | ||
}) | ||
} |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const { green } = require('kleur') | ||
@@ -2,0 +4,0 @@ const teardown = require('./teardown') |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = async () => { | ||
@@ -2,0 +4,0 @@ if (open_pages === 0) { |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
const { red } = require('kleur') | ||
@@ -2,0 +4,0 @@ |
{ | ||
"name": "@website-checks/website-checks", | ||
"version": "1.19.0", | ||
"version": "1.20.0", | ||
"main": "index.js", | ||
@@ -16,7 +16,6 @@ "description": "checks websites with multiple services", | ||
"test:securityheaders": "node index.js iana.org --securityheaders", | ||
"test:ssldecoder": "node index.js iana.org --ssldecoder", | ||
"test:ssldecoder-fast": "node index.js iana.org --ssldecoder-fast", | ||
"test:ssllabs": "node index.js iana.org --ssllabs", | ||
"test:webbkoll": "node index.js iana.org --webbkoll", | ||
"test:webhint": "node index.js iana.org --webhint" | ||
"test:webhint": "node index.js iana.org --webhint", | ||
"test:yellowlab": "node index.js iana.org --yellowlab" | ||
}, | ||
@@ -29,3 +28,3 @@ "bin": { | ||
"type": "git", | ||
"url": "git+https://github.com/DanielRuf/website-checks.git" | ||
"url": "git+https://github.com/website-checks/website-checks.git" | ||
}, | ||
@@ -49,8 +48,8 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/DanielRuf/website-checks/issues" | ||
"url": "https://github.com/website-checks/website-checks/issues" | ||
}, | ||
"homepage": "https://github.com/DanielRuf/website-checks#readme", | ||
"homepage": "https://github.com/website-checks/website-checks#readme", | ||
"dependencies": { | ||
"kleur": "3.0.3", | ||
"puppeteer": "2.1.1" | ||
"kleur": "4.0.2", | ||
"puppeteer": "5.3.1" | ||
}, | ||
@@ -57,0 +56,0 @@ "devDependencies": { |
# website-checks | ||
[![Build Status](https://github.com/DanielRuf/website-checks/workflows/CI/badge.svg)](https://github.com/DanielRuf/website-checks/actions?workflow=CI) | ||
[![Build Status](https://github.com/website-checks/website-checks/workflows/CI/badge.svg)](https://github.com/website-checks/website-checks/actions?workflow=CI) | ||
@@ -16,6 +16,6 @@ `website-checks` checks websites with multiple services and generates PDF files of the reports. | ||
* Security Headers | ||
* SSL Decoder | ||
* SSLLabs | ||
* webbkoll | ||
* webhint | ||
* Yellow Lab Tools | ||
@@ -29,3 +29,3 @@ ## Installation | ||
//npm.pkg.github.com/:_authToken=<github-access-token> | ||
@danielruf:registry=https://npm.pkg.github.com | ||
@website-checks:registry=https://npm.pkg.github.com | ||
``` | ||
@@ -37,5 +37,5 @@ | ||
``` | ||
yarn global add @danielruf/website-checks | ||
yarn global add @website-checks/website-checks | ||
# or | ||
npm i -g @danielruf/website-checks | ||
npm i -g @website-checks/website-checks | ||
``` | ||
@@ -45,5 +45,5 @@ | ||
``` | ||
yarn global add danielruf/website-checks | ||
yarn global add website-checks/website-checks | ||
# or | ||
npm i -g danielruf/website-checks | ||
npm i -g website-checks/website-checks | ||
``` | ||
@@ -57,3 +57,3 @@ | ||
In [docker-compose.yml](https://github.com/DanielRuf/website-checks/blob/0b11bb3f7218b732a15da5dcff93576f46c47416/docker-compose.yml#L5), modify the TARGET_URL variable to change the website. | ||
In [docker-compose.yml](https://github.com/website-checks/website-checks/blob/0b11bb3f7218b732a15da5dcff93576f46c47416/docker-compose.yml#L5), modify the TARGET_URL variable to change the website. | ||
@@ -75,4 +75,2 @@ Then run: | ||
### CLI flags | ||
By default all checks (except `--ssldecoder`) will run. If you want to run only specific checks you can add CLI flags. | ||
Currently the following CLI flags will run the matching checks: | ||
@@ -88,7 +86,6 @@ ``` | ||
--securityheaders | ||
--ssldecoder | ||
--ssldecoder-fast | ||
--ssllabs | ||
--webbkoll | ||
--webhint | ||
--yellowlab | ||
``` | ||
@@ -95,0 +92,0 @@ |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
let options = process.argv.slice(3) || [] | ||
@@ -2,0 +4,0 @@ if (process.argv[2] === '--help') { |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
34645
36
492
99
1
+ Added@types/node@22.10.2(transitive)
+ Added@types/yauzl@2.10.3(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbl@4.1.0(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addeddevtools-protocol@0.0.799653(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedextract-zip@2.0.1(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedfs-constants@1.0.0(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedkleur@4.0.2(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedmkdirp-classic@0.5.3(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpkg-dir@4.2.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedpuppeteer@5.3.1(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedtar-fs@2.1.1(transitive)
+ Addedtar-stream@2.2.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedunbzip2-stream@1.4.3(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedws@7.5.10(transitive)
- Removed@types/mime-types@2.1.4(transitive)
- Removedasync-limiter@1.0.1(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddebug@2.6.9(transitive)
- Removedextract-zip@1.7.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedkleur@3.0.3(transitive)
- Removedmime@2.6.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpuppeteer@2.1.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedws@6.2.3(transitive)
Updatedkleur@4.0.2
Updatedpuppeteer@5.3.1