Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

favicon-trap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

favicon-trap - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

dist/favicon.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc