@xapp/arachne-parsers
Advanced tools
Comparing version 1.7.5 to 1.8.0
@@ -5,2 +5,3 @@ /*! Copyright (c) 2023, XAPP AI */ | ||
export * from "./CallRailDetector"; | ||
export * from "./ChatBaseDetector"; | ||
export * from "./ChatterPalDetector"; | ||
@@ -7,0 +8,0 @@ export * from "./ChiirpDetector"; |
@@ -21,2 +21,3 @@ "use strict"; | ||
__exportStar(require("./CallRailDetector"), exports); | ||
__exportStar(require("./ChatBaseDetector"), exports); | ||
__exportStar(require("./ChatterPalDetector"), exports); | ||
@@ -23,0 +24,0 @@ __exportStar(require("./ChiirpDetector"), exports); |
@@ -74,2 +74,19 @@ "use strict"; | ||
} | ||
else { | ||
// we have seen some interesting stuff to help with lazy loading for seo | ||
// <script data-two_delay_id="two_664d5c520ee0d" type="text/javascript" data-two_delay_src="https://www.chatbase.co/embed.min.js" id="chatbot-script-js"></script> | ||
// we just want to look at raw text of the <script> tag if it doesn't | ||
// have any contents thus, only look at text of the opening tag so we can just do a string search | ||
const innerText = this.cheerio(element).text().trim(); | ||
if (innerText === "") { | ||
const attribs = element.attribs; | ||
const keys = Object.keys(attribs); | ||
for (const key of keys) { | ||
const value = attribs[key]; | ||
if (host && value.toLowerCase().includes(host)) { | ||
installed = true; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
@@ -76,0 +93,0 @@ } |
{ | ||
"name": "@xapp/arachne-parsers", | ||
"version": "1.7.5", | ||
"version": "1.8.0", | ||
"types": "lib/index", | ||
@@ -17,3 +17,3 @@ "main": "lib/index", | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "7.43.7", | ||
"@microsoft/api-extractor": "7.43.8", | ||
"@types/chai": "4.3.16", | ||
@@ -46,3 +46,3 @@ "@types/mocha": "10.0.6", | ||
}, | ||
"gitHead": "dcec662fb06541f710d351f3c4c7515f7d5a2eb4" | ||
"gitHead": "21872d37222311f6edc36d87d03d9735a12ba2d1" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
233143
182
3512