Socket
Socket
Sign inDemoInstall

codemirror-graphql

Package Overview
Dependencies
Maintainers
1
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 0.1.0 to 0.1.1

14

mode.js

@@ -158,2 +158,10 @@ /**

function assign(to, from) {
var keys = Object.keys(from);
for (var i = 0; i < keys.length; i++) {
to[keys[i]] = from[keys[i]];
}
return to;
}
var stateCache = {};

@@ -163,3 +171,3 @@

function saveState(state) {
Object.assign(stateCache, state);
assign(stateCache, state);
}

@@ -169,3 +177,3 @@

function restoreState(state) {
Object.assign(state, stateCache);
assign(state, stateCache);
}

@@ -175,3 +183,3 @@

function pushRule(state, ruleKind) {
state.prevState = Object.assign({}, state);
state.prevState = assign({}, state);
state.kind = ruleKind;

@@ -178,0 +186,0 @@ state.name = null;

{
"name": "codemirror-graphql",
"version": "0.1.0",
"version": "0.1.1",
"description": "GraphQL mode and helpers for CodeMirror.",

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

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