Socket
Socket
Sign inDemoInstall

react-intersection-observer

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intersection-observer - npm Package Compare versions

Comparing version 9.3.3 to 9.3.4-beta.1

dist/index.d.ts

125

package.json
{
"name": "react-intersection-observer",
"version": "9.3.3",
"version": "9.3.4-beta.1",
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API",
"source": "./src/index.tsx",
"main": "./react-intersection-observer.js",
"module": "./react-intersection-observer.mjs",
"main": "./dist/react-intersection-observer.js",
"module": "./dist/react-intersection-observer.esm.js",
"unpkg": "./dist/react-intersection-observer.umd.js",
"types": "./dist/index.d.ts",
"exports": {
"./test-utils": "./test-utils.js",
"./test-utils": {
"default": "./dist/test-utils.js",
"types": "./dist/test-utils.d.ts"
},
".": {
"require": "./react-intersection-observer.js",
"default": "./react-intersection-observer.modern.mjs"
"module": "./dist/react-intersection-observer.esm.js",
"require": "./dist/react-intersection-observer.js",
"default": "./dist/react-intersection-observer.modern.mjs",
"types": "./dist/index.d.ts"
}
},
"unpkg": "./react-intersection-observer.umd.js",
"typings": "./index.d.ts",
"files": [
"dist",
"README.md",
"LICENSE",
"package.json"
],
"author": "Daniel Schmidt",

@@ -36,2 +47,30 @@ "sideEffects": false,

],
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "always"
},
"eslintIgnore": [
"*.snap",
"test-utils.js",
"dist/**",
"lib/**",
"example/**",
"webpack.config.js"
],
"scripts": {
"prebuild": "rm -rf dist lib",
"build": "run-s build:*",
"build:bundle": "microbundle --name ReactIntersectionObserver --jsx React.createElement -f cjs,umd,es,modern --no-compress",
"build:utils": "tsc -p tsconfig.test.json",
"postbuild": "size-limit",
"dev": "yarn run storybook",
"lint": "eslint . --ext js,ts,tsx",
"release": "np --contents dist",
"version": "yarn build",
"pretty": "prettier '**/*.{js,ts,tsx,md,json,yml,html}' --write",
"storybook": "start-storybook -p 9000",
"storybook:build": "build-storybook --output-dir example",
"test": "vitest"
},
"release": {

@@ -48,14 +87,21 @@ "branches": [

"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"pkgRoot": "dist"
}
],
"@semantic-release/npm",
"@semantic-release/github"
]
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,json,css,md,ts,tsx}": [
"prettier --write"
],
"src/**/*.{ts,tsx}": [
"eslint",
"vitest related --run"
]
},
"size-limit": [
{
"path": "dist/react-intersection-observer.mjs",
"path": "dist/react-intersection-observer.esm.js",
"name": "InView",

@@ -66,3 +112,3 @@ "import": "{ InView }",

{
"path": "dist/react-intersection-observer.mjs",
"path": "dist/react-intersection-observer.esm.js",
"name": "useInView",

@@ -73,3 +119,3 @@ "import": "{ useInView }",

{
"path": "dist/react-intersection-observer.mjs",
"path": "dist/react-intersection-observer.esm.js",
"name": "observe",

@@ -82,3 +128,48 @@ "import": "{ observe }",

"react": "^15.0.0 || ^16.0.0 || ^17.0.0|| ^18.0.0"
},
"devDependencies": {
"@babel/core": "^7.18.2",
"@babel/preset-env": "^7.18.2",
"@size-limit/preset-small-lib": "^7.0.8",
"@storybook/addon-actions": "6.5.5",
"@storybook/addon-controls": "6.5.5",
"@storybook/addon-docs": "6.5.5",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/addon-viewport": "6.5.5",
"@storybook/addons": "6.5.5",
"@storybook/builder-vite": "^0.1.35",
"@storybook/react": "6.5.5",
"@storybook/theming": "6.5.5",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
"@types/jest": "^27.5.1",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.5",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"autoprefixer": "^10.4.7",
"eslint": "^8.16.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"framer-motion": "^6.3.4",
"intersection-observer": "^0.12.0",
"jsdom": "^19.0.0",
"lint-staged": "^12.4.2",
"microbundle": "^0.15.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.14",
"prettier": "^2.6.2",
"prettier-plugin-pkg": "^0.13.2",
"prettier-plugin-tailwindcss": "^0.1.11",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"simple-git-hooks": "^2.7.0",
"size-limit": "^7.0.8",
"tailwindcss": "^3.0.24",
"typescript": "^4.7.2",
"vite": "^2.9.9",
"vitest": "^0.12.9"
}
}
index.d.ts
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