favicon-trap
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -51,3 +51,3 @@ "use strict"; | ||
if (err || !body || !body.match) | ||
resolve([]); | ||
return resolve([]); | ||
//获取所有link标签 | ||
@@ -68,3 +68,3 @@ const match = body.match(/<link[\s\S]+?>/g); | ||
if (err || !body || !res.headers['content-type']) | ||
resolve(null); | ||
return resolve(null); | ||
if (/^image\//.test(res.headers['content-type'])) | ||
@@ -71,0 +71,0 @@ resolve(uri); |
{ | ||
"name": "favicon-trap", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
12285