use-long-press
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"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", |
@@ -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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
35604
10
52
35
3