react-typing-animation
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -43,3 +43,3 @@ 'use strict'; | ||
} else if (_react2.default.isValidElement(node)) { | ||
if (node.type === 'br') { | ||
if (!node.props.children || !node.props.children.length) { | ||
return '\n'; | ||
@@ -71,3 +71,3 @@ } | ||
} else if (_react2.default.isValidElement(node)) { | ||
if (node.type === 'br') { | ||
if (!node.props.children || !node.props.children.length) { | ||
if (text.length === 1) { | ||
@@ -74,0 +74,0 @@ return [text.shift() === '' ? undefined : node, cursor]; |
{ | ||
"name": "react-typing-animation", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -20,3 +20,3 @@ import React, { Children } from 'react'; | ||
} else if (React.isValidElement(node)) { | ||
if (node.type === 'br') { | ||
if (!node.props.children || !node.props.children.length) { | ||
return '\n'; | ||
@@ -44,3 +44,3 @@ } | ||
} else if (React.isValidElement(node)) { | ||
if (node.type === 'br') { | ||
if (!node.props.children || !node.props.children.length) { | ||
if (text.length === 1) { | ||
@@ -47,0 +47,0 @@ return [text.shift() === '' ? undefined : node, cursor]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87761
30