@luvio/graphql-parser 0.135.0 → 0.135.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12672,7 +12672,8 @@ function updateReferenceMapWithKnownKey(doc, key) {
|
|
|
12672
12672
|
referenceMap.set(key, doc);
|
|
12673
12673
|
}
|
|
12674
12674
|
function updateReferenceMapAndGetKey(doc) {
|
|
12675
|
-
|
|
12675
|
+
// the key is a String object so that legacy locker does not replace its identity.
|
|
12676
|
+
const key = new String();
|
|
12676
12677
|
updateReferenceMapWithKnownKey(doc, key);
|
|
12677
12678
|
return key;
|
|
12678
12679
|
}
|
|
@@ -12724,10 +12725,6 @@ function stripLocation(node) {
|
|
|
12724
12725
|
delete node.loc;
|
|
12725
12726
|
}
|
|
12726
12727
|
const keys$1 = keys(node);
|
|
12727
|
-
const keysLength = keys$1.length;
|
|
12728
|
-
if (keysLength === 0) {
|
|
12729
|
-
return node;
|
|
12730
|
-
}
|
|
12731
12728
|
for (const key of keys$1) {
|
|
12732
12729
|
const subNode = node[key];
|
|
12733
12730
|
if (subNode && typeof subNode === 'object') {
|
|
@@ -12668,7 +12668,8 @@ function updateReferenceMapWithKnownKey(doc, key) {
|
|
|
12668
12668
|
referenceMap.set(key, doc);
|
|
12669
12669
|
}
|
|
12670
12670
|
function updateReferenceMapAndGetKey(doc) {
|
|
12671
|
-
|
|
12671
|
+
// the key is a String object so that legacy locker does not replace its identity.
|
|
12672
|
+
const key = new String();
|
|
12672
12673
|
updateReferenceMapWithKnownKey(doc, key);
|
|
12673
12674
|
return key;
|
|
12674
12675
|
}
|
|
@@ -12720,10 +12721,6 @@ function stripLocation(node) {
|
|
|
12720
12721
|
delete node.loc;
|
|
12721
12722
|
}
|
|
12722
12723
|
const keys$1 = keys(node);
|
|
12723
|
-
const keysLength = keys$1.length;
|
|
12724
|
-
if (keysLength === 0) {
|
|
12725
|
-
return node;
|
|
12726
|
-
}
|
|
12727
12724
|
for (const key of keys$1) {
|
|
12728
12725
|
const subNode = node[key];
|
|
12729
12726
|
if (subNode && typeof subNode === 'object') {
|