Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-swipeable

Package Overview
Dependencies
Maintainers
22
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-swipeable - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

9

package.json
{
"name": "react-swipeable",
"version": "7.0.0",
"version": "7.0.1",
"description": "React Swipe event handler hook",

@@ -18,3 +18,3 @@ "source": "./src/index.ts",

"examples:build": "cd ./examples && yarn && yarn build",
"examples:build:publish": "yarn run build:examples && rimraf examples/node_modules && gh-pages -d examples",
"examples:build:publish": "yarn run examples:build && rimraf examples/node_modules && gh-pages -d examples",
"prettier": "prettier --check src __tests__",

@@ -86,4 +86,6 @@ "format": "prettier --write src __tests__",

"devDependencies": {
"@changesets/cli": "^2.26.1",
"@rollup/plugin-typescript": "^8.3.0",
"@size-limit/preset-small-lib": "^7.0.8",
"@svitejs/changesets-changelog-github-compact": "^0.1.1",
"@testing-library/react": "^13.0.1",

@@ -114,3 +116,6 @@ "@types/jest": "^27.4.1",

"react": "^16.8.3 || ^17 || ^18"
},
"publishConfig": {
"provenance": true
}
}

@@ -1,2 +0,2 @@

# React Swipeable
[![React Swipeable — Formidable, We build the modern web](https://raw.githubusercontent.com/FormidableLabs/react-swipeable/main/react-swipeable-Hero.png)](https://formidable.com/open-source/)

@@ -173,4 +173,7 @@ React swipe event handler hook

ref(document);
// Clean up swipeable event listeners
return () => ref({});
});
```
**Note:** Issues can arise if you forget to clean up listeners - [#332](https://github.com/FormidableLabs/react-swipeable/issues/322)

@@ -177,0 +180,0 @@ ### How to share `ref` from `useSwipeable`?

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