Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-hook/window-scroll

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-hook/window-scroll - npm Package Compare versions

Comparing version 1.0.7 to 1.1.0

dist/main/index.js

34

package.json
{
"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 |

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