Fix styled-components detection

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

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

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

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

Loading…
Cancel
Save