@graphql-tools/merge 6.2.14-alpha-203f8912.0 → 6.2.14

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.
package/es5/index.esm.js CHANGED
@@ -762,6 +762,9 @@ function alreadyExists(arr, other) {
762
762
  return !!arr.find(function (i) { return i.name.value === other.name.value; });
763
763
  }
764
764
  function mergeNamedTypeArray(first, second, config) {
765
+ if (first === void 0) { first = []; }
766
+ if (second === void 0) { second = []; }
767
+ if (config === void 0) { config = {}; }
765
768
  var result = __spreadArray(__spreadArray([], __read(second)), __read(first.filter(function (d) { return !alreadyExists(second, d); })));
766
769
  if (config && config.sort) {
767
770
  result.sort(compareNodes);