react-typing-animation
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -65,3 +65,3 @@ 'use strict'; | ||
} else { | ||
_this.props.onFinishedTyping().then(function () { | ||
Promise.resolve(_this.props.onFinishedTyping()).then(function () { | ||
if (loop) { | ||
@@ -253,5 +253,3 @@ cursor.lineNum = 0; | ||
onFinishedTyping: function onFinishedTyping() { | ||
return new Promise(function (resolve) { | ||
return resolve(); | ||
}); | ||
return Promise.resolve(); | ||
} | ||
@@ -258,0 +256,0 @@ }; |
{ | ||
"name": "react-typing-animation", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -50,3 +50,3 @@ import React, { Component } from 'react'; | ||
} else { | ||
this.props.onFinishedTyping().then(() => { | ||
Promise.resolve(this.props.onFinishedTyping()).then(() => { | ||
if (loop) { | ||
@@ -181,3 +181,3 @@ cursor.lineNum = 0; | ||
loop: false, | ||
onFinishedTyping: () => new Promise(resolve => resolve()), | ||
onFinishedTyping: () => Promise.resolve(), | ||
}; | ||
@@ -184,0 +184,0 @@ |
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
40266
914