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

react-google-font-loader

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-font-loader - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

8

build/index.js

@@ -45,5 +45,5 @@ 'use strict';

var family = font.font.replace(/ +/g, '+');
var weights = font.weights.join(',');
var weights = (font.weights || []).join(',');
acc.push(family + ':' + weights);
acc.push(family + (weights && ':' + weights));

@@ -94,7 +94,5 @@ return acc;

;
GoogleFontLoader.propTypes = {
fonts: _propTypes2.default.arrayOf(_propTypes2.default.shape({
font: _propTypes2.default.string,
font: _propTypes2.default.string.isRequired,
weights: _propTypes2.default.arrayOf(_propTypes2.default.number)

@@ -101,0 +99,0 @@ })).isRequired

{
"name": "react-google-font-loader",
"version": "1.0.2",
"version": "1.0.3",
"description": "Simple React component to load Google Fonts.",

@@ -5,0 +5,0 @@ "main": "build/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