@react-hook/window-scroll
Advanced tools
Comparing version 1.0.7 to 1.1.0
{ | ||
"name": "@react-hook/window-scroll", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/window-scroll#readme", | ||
@@ -21,16 +21,25 @@ "repository": "github:jaredLunde/react-hook", | ||
"viewport scroll", | ||
"viewport scroll hook" | ||
"viewport scroll hook", | ||
"usewindowscroll", | ||
"use window scroll", | ||
"react window scroll hook", | ||
"react scroll position hook", | ||
"usescrollposition", | ||
"use scroll position", | ||
"scroll position hook" | ||
], | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/es/index.js", | ||
"main": "dist/main/index.js", | ||
"module": "dist/module/index.js", | ||
"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", | ||
"compile": "babel src -x .ts,.tsx --ignore \"**/*.test.ts\",\"**/test.ts\",\"**/*.test.tsx\",\"**/test.tsx\" --delete-dir-on-start", | ||
"format": "prettier --write \"**/*.{ts,js,md,yml,json,babelrc,eslintrc,prettierrc}\"", | ||
@@ -44,3 +53,3 @@ "lint": "eslint . --ext .ts", | ||
"hooks": { | ||
"pre-commit": "lint-staged && npm run build:types" | ||
"pre-commit": "npm run build-types && prettier --write \"{dist,throttled}/**/*.d.ts\" && lint-staged" | ||
} | ||
@@ -53,3 +62,3 @@ }, | ||
], | ||
"**/*.{md,yml,json}": [ | ||
"**/*.{md,yml,json,eslintrc,prettierrc}": [ | ||
"prettier --write" | ||
@@ -72,3 +81,2 @@ ] | ||
"lint-staged": "latest", | ||
"mock-raf": "^1.0.1", | ||
"prettier": "latest", | ||
@@ -82,3 +90,3 @@ "react": "^16.12.0", | ||
"dependencies": { | ||
"@react-hook/throttle": "^1.0.7" | ||
"@react-hook/throttle": "^2.1.0" | ||
}, | ||
@@ -85,0 +93,0 @@ "peerDependencies": { |
@@ -41,5 +41,5 @@ <hr> | ||
### `useWindowScroll(fps?: number)` | ||
### `useWindowScroll(fps?: number): number` | ||
#### Options | ||
#### Arguments | ||
@@ -46,0 +46,0 @@ | | Type | Default | Description | |
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
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
8009
19
6
68
+ Added@react-hook/latest@1.0.3(transitive)
+ Added@react-hook/throttle@2.2.0(transitive)
- Removed@essentials/raf@1.2.0(transitive)
- Removed@essentials/request-timeout@1.3.0(transitive)
- Removed@react-hook/throttle@1.0.12(transitive)
Updated@react-hook/throttle@^2.1.0