Socket
Socket
Sign inDemoInstall

@reach/alert

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reach/alert - npm Package Compare versions

Comparing version 0.10.3 to 0.10.4

2

dist/index.d.ts

@@ -22,3 +22,3 @@ /**

* @see Docs https://reacttraining.com/reach-ui/alert
* @see Source https://github.com/reach/reach-ui/tree/master/packages/alert
* @see Source https://github.com/reach/reach-ui/tree/main/packages/alert
* @see WAI-ARIA https://www.w3.org/TR/wai-aria-practices-1.2/#alert

@@ -25,0 +25,0 @@ */

{
"name": "@reach/alert",
"version": "0.10.3",
"version": "0.10.4",
"description": "Screen-reader-friendly alert messages.",

@@ -16,6 +16,6 @@ "author": "React Training <hello@reacttraining.com>",

"dependencies": {
"@reach/utils": "^0.10.3",
"@reach/visually-hidden": "^0.10.2",
"@reach/utils": "0.10.4",
"@reach/visually-hidden": "0.10.4",
"prop-types": "^15.7.2",
"tslib": "^1.11.2"
"tslib": "^2.0.0"
},

@@ -33,3 +33,3 @@ "peerDependencies": {

],
"gitHead": "fd32b2b31a3e50265b0c274654a5e4105847d18e"
"gitHead": "a0c7b3672835b2a9f84732663bb0e78992541211"
}

@@ -5,3 +5,3 @@ # @reach/alert

[Docs](https://reacttraining.com/reach-ui/alert) | [Source](https://github.com/reach/reach-ui/tree/master/packages/alert) | [WAI-ARIA](https://www.w3.org/TR/wai-aria-practices-1.2/#alert)
[Docs](https://reacttraining.com/reach-ui/alert) | [Source](https://github.com/reach/reach-ui/tree/main/packages/alert) | [WAI-ARIA](https://www.w3.org/TR/wai-aria-practices-1.2/#alert)

@@ -19,7 +19,7 @@ Screen-reader-friendly alert messages. In many apps developers add "alert" messages when network events or other things happen. Users with assistive technologies may not know about the message unless you develop for it.

onClick={() => {
setMessages(prevMessages =>
setMessages((prevMessages) =>
prevMessages.concat([`Message #${prevMessages.length + 1}`])
);
setTimeout(() => {
setMessages(prevMessages => prevMessages.slice(1));
setMessages((prevMessages) => prevMessages.slice(1));
}, 5000);

@@ -26,0 +26,0 @@ }}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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