isolate-scroll
Advanced tools
Comparing version 0.0.1-security to 1.0.1
{ | ||
"name": "isolate-scroll", | ||
"version": "0.0.1-security", | ||
"description": "security holding package", | ||
"repository": "npm/security-holder" | ||
"version": "1.0.1", | ||
"description": "A small no-dependency Javascript lib for prevent browser to scroll parent container on wheel or touch event", | ||
"main": "dist/isolateScroll.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.2.2", | ||
"@babel/preset-env": "^7.2.3", | ||
"babel-eslint": "^10.0.1", | ||
"babel-loader": "^8.0.5", | ||
"clean-webpack-plugin": "^1.0.0", | ||
"eslint": "^5.12.0", | ||
"eslint-loader": "^2.1.1", | ||
"html-webpack-plugin": "^3.2.0", | ||
"lodash": "^4.17.11", | ||
"uglifyjs-webpack-plugin": "^2.1.1", | ||
"webpack": "^4.28.4", | ||
"webpack-cli": "^3.2.1", | ||
"webpack-dev-server": "^3.1.14", | ||
"webpack-merge": "^4.2.1" | ||
}, | ||
"scripts": { | ||
"start": "webpack-dev-server --progress --colors --config webpack.dev.js", | ||
"build": "webpack --config webpack.demo.js && webpack --config webpack.prod.js", | ||
"build:demo": "webpack --config webpack.demo.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/AleeeKoi/isolate-scroll.git" | ||
}, | ||
"keywords": [ | ||
"scroll", | ||
"lock", | ||
"prevent", | ||
"propagation", | ||
"js", | ||
"javascript" | ||
], | ||
"author": "Alessandro Pellizzari <aleeekoi@hotmail.it>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/AleeeKoi/isolate-scroll/issues" | ||
}, | ||
"homepage": "https://github.com/AleeeKoi/isolate-scroll#readme" | ||
} |
@@ -1,9 +0,89 @@ | ||
# Security holding package | ||
<p align="center"> | ||
<a href="http://alessandropellizzari.it" target="_blank" rel="noopener noreferrer"> | ||
<img height="150" src="http://alessandropellizzari.it/github/alessandro_pellizzari.png" alt="AP Logo" /> | ||
</a> | ||
</p> | ||
This package name is not currently in use, but was formerly occupied | ||
by another package. To avoid malicious use, npm is hanging on to the | ||
package name, but loosely, and we'll probably give it to you if you | ||
want it. | ||
--- | ||
You may adopt this package by contacting support@npmjs.com and | ||
requesting the name. | ||
# Isolate Scroll | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/isolate-scroll"><img src="https://img.shields.io/npm/v/isolate-scroll.svg" alt="Version"></a> | ||
<a href="https://www.npmjs.com/package/isolate-scroll"><img src="https://img.shields.io/npm/l/isolate-scroll.svg" alt="License"></a> | ||
</p> | ||
## Introduction | ||
Isolate Scroll is a small JavaScript library with no external dependency. | ||
Activating this library on an element, parents container will don't move when you scroll inside a child. | ||
This library prevent scroll on wheel and thouch event. | ||
### Browser Compatibility | ||
Isolate Scroll supports all browsers that are [ES5-compliant] (http://kangax.github.io/compat-table/es5/) (IE8 and below are not supported). | ||
### Mobile support | ||
Isolate Scroll also prevent parent scroll in mobile browsers. | ||
--- | ||
### Installing | ||
With a package manager (**recomanded**): | ||
```js | ||
npm install isolate-scroll --save | ||
``` | ||
**Manually:** | ||
Download this library from https://github.com/AleeeKoi/isolate-scroll/releases | ||
--- | ||
### Basic usage | ||
### As ES6 module | ||
```js | ||
import IsolateScroll from 'isolate-scroll'; | ||
var target = '.target-element'; | ||
// or: | ||
// var target = document.querySelector('.target-element'); | ||
var isolateScrollInstance = new IsolateScroll(target); | ||
``` | ||
#### Including directly as library | ||
```html | ||
<script src="/path/to/isolateScroll.min.js"></script> | ||
<script> | ||
(function(w) { | ||
w.addEventListener('load', function () { | ||
var isolateScrollInstance = IsolateScroll('.container'); | ||
}, true); | ||
})(window); | ||
</script> | ||
``` | ||
### DOM change/resize | ||
On inizialization this library caches some values, if DOM changes or is resized you need to manually call following method: | ||
```js | ||
isolateScrollInstance.update(); | ||
``` | ||
--- | ||
### License | ||
[MIT](http://opensource.org/licenses/MIT) | ||
Copyright (c) 2019-present, Alessandro Pellizzari |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Known malware
Supply chain riskThis package is malware. We have asked the package registry to remove it.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
69001
19
0
645
1
0
90
0
0
15
2