codemirror-graphql
Advanced tools
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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
31777
759