Socket
Socket
Sign inDemoInstall

codemirror-graphql

Package Overview
Dependencies
Maintainers
11
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemirror-graphql - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9-alpha.0

2

esm/utils/info-addon.js

@@ -63,3 +63,3 @@ import CodeMirror from 'codemirror';

top: (box.top + box.bottom) / 2,
});
}, 'window');
const state = cm.state.info;

@@ -66,0 +66,0 @@ const { options } = state;

{
"name": "codemirror-graphql",
"version": "2.0.8",
"version": "2.0.9-alpha.0",
"description": "GraphQL mode and helpers for CodeMirror.",

@@ -5,0 +5,0 @@ "contributors": [

@@ -24,3 +24,3 @@ # GraphQL mode for CodeMirror

```js
```ts
import type { ValidationContext, SDLValidationContext } from 'graphql';

@@ -60,3 +60,3 @@

const externalFragments = `
const externalFragments = /* GraphQL */ `
fragment MyFragment on Example {

@@ -91,3 +91,3 @@ id: ID!

```js
```ts
import type { ValidationRule } from 'graphql';

@@ -94,0 +94,0 @@

@@ -93,6 +93,9 @@ /**

function onMouseHover(cm: CodeMirror.Editor, box: DOMRect) {
const pos = cm.coordsChar({
left: (box.left + box.right) / 2,
top: (box.top + box.bottom) / 2,
});
const pos = cm.coordsChar(
{
left: (box.left + box.right) / 2,
top: (box.top + box.bottom) / 2,
},
'window',
); // 'window' allows to work when editor is not full page and window has scrolled

@@ -99,0 +102,0 @@ const state = cm.state.info;

@@ -63,3 +63,3 @@ import CodeMirror from 'codemirror';

top: (box.top + box.bottom) / 2,
});
}, 'window');
const state = cm.state.info;

@@ -66,0 +66,0 @@ const { options } = state;

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

top: (box.top + box.bottom) / 2,
});
}, 'window');
var state = cm.state.info;

@@ -71,0 +71,0 @@ var options = state.options;

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