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

react-cosmos-core

Package Overview
Dependencies
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cosmos-core - npm Package Compare versions

Comparing version 6.0.4-canary.2b25174.0 to 6.0.4-canary.5364b02.0

7

dist/playground/registerPlaygroundShortcuts.js

@@ -9,3 +9,3 @@ export function registerPlaygroundShortcuts(runCommand) {

// Allow meta key shortcuts to work when focused on input fields
if (isEditing() && !e.metaKey) {
if (isEditing(e) && !e.metaKey) {
return;

@@ -46,3 +46,6 @@ }

}
function isEditing() {
function isEditing(e) {
if (e.target instanceof HTMLElement && e.target.isContentEditable) {
return true;
}
const activeElement = document.activeElement;

@@ -49,0 +52,0 @@ return activeElement && isInputTag(activeElement.tagName);

{
"name": "react-cosmos-core",
"version": "6.0.4-canary.2b25174.0+2b25174",
"version": "6.0.4-canary.5364b02.0+5364b02",
"description": "React Cosmos Core",

@@ -15,3 +15,3 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-core",

},
"gitHead": "2b25174ed0e6f6899a05ca691275146342d3daa2"
"gitHead": "5364b02d03f71bb318da044d5d91ec60528f313b"
}
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