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.12.1 to 0.12.2

7

dist/hooks.js

@@ -41,2 +41,3 @@ import React, { cloneElement, isValidElement, useEffect, useMemo, useRef, useState } from "react";

const stopEventHandler = (event) => {
window.removeEventListener("beforeunload", cancel);
setSpeechStatus("stopped");

@@ -57,2 +58,3 @@ setSpeakingWord(undefined);

utterance.onstart = (event) => {
window.addEventListener("beforeunload", cancel);
setSpeechStatus("started");

@@ -123,6 +125,3 @@ onStart === null || onStart === void 0 ? void 0 : onStart(event);

}
useEffect(() => {
cancel();
return cancel;
}, []);
useEffect(() => cancel, []);
return {

@@ -129,0 +128,0 @@ Text: () => highlightedText(text),

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

@@ -37,3 +37,3 @@ "type": "module",

"devDependencies": {
"@types/react": "^18.2.67",
"@types/react": "^18.2.69",
"@types/react-dom": "^18.2.22"

@@ -40,0 +40,0 @@ },

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