@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 +3 -0
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.esm.js +3 -0
- package/es5/index.esm.js.map +1 -1
- package/es5/package.json +2 -2
- package/es5/typedefs-mergers/merge-named-type-array.d.ts +1 -1
- package/index.cjs.js +1 -1
- package/index.cjs.js.map +1 -1
- package/index.esm.js +1 -1
- package/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/typedefs-mergers/merge-named-type-array.d.ts +1 -1
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);
|