Comparing version 0.5.0 to 0.6.0
22
index.js
@@ -0,8 +1,18 @@ | ||
/* |\__.__/| | ||
* ) ( | ||
* =\ /= . | ||
* | )=====( * ' | ||
* | / \ * * | ||
* | / dombili \ + '* | ||
* * \ / | ||
* _/\_/\_/\_, ,_/_/\_/\_/\_/\_/\_/\_/\_/\_/\_ | ||
* ) ) This project is a part of the | ||
* ( ( “Byte-Sized JavaScript” videocasts. | ||
* ) ) Watch “Byte-Sized JavaScript” at: https://bytesized.tv | ||
* (__( MIT licensed — See LICENSE.md | ||
* Send your comments, suggestions, and feedback to me@volkan.io | ||
*/ | ||
const scrollTop = () => window.pageYOffset || | ||
( document.documentElement && document.documentElement.scrollTop ) || | ||
document.body.scrollTop; | ||
import * as dombili from './src'; | ||
const scrollToTop = () => window.scrollTo(0, 0); | ||
export { scrollToTop, scrollTop }; | ||
export default dombili; |
{ | ||
"name": "dombili", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Dombili knows your DOM.", | ||
"main": "index.js", | ||
"scripts": { | ||
"lint": "bin/lint.sh", | ||
"test": "bin/test.sh", | ||
"doc": "bin/doc.sh" | ||
}, | ||
"repository": "git@github.com:jsbites/dombili.git", | ||
"author": "Volkan Özçelik <me@volkan.io> (https://volkan.io)", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"babel-eslint": "^7.2.3", | ||
"eslint": "^3.19.0", | ||
"eslint-config-jsbites": "^0.5.0", | ||
"eslint-plugin-babel": "^4.1.1", | ||
"ink-docstrap": "^1.3.0", | ||
"jsdoc": "^3.4.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 14 instances 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
Network access
Supply chain riskThis module accesses the network.
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
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4932862
99
131487
1
190
6
1
3
21