Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

makeup-prevent-scroll-keys

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

makeup-prevent-scroll-keys - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

49

package.json
{
"name": "makeup-prevent-scroll-keys",
"description": "Prevents default scroll event when pressing down arrow, page down, spacebar, etc.",
"version": "0.0.3",
"version": "0.0.4",
"main": "index.js",
"repository": "https://github.com/makeup-js/makeup-prevent-scroll-keys.git",
"repository": "https://github.com/makeup/makeup-js/tree/master/packages/makeup-prevent-scroll-keys",
"author": "Ian McBurnie <ianmcburnie@hotmail.com>",
"license": "MIT",
"scripts": {
"start": "npm run build && parallelshell \"npm run server\" \"npm run watch\"",
"test": "npm run build:module && npm run lasso:tests && karma start --autoWatch false --singleRun true",
"prepublishOnly": "npm run lint && npm run test && npm run clean:tests && npm run build:docs",
"prep": "npm run prepublishOnly",
"build": "npm run build:module && npm run build:docs",
"build:module": "babel src/index.js --out-file index.js",
"build:docs": "babel docs/src/index.js --out-file docs/index.js && npm run lasso:docs && npm run clean:docs",
"fix": "eslint src/index.js --fix",
"lint": "eslint src/index.js > lint.txt && eslint docs/src/index.js > lint.txt",
"lasso:docs": "lasso require-run:./docs/index.js --out docs/static --inject-into docs/index.html --name bundle",
"lasso:tests": "npm run clean:tests && lasso require-run:./test/index.js --name bundle-test --out test/static --config ./test/lasso-config.json",
"clean:docs": "rimraf .cache build docs/index.js",
"clean:tests": "rimraf lint.txt reports",
"server": "browser-sync start -s --ss docs --index docs/index.html --files docs/index.html",
"watch": "onchange src/*.js docs/src/index.js -- npm run build",
"version": "npm run prepublishOnly && git add -A docs/static test/static"
"compile": "babel src/index.js --out-file index.js",
"clean": "rimraf *.log .DS_Store"
},

@@ -33,29 +19,10 @@ "keywords": [

],
"devDependencies": {
"@babel/cli": "^7",
"@babel/core": "^7",
"@babel/preset-env": "^7",
"babel-plugin-transform-object-assign": "^6",
"browser-sync": "^2",
"core-js-pure": "^3",
"coveralls": "^3",
"eslint": "^5",
"eslint-config-ebay": "^1",
"jasmine-core": "^3",
"karma": "^4",
"karma-chrome-launcher": "^2",
"karma-coverage": "^1",
"karma-html-reporter": "~0.2",
"karma-jasmine": "^2",
"lasso-cli": "^2",
"onchange": "^5",
"parallelshell": "^3",
"puppeteer": "^1",
"rimraf": "^2"
},
"files": [
"browser.json",
"index.js",
"yarn.lock"
"package-lock.json"
],
"browserslist": [
"extends @ebay/browserslist-config"
]
}
# makeup-prevent-scroll-keys
<p>
<a href="https://travis-ci.org/makeup-js/makeup-prevent-scroll-keys"><img src="https://api.travis-ci.org/makeup-js/makeup-prevent-scroll-keys.svg?branch=master" alt="Build Status" /></a>
<a href='https://coveralls.io/github/makeup-js/makeup-prevent-scroll-keys?branch=master'><img src='https://coveralls.io/repos/makeup-js/makeup-prevent-scroll-keys/badge.svg?branch=master&service=github' alt='Coverage Status' /></a>
<a href="https://david-dm.org/makeup-js/makeup-prevent-scroll-keys"><img src="https://david-dm.org/makeup-js/makeup-prevent-scroll-keys.svg" alt="Dependency status" /></a>
<a href="https://david-dm.org/makeup-js/makeup-prevent-scroll-keys#info=devDependencies"><img src="https://david-dm.org/makeup-js/makeup-prevent-scroll-keys/dev-status.svg" alt="devDependency status" /></a>
</p>
This CommonJS module prevents the default scroll event when pressing down arrow, page down, spacebar, etc. This behaviour is required for ARIA widgets such as menu, tabs and comboboxes. See [eBay MIND Patterns](https://ebay.gitbooks.io/mindpatterns/content/) for further information.
A vanilla JavaScript port of <a href="https://github.com/ianmcburnie/jquery-prevent-scroll-keys">jquery-prevent-scroll-keys</a>.
This module prevents the default scroll event when pressing down arrow, page down, spacebar, etc. This behaviour is required for ARIA widgets such as menu, tabs and comboboxes. See [eBay MIND Patterns](https://ebay.gitbooks.io/mindpatterns/content/) for further information.
## Experimental

@@ -56,30 +47,1 @@

None
## Development
* `npm start`
* `npm test`
* `npm run lint`
* `npm run fix`
* `npm run build`
* `npm run clean`
The following hooks exist, and do not need to be invoked manually:
* `npm prepublishOnly` cleans, lints, tests and builds on every `npm publish` command
* `pre-commit` cleans, lints, tests and builds on every `git commit` command
## Test Reports
Each test run will generate the following reports:
* `/reports/coverage` contains Istanbul code coverage report
* `/reports/html` contains HTML test report
## CI Build
https://travis-ci.org/makeup-js/makeup-prevent-scroll-keys
## Code Coverage
https://coveralls.io/github/makeup-js/makeup-prevent-scroll-keys
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