Socket
Socket
Sign inDemoInstall

react-typography

Package Overview
Dependencies
0
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.19 to 0.16.20

7

package.json
{
"name": "react-typography",
"description": "Helpful React components for Typography.js",
"version": "0.16.19",
"version": "0.16.20",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0 || ^16.0.0"
"react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
},

@@ -32,4 +32,3 @@ "keywords": [

"watch": "../../node_modules/.bin/babel -w src --out-dir dist/"
},
"gitHead": "1a3bfc103d41d59f04e89573c2c87e1d95abdd12"
}
}
import React from "react"
import PropTypes from "prop-types"
const GoogleFont = props => {
const GoogleFont = (props) => {
// Create family + styles string
let fontsStr = ""
if (props.typography.options.googleFonts) {
const fonts = props.typography.options.googleFonts.map(font => {
const fonts = props.typography.options.googleFonts.map((font) => {
let str = ""

@@ -10,0 +10,0 @@ str += font.name.split(" ").join("+")

import React from "react"
import PropTypes from "prop-types"
const TypographyStyle = props => (
const TypographyStyle = (props) => (
<style

@@ -6,0 +6,0 @@ id={"typography.js"}

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc