use-long-press
Advanced tools
Comparing version 2.0.3 to 3.0.0-alpha.2
{ | ||
"name": "use-long-press", | ||
"version": "2.0.3", | ||
"version": "3.0.0-alpha.2", | ||
"description": "React hook for detecting click (or tap) and hold event. Easy to use, highly customizable options, thoroughly tested.", | ||
@@ -14,75 +14,21 @@ "author": "minwork", | ||
], | ||
"repository": "https://github.com/minwork/use-long-press", | ||
"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" | ||
"scripts": { | ||
"postversion": "cp package.json ../../../packages/use-long-press" | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"typings": "./dist/index.d.ts", | ||
"repository": "https://github.com/minwork/react", | ||
"readme": "https://github.com/minwork/react/tree/main/packages/use-long-press", | ||
"main": "./index.js", | ||
"types": "./index.d.ts", | ||
"exports": { | ||
".": { | ||
"browser": "./dist/index.module.js", | ||
"umd": "./dist/index.umd.js", | ||
"import": "./dist/index.module.js", | ||
"require": "./dist/index.js" | ||
"import": "./index.mjs", | ||
"require": "./index.js" | ||
} | ||
}, | ||
"files": [ | ||
"dist/*" | ||
], | ||
"engines": { | ||
"node": ">=10", | ||
"npm": ">=5" | ||
"node": ">=16" | ||
}, | ||
"scripts": { | ||
"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", | ||
"lint": "eslint src tests --ext .ts,.tsx" | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0-0", | ||
"@babel/plugin-transform-runtime": "^7.14.5", | ||
"@babel/preset-typescript": "^7.14.5", | ||
"@testing-library/jest-dom": "^5.14.1", | ||
"@testing-library/react": "^12.0.0", | ||
"@testing-library/react-hooks": "^7.0.1", | ||
"@types/enzyme": "^3.10.9", | ||
"@types/jest": "^26.0.24", | ||
"@types/react": "^17.0.14", | ||
"@typescript-eslint/eslint-plugin": "^4.0.0", | ||
"@typescript-eslint/parser": "^4.0.0", | ||
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.2", | ||
"babel-eslint": "^10.0.0", | ||
"cross-env": "^7.0.3", | ||
"enzyme": "^3.11.0", | ||
"eslint": "^7.5.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-react-app": "^6.0.0", | ||
"eslint-plugin-flowtype": "^5.2.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-jest": "^24.0.0", | ||
"eslint-plugin-jsx-a11y": "^6.3.1", | ||
"eslint-plugin-react": "^7.20.3", | ||
"eslint-plugin-react-hooks": "^4.0.8", | ||
"eslint-plugin-testing-library": "^3.9.0", | ||
"jest": "^27.0.6", | ||
"microbundle": "^0.13.3", | ||
"prettier": "^2.3.2", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-test-renderer": "^17.0.2", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.3.5" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
211
11533
7
1
0
1