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