New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-text-to-speech

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-text-to-speech - npm Package Compare versions

Comparing version 0.8.5 to 0.8.8

10

dist/index.js

@@ -68,3 +68,7 @@ var __rest = (this && this.__rest) || function (s, e) {

synth.cancel();
const utterance = new window.SpeechSynthesisUtterance(words.join("\n"));
const utterance = new window.SpeechSynthesisUtterance(words
.join(" ")
.replace(/([.!?\\-]),/g, "$1 ")
.replace(/(\d),([A-z])/g, "$1 $2")
.replace(/([A-z]),(\d)/g, "$1 $2"));
utterance.pitch = pitch;

@@ -127,5 +131,5 @@ utterance.rate = rate;

useEffect(() => {
var _a, _b;
var _a;
setUseStop(useStopOverPause !== null && useStopOverPause !== void 0 ? useStopOverPause : (((_a = navigator.userAgentData) === null || _a === void 0 ? void 0 : _a.mobile) || false));
return (_b = window.speechSynthesis) === null || _b === void 0 ? void 0 : _b.cancel();
return () => { var _a; return (_a = window.speechSynthesis) === null || _a === void 0 ? void 0 : _a.cancel(); };
}, []);

@@ -132,0 +136,0 @@ useEffect(() => {

{
"name": "react-text-to-speech",
"version": "0.8.5",
"version": "0.8.8",
"description": "An easy to use react component for the Web Speech API.",

@@ -5,0 +5,0 @@ "type": "module",

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