smooth-scroll-into-view-if-needed
Advanced tools
Comparing version 1.1.32 to 2.0.0
128
package.json
@@ -6,64 +6,54 @@ { | ||
"author": "Cody Olsen", | ||
"homepage": "https://scroll-into-view-if-needed.netlify.com/", | ||
"homepage": "https://scroll-into-view.dev", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/stipsan/smooth-scroll-into-view-if-needed.git" | ||
"url": "git+https://github.com/scroll-into-view/smooth-scroll-into-view-if-needed.git" | ||
}, | ||
"version": "1.1.32", | ||
"main": "index.js", | ||
"module": "es/index.js", | ||
"version": "2.0.0", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"source": "./src/index.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs", | ||
"default": "./dist/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"typings": "./dist/index.d.ts", | ||
"files": [ | ||
"es", | ||
"typings", | ||
"umd" | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"prebuild": "yarn clean", | ||
"build": "yarn build:d.ts && yarn build:cjs && yarn build:es && yarn build:umd && yarn build:umd.min", | ||
"build:cjs": "BABEL_ENV=cjs babel src -d . --extensions '.ts'", | ||
"build:d.ts": "tsc --emitDeclarationOnly", | ||
"build:es": "BABEL_ENV=es babel src -d es --extensions '.ts'", | ||
"build:umd": "BABEL_ENV=umd NODE_ENV=development rollup -c -f umd -o umd/smooth-scroll-into-view-if-needed.js", | ||
"build:umd.min": "BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/smooth-scroll-into-view-if-needed.min.js", | ||
"clean": "rimraf 'umd' 'es' 'typings'", | ||
"precommit": "lint-staged", | ||
"dev": "concurrently 'tsc --noEmit --watch' 'yarn build:cjs --watch' 'yarn build:es --watch' 'yarn build:umd --watch' 'yarn build:umd.min --watch'", | ||
"prepublishOnly": "unset npm_config_cafile && yarn build", | ||
"test": "jest", | ||
"typecheck": "tsc --noEmit" | ||
"typecheck": "tsc --noEmit", | ||
"prebuild": "npm run clean", | ||
"build": "pkg build --strict", | ||
"clean": "npx rimraf 'dist'", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"dependencies": { | ||
"scroll-into-view-if-needed": "^2.2.28" | ||
"scroll-into-view-if-needed": "^3.0.6" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "7.13.10", | ||
"@babel/core": "7.13.10", | ||
"@babel/plugin-external-helpers": "7.12.13", | ||
"@babel/preset-env": "7.13.12", | ||
"@babel/preset-typescript": "7.13.0", | ||
"@types/jest": "26.0.21", | ||
"babel-eslint": "10.1.0", | ||
"babel-plugin-add-module-exports": "1.0.4", | ||
"babel-plugin-dev-expression": "0.2.2", | ||
"concurrently": "6.0.0", | ||
"eslint": "7.22.0", | ||
"eslint-config-prettier": "8.1.0", | ||
"eslint-plugin-import": "2.22.1", | ||
"eslint-plugin-react": "7.22.0", | ||
"husky": "5.2.0", | ||
"jest": "26.6.3", | ||
"jest-junit": "12.0.0", | ||
"lint-staged": "10.5.4", | ||
"prettier": "2.2.1", | ||
"prettier-package-json": "2.1.3", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.42.3", | ||
"rollup-plugin-babel": "4.4.0", | ||
"rollup-plugin-commonjs": "10.1.0", | ||
"rollup-plugin-node-resolve": "5.2.0", | ||
"rollup-plugin-replace": "2.2.0", | ||
"rollup-plugin-terser": "7.0.2", | ||
"semantic-release": "17.4.2", | ||
"ts-jest": "26.5.4", | ||
"typescript": "4.2.3" | ||
"@sanity/pkg-utils": "^2.2.8", | ||
"@sanity/semantic-release-preset": "^4.0.0", | ||
"@types/jest": "^26.0.24", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-react": "^7.27.0", | ||
"jest": "^26.6.3", | ||
"jest-junit": "^12.3.0", | ||
"prettier": "^2.8.4", | ||
"prettier-package-json": "^2.8.0", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^20.1.1", | ||
"ts-jest": "^26.5.6", | ||
"typescript": "^4.4.4" | ||
}, | ||
@@ -119,32 +109,2 @@ "keywords": [ | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"prettier --write", | ||
"git add" | ||
], | ||
"*.{ts,tsx}": [ | ||
"prettier --write", | ||
"git add" | ||
], | ||
"*.json": [ | ||
"prettier --write", | ||
"git add" | ||
], | ||
"*.css": [ | ||
"prettier --write", | ||
"git add" | ||
], | ||
"*.md": [ | ||
"prettier --write", | ||
"git add" | ||
], | ||
"**/package.json": [ | ||
"prettier-package-json --write", | ||
"git add" | ||
], | ||
"**/.babelrc": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
}, | ||
"prettier": { | ||
@@ -163,9 +123,3 @@ "semi": false, | ||
}, | ||
"release": { | ||
"prepare": [ | ||
"@semantic-release/npm" | ||
] | ||
}, | ||
"typings": "typings/index.d.ts", | ||
"sideEffects": false | ||
} |
@@ -108,3 +108,3 @@ [![CircleCI Status](https://img.shields.io/circleci/project/github/stipsan/smooth-scroll-into-view-if-needed.svg?style=flat-square)](https://circleci.com/gh/stipsan/smooth-scroll-into-view-if-needed) | ||
scrollIntoView(node, { | ||
ease: t => t, | ||
ease: (t) => t, | ||
}) | ||
@@ -117,3 +117,3 @@ ``` | ||
scrollIntoView(node, { | ||
ease: t => | ||
ease: (t) => | ||
t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1, | ||
@@ -127,3 +127,3 @@ }) | ||
scrollIntoView(node, { | ||
ease: t => (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2, | ||
ease: (t) => (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2, | ||
}) | ||
@@ -130,0 +130,0 @@ ``` |
Sorry, the diff of this file is not supported yet
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
32657
16
9
Yes
206
1
+ Addedcompute-scroll-into-view@3.1.1(transitive)
+ Addedscroll-into-view-if-needed@3.1.0(transitive)
- Removedcompute-scroll-into-view@1.0.20(transitive)
- Removedscroll-into-view-if-needed@2.2.31(transitive)