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.9 to 1.0.0-beta.10

22

dist/index.js

@@ -1,4 +0,4 @@

var $1adW8$rwhkeystrokes = require("@rwh/keystrokes");
var $1adW8$react = require("react");
var $1adW8$reactjsxruntime = require("react/jsx-runtime");
var $1adW8$rwhkeystrokes = require("@rwh/keystrokes");

@@ -8,21 +8,6 @@ function $parcel$export(e, n, v, s) {

}
function $parcel$exportWildcard(dest, source) {
Object.keys(source).forEach(function(key) {
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
return;
}
Object.defineProperty(dest, key, {
enumerable: true,
get: function get() {
return source[key];
}
});
});
return dest;
}
$parcel$export(module.exports, "useKey", () => $1b52fa0fd3526681$export$a41bc8a5485cb6b);
$parcel$export(module.exports, "useKeyCombo", () => $2f1dcbcc90d4b870$export$434cdd196b9c0b95);
$parcel$export(module.exports, "KeystrokesProvider", () => $64210477597ad864$export$2a9cdb7bc560c59d);

@@ -32,3 +17,2 @@

const $64210477597ad864$export$6ba12ef2439a21c4 = {

@@ -88,5 +72,5 @@ keystrokes: (0, $1adW8$rwhkeystrokes.getGlobalKeystrokes)()

$parcel$exportWildcard(module.exports, $1adW8$rwhkeystrokes);
//# sourceMappingURL=index.js.map

6

dist/module.js

@@ -1,4 +0,4 @@

import * as $90yQ7$rwhkeystrokes from "@rwh/keystrokes";
import {useState as $90yQ7$useState, useContext as $90yQ7$useContext, useEffect as $90yQ7$useEffect, createContext as $90yQ7$createContext} from "react";
import {jsx as $90yQ7$jsx} from "react/jsx-runtime";
import {getGlobalKeystrokes as $90yQ7$getGlobalKeystrokes} from "@rwh/keystrokes";

@@ -9,3 +9,2 @@

const $13a00e8fab989e59$export$6ba12ef2439a21c4 = {

@@ -67,3 +66,4 @@ keystrokes: (0, $90yQ7$getGlobalKeystrokes)()

export {$10ccd3e6aa62a243$export$a41bc8a5485cb6b as useKey, $b8c36d6faabf5979$export$434cdd196b9c0b95 as useKeyCombo};
export {$10ccd3e6aa62a243$export$a41bc8a5485cb6b as useKey, $b8c36d6faabf5979$export$434cdd196b9c0b95 as useKeyCombo, $13a00e8fab989e59$export$2a9cdb7bc560c59d as KeystrokesProvider};
//# sourceMappingURL=module.js.map

@@ -0,5 +1,11 @@

import { ReactNode } from "react";
import { Keystrokes } from "@rwh/keystrokes";
type KeystrokesProviderProps = {
keystrokes: Keystrokes;
children: ReactNode;
};
export const KeystrokesProvider: (props: KeystrokesProviderProps) => JSX.Element;
export const useKey: (key: string) => boolean;
export const useKeyCombo: (keyCombo: string) => boolean;
export * from '@rwh/keystrokes';
//# sourceMappingURL=types.d.ts.map
{
"name": "@rwh/react-keystrokes",
"version": "1.0.0-beta.9",
"version": "1.0.0-beta.10",
"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,8 +39,8 @@ "source": "./src/index.ts",

"react": ">=17",
"@rwh/keystrokes": "1.0.0-beta.9"
"@rwh/keystrokes": "1.0.0-beta.10"
},
"devDependencies": {
"@parcel/core": "2.7.0",
"@parcel/packager-ts": "2.7.0",
"@parcel/transformer-typescript-types": "2.7.0",
"@parcel/core": "2.8.3",
"@parcel/packager-ts": "2.8.3",
"@parcel/transformer-typescript-types": "2.8.3",
"@types/mocha": "^10.0.1",

@@ -60,3 +60,3 @@ "@types/node": "^18.11.18",

"node-static": "^0.7.11",
"parcel": "2.7.0",
"parcel": "2.8.3",
"prettier": "^2.8.3",

@@ -66,6 +66,6 @@ "react": ">=17",

"react-test-renderer": "^18.2.0",
"sinon": "^14.0.2",
"sinon": "^15.0.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.4",
"@rwh/keystrokes": "1.0.0-beta.9"
"@rwh/keystrokes": "1.0.0-beta.10"
},

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

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