New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rwh/react-keystrokes

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rwh/react-keystrokes - npm Package Compare versions

Comparing version 1.0.0-beta.11 to 1.0.0-beta.12

./dist/index.js

13

dist/index.js

@@ -16,10 +16,9 @@ var $1adW8$react = require("react");

const $64210477597ad864$export$6ba12ef2439a21c4 = {
keystrokes: (0, $1adW8$rwhkeystrokes.getGlobalKeystrokes)()
};
const $64210477597ad864$export$6ba12ef2439a21c4 = ()=>(0, $1adW8$rwhkeystrokes.getGlobalKeystrokes)();
const $64210477597ad864$export$b7e84bb6d92d860f = /*#__PURE__*/ (0, $1adW8$react.createContext)($64210477597ad864$export$6ba12ef2439a21c4);
const $64210477597ad864$export$2a9cdb7bc560c59d = (props)=>{
const { keystrokes: keystrokes , children: children } = props;
return /*#__PURE__*/ (0, $1adW8$reactjsxruntime.jsx)($64210477597ad864$export$b7e84bb6d92d860f.Provider, {
value: props,
children: props.children
value: ()=>keystrokes,
children: children
});

@@ -31,3 +30,3 @@ };

const [isPressed, setIsPressed] = (0, $1adW8$react.useState)(false);
const { keystrokes: keystrokes } = (0, $1adW8$react.useContext)((0, $64210477597ad864$export$b7e84bb6d92d860f));
const keystrokes = (0, $1adW8$react.useContext)((0, $64210477597ad864$export$b7e84bb6d92d860f))();
const updatePressedEffect = ()=>{

@@ -54,3 +53,3 @@ const handler = {

const [isPressed, setIsPressed] = (0, $1adW8$react.useState)(false);
const { keystrokes: keystrokes } = (0, $1adW8$react.useContext)((0, $64210477597ad864$export$b7e84bb6d92d860f));
const keystrokes = (0, $1adW8$react.useContext)((0, $64210477597ad864$export$b7e84bb6d92d860f))();
const updatePressedEffect = ()=>{

@@ -57,0 +56,0 @@ const handler = {

@@ -9,10 +9,9 @@ import {useState as $90yQ7$useState, useContext as $90yQ7$useContext, useEffect as $90yQ7$useEffect, createContext as $90yQ7$createContext} from "react";

const $13a00e8fab989e59$export$6ba12ef2439a21c4 = {
keystrokes: (0, $90yQ7$getGlobalKeystrokes)()
};
const $13a00e8fab989e59$export$6ba12ef2439a21c4 = ()=>(0, $90yQ7$getGlobalKeystrokes)();
const $13a00e8fab989e59$export$b7e84bb6d92d860f = /*#__PURE__*/ (0, $90yQ7$createContext)($13a00e8fab989e59$export$6ba12ef2439a21c4);
const $13a00e8fab989e59$export$2a9cdb7bc560c59d = (props)=>{
const { keystrokes: keystrokes , children: children } = props;
return /*#__PURE__*/ (0, $90yQ7$jsx)($13a00e8fab989e59$export$b7e84bb6d92d860f.Provider, {
value: props,
children: props.children
value: ()=>keystrokes,
children: children
});

@@ -24,3 +23,3 @@ };

const [isPressed, setIsPressed] = (0, $90yQ7$useState)(false);
const { keystrokes: keystrokes } = (0, $90yQ7$useContext)((0, $13a00e8fab989e59$export$b7e84bb6d92d860f));
const keystrokes = (0, $90yQ7$useContext)((0, $13a00e8fab989e59$export$b7e84bb6d92d860f))();
const updatePressedEffect = ()=>{

@@ -47,3 +46,3 @@ const handler = {

const [isPressed, setIsPressed] = (0, $90yQ7$useState)(false);
const { keystrokes: keystrokes } = (0, $90yQ7$useContext)((0, $13a00e8fab989e59$export$b7e84bb6d92d860f));
const keystrokes = (0, $90yQ7$useContext)((0, $13a00e8fab989e59$export$b7e84bb6d92d860f))();
const updatePressedEffect = ()=>{

@@ -50,0 +49,0 @@ const handler = {

{
"name": "@rwh/react-keystrokes",
"version": "1.0.0-beta.11",
"version": "1.0.0-beta.12",
"description": "React bindings for Keystrokes, an easy to use library for binding functions to keys and key combos. It can be used with any TypeScript or JavaScript project, even in non-browser environments.",

@@ -39,3 +39,3 @@ "source": "./src/index.ts",

"react": ">=17",
"@rwh/keystrokes": "1.0.0-beta.11"
"@rwh/keystrokes": "1.0.0-beta.12"
},

@@ -68,3 +68,3 @@ "devDependencies": {

"typescript": "^4.9.4",
"@rwh/keystrokes": "1.0.0-beta.11"
"@rwh/keystrokes": "1.0.0-beta.12"
},

@@ -71,0 +71,0 @@ "scripts": {

@@ -19,3 +19,3 @@ <h1 align="center">

<a href="https://openbase.com/js/@rwh/keystrokes?utm_source=embedded&amp;utm_medium=badge&amp;utm_campaign=rate-badge">
<img src="https://badges.openbase.com/js/featured/@rwh/keystrokes.svg?token=Y+3F66I/0u7k7QF6s0YDhURC3LhUD7QLYjH//vNr8qg=">
<img src="https://badges.openbase.com/js/featured/@rwh/keystrokes.svg?token=2wanGBvFibIfrdpnvnSioqIgoC7lJt3ztNNcKsRw+Pg=">
</a>

@@ -22,0 +22,0 @@ </p>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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