Socket
Socket
Sign inDemoInstall

@graphiql/react

Package Overview
Dependencies
Maintainers
0
Versions
285
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphiql/react - npm Package Compare versions

Comparing version 0.26.1 to 0.26.2-canary-52a5839f.0

src/utility/is-macos.ts

2

dist/jump.cjs.js

@@ -87,3 +87,3 @@ "use strict";

}
const isMac = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.appVersion.includes("Mac"));
const isMac = typeof navigator !== "undefined" && navigator.userAgent.includes("Mac");
function isJumpModifier(key) {

@@ -90,0 +90,0 @@ return key === (isMac ? "Meta" : "Control");

@@ -86,3 +86,3 @@ import { C as CodeMirror } from "./codemirror.es.js";

}
const isMac = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.appVersion.includes("Mac"));
const isMac = typeof navigator !== "undefined" && navigator.userAgent.includes("Mac");
function isJumpModifier(key) {

@@ -89,0 +89,0 @@ return key === (isMac ? "Meta" : "Control");

{
"name": "@graphiql/react",
"version": "0.26.1",
"version": "0.26.2-canary-52a5839f.0",
"repository": {

@@ -60,3 +60,3 @@ "type": "git",

"codemirror": "^5.65.3",
"codemirror-graphql": "^2.1.0",
"codemirror-graphql": "^2.1.1-canary-52a5839f.0",
"copy-to-clipboard": "^3.2.0",

@@ -63,0 +63,0 @@ "framer-motion": "^6.5.1",

import { KeyMap } from './types';
import { isMacOs } from '../utility/is-macos';

@@ -6,8 +7,2 @@ export const DEFAULT_EDITOR_THEME = 'graphiql';

let isMacOs = false;
if (typeof window === 'object') {
isMacOs = window.navigator.platform.toLowerCase().indexOf('mac') === 0;
}
export const commonKeys = {

@@ -14,0 +9,0 @@ // Persistent search box in Query Editor

@@ -74,2 +74,3 @@ import './style/root.css';

export { useDragResize } from './utility/resize';
export { isMacOs } from './utility/is-macos';

@@ -76,0 +77,0 @@ export * from './icons';

@@ -12,2 +12,3 @@ import './style/root.css';

export { useDragResize } from './utility/resize';
export { isMacOs } from './utility/is-macos';
export * from './icons';

@@ -14,0 +15,0 @@ export * from './ui';

Sorry, the diff of this file is too big to display

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

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

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