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

react-social-icons

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-social-icons - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

.github/workflows/example_page.yml

12

build/networks.js

@@ -22,3 +22,3 @@ "use strict";

exports.KEYS = KEYS;
var KEYS_REGEX = new RegExp('(?:https?:\\/\\/(?:[a-z0-9]*.)?)?(' + KEYS.join('|') + ').*');
var KEYS_REGEX = /(?:https?:\/\/)?(?:.*\.)?(?<key>.*?)\..*?($|\/)/;

@@ -53,4 +53,10 @@ function keyTo(key, _ref) {

var key = url.replace(KEYS_REGEX, '$1');
return key === url ? DEFAULT_KEY : key;
if (url.startsWith('mailto:')) {
return 'mailto';
}
var _url$match = url.match(KEYS_REGEX),
groups = _url$match.groups;
return groups && KEYS.includes(groups.key) ? groups.key : DEFAULT_KEY;
}

@@ -57,0 +63,0 @@

{
"name": "react-social-icons",
"version": "5.0.0",
"version": "5.1.0",
"description": "beautiful, easy svg social icons in react",

@@ -5,0 +5,0 @@ "main": "./build/react-social-icons.js",

Sorry, the diff of this file is too big to display

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