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

react-hotkeys-hook

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hotkeys-hook - npm Package Compare versions

Comparing version 4.0.4-2 to 4.0.4-3

dist/index.cjs

0

dist/BoundHotkeysProxyProvider.d.ts

@@ -0,0 +0,0 @@ import { ReactNode } from 'react';

@@ -0,0 +0,0 @@ import { Hotkey } from './types';

@@ -0,0 +0,0 @@ import useHotkeys from './useHotkeys';

export declare function isHotkeyPressed(key: string | string[], splitKey?: string): boolean;
export declare function pushToCurrentlyPressedKeys(key: string | string[]): void;
export declare function removeFromCurrentlyPressedKeys(key: string | string[]): void;
import { Hotkey, Keys } from './types';
export declare function parseKeysHookInput(keys: Keys, splitKey?: string): string[];
export declare function parseHotkey(hotkey: string, combinationKey?: string): Hotkey;

@@ -0,0 +0,0 @@ import type { DependencyList } from 'react';

export default function useDeepEqualMemo<T>(value: T): T | undefined;

1

dist/useHotkeys.d.ts

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

/// <reference types="react" />
import { HotkeyCallback, Keys, OptionsOrDependencyArray, RefType } from './types';
export default function useHotkeys<T extends HTMLElement>(keys: Keys, callback: HotkeyCallback, options?: OptionsOrDependencyArray, dependencies?: OptionsOrDependencyArray): import("react").MutableRefObject<RefType<T>>;

@@ -0,0 +0,0 @@ import { FormTags, Hotkey, Scopes, Trigger } from './types';

{
"name": "react-hotkeys-hook",
"version": "4.0.4-2",
"version": "4.0.4-3",
"repository": "https://JohannesKlauss@github.com/JohannesKlauss/react-keymap-hook.git",
"homepage": "https://johannesklauss.github.io/react-hotkeys-hook/",
"author": "Johannes Klauss",
"main": "dist/index.js",
"module": "dist/react-hotkeys-hook.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",

@@ -28,3 +28,3 @@ "files": [

"scripts": {
"build": "tsdx build",
"build": "node ./esbuild.js && tsc --project tsconfig.build.json",
"test": "jest",

@@ -58,5 +58,6 @@ "publish": "np"

"@types/jest": "29.2.2",
"@types/lodash": "^4.14.182",
"@types/lodash.isequal": "4.5.6",
"@types/react": "18.0.15",
"@types/react-dom": "18.0.6",
"esbuild": "0.15.14",
"eslint-plugin-prettier": "4.2.1",

@@ -69,3 +70,2 @@ "jest": "29.2.2",

"react-test-renderer": "18.2.0",
"tsdx": "0.14.1",
"tslib": "2.4.0",

@@ -75,6 +75,6 @@ "typescript": "4.7.4"

"dependencies": {
"lodash": "4.17.21"
"lodash.isequal": "4.5.0"
},
"peerDependencies": {
"lodash": ">=4.17.0",
"lodash.isequal": ">=4.5.0",
"react": ">=16.8.1",

@@ -81,0 +81,0 @@ "react-dom": ">=16.8.1"

import { Hotkey } from './types'
import { parseHotkey } from './parseHotkeys'
import isEqual from 'lodash/isEqual'
import isEqual from 'lodash.isEqual'

@@ -5,0 +5,0 @@ const currentlyPressedKeys: Set<Hotkey> = new Set<Hotkey>()

import { useRef } from 'react'
import isEqual from 'lodash/isEqual'
import isEqual from 'lodash.isEqual'

@@ -4,0 +4,0 @@ export default function useDeepEqualMemo<T>(value: T) {

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