react-scroll-into-view
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "react-scroll-into-view", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Simple React element that when clicked scrolls to any element on page", | ||
@@ -30,3 +30,2 @@ "main": "dist/index.js", | ||
"prop-types": "^15.6.1", | ||
"react": "^16.3.1", | ||
"recompose": "^0.26.0", | ||
@@ -36,4 +35,8 @@ "rollup": "^0.57.1", | ||
"rollup-plugin-commonjs": "^9.1.0", | ||
"rollup-plugin-node-resolve": "^3.3.0" | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-uglify": "^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.0.0" | ||
} | ||
} |
@@ -8,4 +8,4 @@ # React scroll-into-view | ||
## Changelog | ||
See [releases](releases) tab | ||
## Demo | ||
See this [codesandbox](https://codesandbox.io/s/14lxm6jmm7) | ||
@@ -46,5 +46,7 @@ ## Installation | ||
## Changelog | ||
See [releases](/dominikbulaj/react-scroll-into-view/releases) tab | ||
## TODO | ||
* tests | ||
* support for all [element.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) parameters | ||
* demo | ||
* support for all [element.scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) parameters |
import resolve from 'rollup-plugin-node-resolve' | ||
import babel from 'rollup-plugin-babel' | ||
import commonjs from 'rollup-plugin-commonjs' | ||
import uglify from 'rollup-plugin-uglify' | ||
@@ -12,13 +13,12 @@ export default { | ||
plugins: [ | ||
resolve(), | ||
commonjs({ | ||
include: 'node_modules/**', | ||
namedExports:{ | ||
'./node_modules/react/index.js': ['createFactory', 'Component','createElement'], | ||
} | ||
include: 'node_modules/**' | ||
}), | ||
resolve(), | ||
babel({ | ||
exclude: 'node_modules/**' | ||
}) | ||
] | ||
}), | ||
uglify() | ||
], | ||
external: ['react'] | ||
} |
Sorry, the diff of this file is too big to display
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
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
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
50
21523
1
111
2
11
2