Socket
Socket
Sign inDemoInstall

react-tag-cloud

Package Overview
Dependencies
15
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

14

dist/TagCloud.js

@@ -219,3 +219,15 @@ module.exports =

value: function text(word) {
return word.child.props.children;
var text = word.child.props.text;
if (!text) {
var children = word.child.props.children;
if (Array.isArray(children)) {
text = children[0];
} else {
text = children;
}
}
return text;
}

@@ -222,0 +234,0 @@ }, {

{
"name": "react-tag-cloud",
"version": "1.0.1",
"version": "1.1.0",
"description": "Create beautiful tag/word clouds using React",
"keywords": [
"react-tag-cloud",
"tag-cloud",
"word-cloud",
"d3-cloud",
"react-cloud",
"react-word-cloud",
"react-words",
"react-tags"
],
"main": "dist/TagCloud.js",

@@ -6,0 +16,0 @@ "repository": "https://github.com/IjzerenHein/react-tag-cloud",

@@ -76,2 +76,3 @@ # react-tag-cloud ☁️

- [example](./examples/tagCloud/src/App.js)
- [ijzerenhein.nl](http://ijzerenhein.nl/)

@@ -78,0 +79,0 @@

@@ -166,3 +166,15 @@ import React, { Component } from 'react';

text(word) {
return word.child.props.children;
let text = word.child.props.text;
if (!text) {
const children = word.child.props.children;
if (Array.isArray(children)) {
text = children[0];
} else {
text = children;
}
}
return text;
}

@@ -169,0 +181,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc