🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

keydown-from-click

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keydown-from-click - npm Package Compare versions

Comparing version

to
3.1.5

.husky/pre-commit

3

.eslintrc.js

@@ -12,7 +12,6 @@ module.exports = {

'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:jsx-a11y/recommended',
'plugin:jest/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],

@@ -19,0 +18,0 @@ parser: '@typescript-eslint/parser',

@@ -10,2 +10,9 @@ # Changelog

## [3.1.5] - 2022-05-31
### Security
- Upgrade all upgradable dependencies;
- Start using exact versions in `package.json`.
## [3.1.4] - 2021-08-01

@@ -214,1 +221,5 @@

- Initial files.
[Unreleased]: https://github.com/alcar/keydown-from-click/compare/v3.1.5...HEAD
[3.1.5]: https://github.com/alcar/keydown-from-click/compare/v3.1.4...v3.1.5
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
testRegex: '^.+\\.test\\.tsx?$',
}
{
"name": "keydown-from-click",
"version": "3.1.4",
"version": "3.1.5",
"description": "Generate React keydown handlers by replicating click ones",

@@ -13,2 +13,3 @@ "main": "build/index.js",

"postreleasy": "npm publish",
"prepare": "husky install",
"prereleasy": "npm-run-all -p checkFormatting checkTyping lint test -s build",

@@ -43,37 +44,38 @@ "release": "releasy",

"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.10.5",
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@testing-library/react": "^10.4.7",
"@types/jest": "^26.0.5",
"@types/react": "^16.9.43",
"@types/react-dom": "^16.9.8",
"@typescript-eslint/eslint-plugin": "^3.6.1",
"@typescript-eslint/parser": "^3.6.1",
"babel-loader": "^8.1.0",
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-jest": "^23.18.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.8",
"husky": "^4.2.5",
"jest": "^26.1.0",
"lint-staged": "^10.2.11",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-test-renderer": "^16.13.1",
"releasy": "^1.10.2",
"terser-webpack-plugin": "^5.1.1",
"ts-jest": "^26.1.3",
"typescript": "^3.9.7",
"webpack": "^5.28.0",
"webpack-cli": "^4.6.0",
"webpack-node-externals": "^2.5.0"
"@babel/cli": "7.17.10",
"@babel/core": "7.18.2",
"@babel/preset-env": "7.18.2",
"@babel/preset-react": "7.17.12",
"@babel/preset-typescript": "7.17.12",
"@testing-library/react": "12.1.5",
"@types/jest": "27.5.1",
"@types/react": "17.0.39",
"@types/react-dom": "17.0.11",
"@typescript-eslint/eslint-plugin": "5.27.0",
"@typescript-eslint/parser": "5.27.0",
"babel-loader": "8.2.5",
"eslint": "8.16.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jest": "26.4.6",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.30.0",
"eslint-plugin-react-hooks": "4.5.0",
"husky": "8.0.1",
"jest": "28.1.0",
"jest-environment-jsdom": "28.1.0",
"lint-staged": "12.4.3",
"npm-run-all": "4.1.5",
"prettier": "2.6.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-test-renderer": "17.0.2",
"releasy": "1.13.1",
"terser-webpack-plugin": "5.3.1",
"ts-jest": "28.0.3",
"typescript": "4.7.2",
"webpack": "5.72.1",
"webpack-cli": "4.9.2",
"webpack-node-externals": "3.0.0"
}
}

@@ -126,3 +126,2 @@ # keydown-from-click

import { useKeydownFromClick } from 'keydown-from-click'
import React from 'react'

@@ -129,0 +128,0 @@ const clickHandler = () => {

@@ -1,3 +0,2 @@

import React from 'react'
import { AbstractView } from 'react'
import { Options } from '../typings'

@@ -93,3 +92,5 @@ import { combineKeysWithModifiers, shouldTriggerHandler } from '../utils/event'

type: event.type,
view: window,
// TODO: re-evaluate the need for a typecast after bumping React to v18.
view: window as unknown as AbstractView,
})

@@ -96,0 +97,0 @@

@@ -6,3 +6,3 @@ {

"isolatedModules": true,
"jsx": "react",
"jsx": "react-jsx",
"lib": ["dom", "es2017"],

@@ -9,0 +9,0 @@ "module": "es2015",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet