Fix styled-components detection

main
Elbert Alias 4 years ago
parent 3367d2a858
commit 3dbf0a54c5

@ -752,6 +752,7 @@ class Site {
return reducedLinks
} catch (error) {
console.log(error)
if (error.constructor.name === 'TimeoutError') {
throw new Error('The website took too long to respond')
}

@ -3273,7 +3273,7 @@
},
"icon": "commercejs.png",
"scripts": [
"https?:/cdn\\.chec\\.io/v(\\d+)/commerce\\.js\\;version=\\1",
"https?:/cdn\\.chec\\.io/v(\\d+)/commerce\\.js\\;version:\\1",
"chec/commerce\\.js"
],
"url": "^https?//.+\\.spaces.chec\\.io",
@ -16944,11 +16944,19 @@
47
],
"description": "Styled components is a CSS-in-JS styling framework that uses tagged template literals in JavaScript.",
"html": [
"<style[^>]*data-styled(?:-components)?[\\s\"]",
"<style[^>]+data-styled-version=\"([0-9]+)\"\\;version:\\1",
"<[^>]+sc-component-id: sc-"
],
"dom": {
"style[data-styled], style[data-styled-components], [sc-component-id]": {
"text": ""
},
"style[data-styled-version]": {
"attributes": {
"data-styled-version": "(^.+$)\\;version:\\1"
}
},
"[sc-component-id]": {
"text": ""
}
},
"icon": "styled-components.png",
"implies": "React",
"js": {

@ -431,7 +431,7 @@ const Wappalyzer = {
patterns.forEach((_pattern) => {
const pattern = (subtypes || []).reduce(
(pattern, subtype) => pattern[subtype],
(pattern, subtype) => pattern[subtype] || {},
_pattern
)

Loading…
Cancel
Save