Skip to content

Commit

Permalink
Expose third party web and wappalyser versions (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Aug 30, 2023
1 parent b463a4d commit 7d4e97c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const { promisify } = require('util');
const readFile = promisify(fs.readFile);
const stat = promisify(fs.stat);
const readdir = promisify(fs.readdir);
const packageJSON = require('../package.json');

function getPagesFromHar(harJson, options) {
return pagexray.convert(harJson, {
Expand Down Expand Up @@ -88,5 +89,11 @@ module.exports = {
},
getPageXray() {
return pagexray;
},
getThirdPartyWebVersion() {
return packageJSON.dependencies['third-party-web'];
},
getWappalyzerCoreVersion() {
return packageJSON.dependencies['wappalyzer-core'];
}
};

0 comments on commit 7d4e97c

Please sign in to comment.