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

use-long-press

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-long-press - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

dist/index.module.js

40

package.json
{
"name": "use-long-press",
"version": "1.0.2",
"version": "1.0.3",
"description": "React hook for detecting click (or tap) and hold event. Easy to use, highly customizable options, thoroughly tested.",

@@ -15,5 +15,21 @@ "author": "minwork",

"repository": "https://github.com/minwork/use-long-press",
"main": "dist/index.js",
"source": "src/index.ts",
"types": "dist/index.d.ts",
"main": "./dist/index.js",
"browser": "./dist/index.umd.js",
"umd:main": "./dist/index.umd.js",
"jsnext:main": "./dist/index.modern.js",
"module": "./dist/index.module.js",
"source": "./src/index.ts",
"syntax": {
"esmodules": "./dist/index.modern.js"
},
"types": "./dist/index.d.ts",
"typings": "./dist/index.d.ts",
"exports": {
".": {
"browser": "./dist/index.module.js",
"umd": "./dist/index.umd.js",
"import": "./dist/index.module.js",
"require": "./dist/index.js"
}
},
"files": [

@@ -27,5 +43,7 @@ "dist/*"

"scripts": {
"build": "rimraf dist/* && microbundle -f cjs --tsconfig tsconfig.build.json && rimraf dist/*test*",
"build": "rimraf dist/* && microbundle --jsx React.createElement --external react --name useLongPress --output dist/index.js",
"deploy": "yarn test && yarn build && npm publish",
"test": "jest",
"start": "microbundle watch"
"start": "microbundle watch",
"lint": "eslint src tests --ext .ts,.tsx"
},

@@ -59,2 +77,3 @@ "babel": {

"@types/react": "^16.7.22",
"@typescript-eslint/eslint-plugin": "^2.29.0",
"babel-preset-react": "^6.24.1",

@@ -64,2 +83,11 @@ "cross-env": "^5.2.0",

"enzyme-adapter-react-16": "^1.15.2",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-airbnb-typescript": "^7.2.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "7.19.0",
"eslint-plugin-react-hooks": "2.5.0",
"jest": "^24.9.0",

@@ -66,0 +94,0 @@ "microbundle": "^0.11.0",

2

README.md

@@ -56,3 +56,3 @@ # React Long Press Hook :point_down:

```typescript
useLongPress(callback: (event?: MouseEvent | TouchEvent) => void | null, options?: LongPressOptions);
useLongPress(callback: ((event?: MouseEvent | TouchEvent) => void) | null, options?: LongPressOptions);
```

@@ -59,0 +59,0 @@ ### Options

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