@smakss/react-scroll-direction 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Readme.md +9 -1
  2. package/package.json +3 -3
package/Readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # React Scroll Direction Hook
2
2
 
3
- ![npm](https://img.shields.io/npm/v/@smakss/react-scroll-direction) ![Known Vulnerabilities](https://snyk.io/test/github/{smakss}/{@smakss/react-scroll-direction}/badge.svg) ![NPM](https://img.shields.io/npm/l/@smakss/react-scroll-direction) ![npm](https://img.shields.io/npm/dt/@smakss/react-scroll-direction) ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@smakss/react-scroll-direction)
3
+ ![npm](https://img.shields.io/npm/v/@smakss/react-scroll-direction) ![NPM](https://img.shields.io/npm/l/@smakss/react-scroll-direction) ![npm](https://img.shields.io/npm/dt/@smakss/react-scroll-direction) ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@smakss/react-scroll-direction)
4
4
 
5
5
  `@smakss/react-scroll-direction` is a versatile, lightweight React hook that detects scroll direction in your application with ease. You can fine-tune its sensitivity using an adjustable threshold, catering to your application's unique needs.
6
6
 
@@ -72,3 +72,11 @@ const scrollDir = useDetectScroll({ axis: "x" });
72
72
 
73
73
  // Returns: "left", "right", or "still"
74
74
  ```
75
+
76
+ ## Contributing
77
+
78
+ Interested in making contributions to this project? Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines and details.
79
+
80
+ ## Code of Conduct
81
+
82
+ We value and prioritize the well-being of all our contributors and users. To ensure that this project remains a welcoming space for everyone, please refer to our [Code of Conduct](./CODE_OF_CONDUCT.md).
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "@typescript-eslint/eslint-plugin": "^5.59.6",
15
15
  "@typescript-eslint/parser": "^5.59.6",
16
16
  "eslint": "^8.41.0",
17
- "eslint-config-prettier": "8.8.0",
17
+ "eslint-config-prettier": "9.0.0",
18
18
  "eslint-plugin-prettier": "^4.2.1",
19
19
  "husky": "^8.0.3",
20
20
  "lint-staged": "^14.0.1",
@@ -64,9 +64,9 @@
64
64
  "generate": "rollup -c",
65
65
  "lint": "eslint --cache --cache-location ./node_modules/.cache/.eslintcache --ext js,jsx,ts,tsx --max-warnings=0 .",
66
66
  "lint:fix": "eslint src/**/*.ts --fix",
67
- "postinstall": "husky install",
67
+ "setup": "yarn && husky install",
68
68
  "typecheck": "tsc -b ."
69
69
  },
70
70
  "type": "module",
71
- "version": "3.0.0"
71
+ "version": "3.0.2"
72
72
  }