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

@accurat/event-utils

Package Overview
Dependencies
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accurat/event-utils - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

12

index.js
function preventingDefault(fn) {
// react supports passing null to event bindings
if (fn === null) return null
return e => {
e.preventDefault()
// react supports passing null to event bindings
if (fn === null) return null
return fn(e)

@@ -12,6 +13,7 @@ }

function stoppingPropagation(fn) {
if (fn === null) return null
return e => {
e.stopPropagation()
if (fn === null) return null
return fn(e)

@@ -18,0 +20,0 @@ }

{
"name": "@accurat/event-utils",
"private": false,
"version": "1.0.0",
"version": "1.0.1",
"description": "High order functions to use in React's JSX when working with events",

@@ -32,5 +31,5 @@ "license": "MIT",

"engines": {
"node": ">=6"
},
"node": ">=6"
},
"sideEffects": false
}

@@ -52,3 +52,3 @@ # @accurat/event-utils

Those functions use the powers of **functional programming** 🌪, so you can combine them!
Also those functions use the powers of **functional programming** 🌪, so you can combine them!

@@ -74,3 +74,5 @@ ```js

This way you don't have to use anymore the **build pattern** in react, and you can get rid of all those boilerplate methods in the component!
## API

@@ -77,0 +79,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