@react-hook/mouse-position
Advanced tools
Comparing version
{ | ||
"name": "@react-hook/mouse-position", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/mouse-position#readme", | ||
@@ -20,18 +20,23 @@ "repository": "github:jaredLunde/react-hook", | ||
"use mouse position", | ||
"usemouseposition" | ||
"usemouseposition", | ||
"mouse position hook", | ||
"react mouse position hook" | ||
], | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/es/index.js", | ||
"main": "dist/main/index.js", | ||
"module": "dist/module/index.js", | ||
"types": "types/index.d.ts", | ||
"files": [ | ||
"/dist" | ||
"/dist", | ||
"/types" | ||
], | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "npm run build:cjs && npm run build:es && npm run build:types", | ||
"build:cjs": "babel src -d dist/cjs -x .ts --ignore \"**/*.test.ts\",\"**/test.ts\" --delete-dir-on-start", | ||
"build:es": "babel src -d dist/es -x .ts --env-name es --ignore \"**/*.test.ts\",\"**/test.ts\" --delete-dir-on-start", | ||
"build:types": "tsc -p tsconfig.json -d --outDir dist/es --emitDeclarationOnly && mkdir -p dist/cjs && cp -R dist/es/**.d.ts dist/cjs && rimraf dist/**/*.test.d.ts", | ||
"build": "npm run build-main && npm run build-module && npm run build-types", | ||
"build-main": "npm run compile -- -d dist/main --env-name main", | ||
"build-module": "npm run compile -- -d dist/module --env-name module", | ||
"build-types": "tsc -p tsconfig.json -d --outDir types --emitDeclarationOnly", | ||
"check-types": "tsc --noEmit -p tsconfig.json", | ||
"format": "prettier --write \"**/*.{ts,js,md,yml,json,babelrc,eslintrc,prettierrc}\"", | ||
"lint": "eslint . --ext .ts", | ||
"compile": "babel src -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start", | ||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md,yml,json,eslintrc,prettierrc}\"", | ||
"lint": "eslint . --ext .ts,.tsx", | ||
"prepublishOnly": "npm run lint && npm run test && npm run build && npm run format", | ||
@@ -43,3 +48,3 @@ "test": "jest", | ||
"hooks": { | ||
"pre-commit": "lint-staged && npm run build:types" | ||
"pre-commit": "npm run build-types && prettier --write \"types/**/*.ts\" && lint-staged" | ||
} | ||
@@ -52,3 +57,3 @@ }, | ||
], | ||
"**/*.{md,yml,json}": [ | ||
"**/*.{md,yml,json,eslintrc,prettierrc}": [ | ||
"prettier --write" | ||
@@ -61,23 +66,22 @@ ] | ||
"@testing-library/react-hooks": "^3.2.1", | ||
"@types/jest": "latest", | ||
"@typescript-eslint/eslint-plugin": "latest", | ||
"@typescript-eslint/parser": "latest", | ||
"@types/jest": "^25.2.1", | ||
"@typescript-eslint/eslint-plugin": "^2.29.0", | ||
"@typescript-eslint/parser": "^2.29.0", | ||
"babel-plugin-optimize-react": "^0.0.4", | ||
"cross-env": "latest", | ||
"eslint": "latest", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^6.8.0", | ||
"eslint-import-resolver-jest": "latest", | ||
"eslint-plugin-jest": "latest", | ||
"husky": "latest", | ||
"jest": "latest", | ||
"lint-staged": "latest", | ||
"prettier": "latest", | ||
"eslint-plugin-jest": "^23.8.2", | ||
"husky": "^4.2.5", | ||
"jest": "^25.4.0", | ||
"lint-staged": "^10.1.7", | ||
"prettier": "^2.0.5", | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0", | ||
"react-test-renderer": "^16.12.0", | ||
"rimraf": "^2.6.3", | ||
"ts-jest": "latest", | ||
"typescript": "latest" | ||
"ts-jest": "^25.4.0", | ||
"typescript": "^3.8.3" | ||
}, | ||
"dependencies": { | ||
"@react-hook/throttle": "^1.0.9" | ||
"@react-hook/throttle": "^2.1.0" | ||
}, | ||
@@ -84,0 +88,0 @@ "peerDependencies": { |
@@ -35,3 +35,3 @@ <hr> | ||
const Component = props => { | ||
const Component = (props) => { | ||
const [mousePosition, ref] = useMousePosition( | ||
@@ -38,0 +38,0 @@ 0, // enterDelay |
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
20
-4.76%23763
-1.76%6
-14.29%537
-3.94%1
Infinity%+ Added
+ Added
- Removed
- Removed
- Removed
Updated