houdini 1.0.2 → 1.0.4
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/build/cmd-cjs/index.js +127 -128
- package/build/cmd-esm/index.js +127 -128
- package/build/codegen-cjs/index.js +118 -120
- package/build/codegen-esm/index.js +118 -120
- package/build/lib-cjs/index.js +156 -142
- package/build/lib-esm/index.js +156 -142
- package/build/runtime/client/documentStore.d.ts +1 -0
- package/build/runtime/client/plugins/subscription.d.ts +2 -1
- package/build/runtime-cjs/client/documentStore.d.ts +1 -0
- package/build/runtime-cjs/client/documentStore.js +6 -3
- package/build/runtime-cjs/client/plugins/subscription.d.ts +2 -1
- package/build/runtime-cjs/client/plugins/subscription.js +19 -7
- package/build/runtime-esm/client/documentStore.d.ts +1 -0
- package/build/runtime-esm/client/documentStore.js +6 -3
- package/build/runtime-esm/client/plugins/subscription.d.ts +2 -1
- package/build/runtime-esm/client/plugins/subscription.js +19 -7
- package/build/test-cjs/index.js +118 -120
- package/build/test-esm/index.js +118 -120
- package/build/vite-cjs/index.js +123 -124
- package/build/vite-esm/index.js +123 -124
- package/package.json +1 -1
package/build/vite-cjs/index.js
CHANGED
|
@@ -18857,109 +18857,6 @@ var require_graphql2 = __commonJS({
|
|
|
18857
18857
|
}
|
|
18858
18858
|
});
|
|
18859
18859
|
|
|
18860
|
-
// ../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js
|
|
18861
|
-
var require_cjs = __commonJS({
|
|
18862
|
-
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module2) {
|
|
18863
|
-
"use strict";
|
|
18864
|
-
var isMergeableObject = function isMergeableObject2(value) {
|
|
18865
|
-
return isNonNullObject(value) && !isSpecial(value);
|
|
18866
|
-
};
|
|
18867
|
-
function isNonNullObject(value) {
|
|
18868
|
-
return !!value && typeof value === "object";
|
|
18869
|
-
}
|
|
18870
|
-
function isSpecial(value) {
|
|
18871
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
18872
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
18873
|
-
}
|
|
18874
|
-
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
18875
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
18876
|
-
function isReactElement(value) {
|
|
18877
|
-
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
18878
|
-
}
|
|
18879
|
-
function emptyTarget(val) {
|
|
18880
|
-
return Array.isArray(val) ? [] : {};
|
|
18881
|
-
}
|
|
18882
|
-
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
18883
|
-
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
18884
|
-
}
|
|
18885
|
-
function defaultArrayMerge(target, source, options) {
|
|
18886
|
-
return target.concat(source).map(function(element) {
|
|
18887
|
-
return cloneUnlessOtherwiseSpecified(element, options);
|
|
18888
|
-
});
|
|
18889
|
-
}
|
|
18890
|
-
function getMergeFunction(key, options) {
|
|
18891
|
-
if (!options.customMerge) {
|
|
18892
|
-
return deepmerge;
|
|
18893
|
-
}
|
|
18894
|
-
var customMerge = options.customMerge(key);
|
|
18895
|
-
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
18896
|
-
}
|
|
18897
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
18898
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
18899
|
-
return target.propertyIsEnumerable(symbol);
|
|
18900
|
-
}) : [];
|
|
18901
|
-
}
|
|
18902
|
-
function getKeys(target) {
|
|
18903
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
18904
|
-
}
|
|
18905
|
-
function propertyIsOnObject(object, property) {
|
|
18906
|
-
try {
|
|
18907
|
-
return property in object;
|
|
18908
|
-
} catch (_) {
|
|
18909
|
-
return false;
|
|
18910
|
-
}
|
|
18911
|
-
}
|
|
18912
|
-
function propertyIsUnsafe(target, key) {
|
|
18913
|
-
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
18914
|
-
}
|
|
18915
|
-
function mergeObject(target, source, options) {
|
|
18916
|
-
var destination = {};
|
|
18917
|
-
if (options.isMergeableObject(target)) {
|
|
18918
|
-
getKeys(target).forEach(function(key) {
|
|
18919
|
-
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
18920
|
-
});
|
|
18921
|
-
}
|
|
18922
|
-
getKeys(source).forEach(function(key) {
|
|
18923
|
-
if (propertyIsUnsafe(target, key)) {
|
|
18924
|
-
return;
|
|
18925
|
-
}
|
|
18926
|
-
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
18927
|
-
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
18928
|
-
} else {
|
|
18929
|
-
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
18930
|
-
}
|
|
18931
|
-
});
|
|
18932
|
-
return destination;
|
|
18933
|
-
}
|
|
18934
|
-
function deepmerge(target, source, options) {
|
|
18935
|
-
options = options || {};
|
|
18936
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
18937
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
18938
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
18939
|
-
var sourceIsArray = Array.isArray(source);
|
|
18940
|
-
var targetIsArray = Array.isArray(target);
|
|
18941
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
18942
|
-
if (!sourceAndTargetTypesMatch) {
|
|
18943
|
-
return cloneUnlessOtherwiseSpecified(source, options);
|
|
18944
|
-
} else if (sourceIsArray) {
|
|
18945
|
-
return options.arrayMerge(target, source, options);
|
|
18946
|
-
} else {
|
|
18947
|
-
return mergeObject(target, source, options);
|
|
18948
|
-
}
|
|
18949
|
-
}
|
|
18950
|
-
deepmerge.all = function deepmergeAll(array, options) {
|
|
18951
|
-
if (!Array.isArray(array)) {
|
|
18952
|
-
throw new Error("first argument should be an array");
|
|
18953
|
-
}
|
|
18954
|
-
return array.reduce(function(prev, next) {
|
|
18955
|
-
return deepmerge(prev, next, options);
|
|
18956
|
-
}, {});
|
|
18957
|
-
};
|
|
18958
|
-
var deepmerge_1 = deepmerge;
|
|
18959
|
-
module2.exports = deepmerge_1;
|
|
18960
|
-
}
|
|
18961
|
-
});
|
|
18962
|
-
|
|
18963
18860
|
// ../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
|
18964
18861
|
var require_universalify = __commonJS({
|
|
18965
18862
|
"../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
|
@@ -61769,6 +61666,109 @@ var require_main2 = __commonJS({
|
|
|
61769
61666
|
}
|
|
61770
61667
|
});
|
|
61771
61668
|
|
|
61669
|
+
// ../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js
|
|
61670
|
+
var require_cjs = __commonJS({
|
|
61671
|
+
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module2) {
|
|
61672
|
+
"use strict";
|
|
61673
|
+
var isMergeableObject = function isMergeableObject2(value) {
|
|
61674
|
+
return isNonNullObject(value) && !isSpecial(value);
|
|
61675
|
+
};
|
|
61676
|
+
function isNonNullObject(value) {
|
|
61677
|
+
return !!value && typeof value === "object";
|
|
61678
|
+
}
|
|
61679
|
+
function isSpecial(value) {
|
|
61680
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
61681
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
61682
|
+
}
|
|
61683
|
+
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
61684
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
61685
|
+
function isReactElement(value) {
|
|
61686
|
+
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
61687
|
+
}
|
|
61688
|
+
function emptyTarget(val) {
|
|
61689
|
+
return Array.isArray(val) ? [] : {};
|
|
61690
|
+
}
|
|
61691
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
61692
|
+
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
61693
|
+
}
|
|
61694
|
+
function defaultArrayMerge(target, source, options) {
|
|
61695
|
+
return target.concat(source).map(function(element) {
|
|
61696
|
+
return cloneUnlessOtherwiseSpecified(element, options);
|
|
61697
|
+
});
|
|
61698
|
+
}
|
|
61699
|
+
function getMergeFunction(key, options) {
|
|
61700
|
+
if (!options.customMerge) {
|
|
61701
|
+
return deepmerge;
|
|
61702
|
+
}
|
|
61703
|
+
var customMerge = options.customMerge(key);
|
|
61704
|
+
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
61705
|
+
}
|
|
61706
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
61707
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
61708
|
+
return target.propertyIsEnumerable(symbol);
|
|
61709
|
+
}) : [];
|
|
61710
|
+
}
|
|
61711
|
+
function getKeys(target) {
|
|
61712
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
61713
|
+
}
|
|
61714
|
+
function propertyIsOnObject(object, property) {
|
|
61715
|
+
try {
|
|
61716
|
+
return property in object;
|
|
61717
|
+
} catch (_) {
|
|
61718
|
+
return false;
|
|
61719
|
+
}
|
|
61720
|
+
}
|
|
61721
|
+
function propertyIsUnsafe(target, key) {
|
|
61722
|
+
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
61723
|
+
}
|
|
61724
|
+
function mergeObject(target, source, options) {
|
|
61725
|
+
var destination = {};
|
|
61726
|
+
if (options.isMergeableObject(target)) {
|
|
61727
|
+
getKeys(target).forEach(function(key) {
|
|
61728
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
61729
|
+
});
|
|
61730
|
+
}
|
|
61731
|
+
getKeys(source).forEach(function(key) {
|
|
61732
|
+
if (propertyIsUnsafe(target, key)) {
|
|
61733
|
+
return;
|
|
61734
|
+
}
|
|
61735
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
61736
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
61737
|
+
} else {
|
|
61738
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
61739
|
+
}
|
|
61740
|
+
});
|
|
61741
|
+
return destination;
|
|
61742
|
+
}
|
|
61743
|
+
function deepmerge(target, source, options) {
|
|
61744
|
+
options = options || {};
|
|
61745
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
61746
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
61747
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
61748
|
+
var sourceIsArray = Array.isArray(source);
|
|
61749
|
+
var targetIsArray = Array.isArray(target);
|
|
61750
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
61751
|
+
if (!sourceAndTargetTypesMatch) {
|
|
61752
|
+
return cloneUnlessOtherwiseSpecified(source, options);
|
|
61753
|
+
} else if (sourceIsArray) {
|
|
61754
|
+
return options.arrayMerge(target, source, options);
|
|
61755
|
+
} else {
|
|
61756
|
+
return mergeObject(target, source, options);
|
|
61757
|
+
}
|
|
61758
|
+
}
|
|
61759
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
61760
|
+
if (!Array.isArray(array)) {
|
|
61761
|
+
throw new Error("first argument should be an array");
|
|
61762
|
+
}
|
|
61763
|
+
return array.reduce(function(prev, next) {
|
|
61764
|
+
return deepmerge(prev, next, options);
|
|
61765
|
+
}, {});
|
|
61766
|
+
};
|
|
61767
|
+
var deepmerge_1 = deepmerge;
|
|
61768
|
+
module2.exports = deepmerge_1;
|
|
61769
|
+
}
|
|
61770
|
+
});
|
|
61771
|
+
|
|
61772
61772
|
// src/vite/index.ts
|
|
61773
61773
|
var vite_exports = {};
|
|
61774
61774
|
__export(vite_exports, {
|
|
@@ -65379,9 +65379,6 @@ var houdini_mode = {
|
|
|
65379
65379
|
}
|
|
65380
65380
|
};
|
|
65381
65381
|
|
|
65382
|
-
// src/lib/deepMerge.ts
|
|
65383
|
-
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
65384
|
-
|
|
65385
65382
|
// src/lib/error.ts
|
|
65386
65383
|
var HoudiniError = class extends Error {
|
|
65387
65384
|
filepath = null;
|
|
@@ -65401,20 +65398,6 @@ var HoudiniError = class extends Error {
|
|
|
65401
65398
|
}
|
|
65402
65399
|
};
|
|
65403
65400
|
|
|
65404
|
-
// src/lib/deepMerge.ts
|
|
65405
|
-
function deepMerge(filepath, ...targets) {
|
|
65406
|
-
try {
|
|
65407
|
-
if (targets.length === 1) {
|
|
65408
|
-
return targets[0];
|
|
65409
|
-
} else if (targets.length === 2) {
|
|
65410
|
-
return (0, import_deepmerge.default)(targets[0], targets[1]);
|
|
65411
|
-
}
|
|
65412
|
-
return deepMerge(filepath, targets[0], deepMerge(filepath, ...targets.slice(1)));
|
|
65413
|
-
} catch (e2) {
|
|
65414
|
-
throw new HoudiniError({ filepath, message: "could not merge: " + targets });
|
|
65415
|
-
}
|
|
65416
|
-
}
|
|
65417
|
-
|
|
65418
65401
|
// src/lib/fs.ts
|
|
65419
65402
|
var fs_exports = {};
|
|
65420
65403
|
__export(fs_exports, {
|
|
@@ -69485,11 +69468,12 @@ async function getConfig({
|
|
|
69485
69468
|
for (const plugin2 of plugins) {
|
|
69486
69469
|
if (plugin2.config) {
|
|
69487
69470
|
try {
|
|
69488
|
-
const configFactory = await import(plugin2.config);
|
|
69489
|
-
|
|
69490
|
-
|
|
69471
|
+
const configFactory = (await import(plugin2.config)).default;
|
|
69472
|
+
if (configFactory) {
|
|
69473
|
+
configFile = typeof configFactory === "function" ? configFactory(configFile) : configFactory;
|
|
69474
|
+
}
|
|
69491
69475
|
} catch {
|
|
69492
|
-
console.log("could not load config file" + plugin2.config);
|
|
69476
|
+
console.log("could not load config file " + plugin2.config);
|
|
69493
69477
|
}
|
|
69494
69478
|
}
|
|
69495
69479
|
}
|
|
@@ -69872,6 +69856,21 @@ async function cleanupFiles(pathFolder, listOfObj) {
|
|
|
69872
69856
|
return allFilesNotInList;
|
|
69873
69857
|
}
|
|
69874
69858
|
|
|
69859
|
+
// src/lib/deepMerge.ts
|
|
69860
|
+
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
69861
|
+
function deepMerge(filepath, ...targets) {
|
|
69862
|
+
try {
|
|
69863
|
+
if (targets.length === 1) {
|
|
69864
|
+
return targets[0];
|
|
69865
|
+
} else if (targets.length === 2) {
|
|
69866
|
+
return (0, import_deepmerge.default)(targets[0], targets[1]);
|
|
69867
|
+
}
|
|
69868
|
+
return deepMerge(filepath, targets[0], deepMerge(filepath, ...targets.slice(1)));
|
|
69869
|
+
} catch (e2) {
|
|
69870
|
+
throw new HoudiniError({ filepath, message: "could not merge: " + targets });
|
|
69871
|
+
}
|
|
69872
|
+
}
|
|
69873
|
+
|
|
69875
69874
|
// ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
|
|
69876
69875
|
var WalkerBase = class {
|
|
69877
69876
|
constructor() {
|
package/build/vite-esm/index.js
CHANGED
|
@@ -18862,109 +18862,6 @@ var require_graphql2 = __commonJS({
|
|
|
18862
18862
|
}
|
|
18863
18863
|
});
|
|
18864
18864
|
|
|
18865
|
-
// ../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js
|
|
18866
|
-
var require_cjs = __commonJS({
|
|
18867
|
-
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module) {
|
|
18868
|
-
"use strict";
|
|
18869
|
-
var isMergeableObject = function isMergeableObject2(value) {
|
|
18870
|
-
return isNonNullObject(value) && !isSpecial(value);
|
|
18871
|
-
};
|
|
18872
|
-
function isNonNullObject(value) {
|
|
18873
|
-
return !!value && typeof value === "object";
|
|
18874
|
-
}
|
|
18875
|
-
function isSpecial(value) {
|
|
18876
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
18877
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
18878
|
-
}
|
|
18879
|
-
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
18880
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
18881
|
-
function isReactElement(value) {
|
|
18882
|
-
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
18883
|
-
}
|
|
18884
|
-
function emptyTarget(val) {
|
|
18885
|
-
return Array.isArray(val) ? [] : {};
|
|
18886
|
-
}
|
|
18887
|
-
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
18888
|
-
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
18889
|
-
}
|
|
18890
|
-
function defaultArrayMerge(target, source, options) {
|
|
18891
|
-
return target.concat(source).map(function(element) {
|
|
18892
|
-
return cloneUnlessOtherwiseSpecified(element, options);
|
|
18893
|
-
});
|
|
18894
|
-
}
|
|
18895
|
-
function getMergeFunction(key, options) {
|
|
18896
|
-
if (!options.customMerge) {
|
|
18897
|
-
return deepmerge;
|
|
18898
|
-
}
|
|
18899
|
-
var customMerge = options.customMerge(key);
|
|
18900
|
-
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
18901
|
-
}
|
|
18902
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
18903
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
18904
|
-
return target.propertyIsEnumerable(symbol);
|
|
18905
|
-
}) : [];
|
|
18906
|
-
}
|
|
18907
|
-
function getKeys(target) {
|
|
18908
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
18909
|
-
}
|
|
18910
|
-
function propertyIsOnObject(object, property) {
|
|
18911
|
-
try {
|
|
18912
|
-
return property in object;
|
|
18913
|
-
} catch (_) {
|
|
18914
|
-
return false;
|
|
18915
|
-
}
|
|
18916
|
-
}
|
|
18917
|
-
function propertyIsUnsafe(target, key) {
|
|
18918
|
-
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
18919
|
-
}
|
|
18920
|
-
function mergeObject(target, source, options) {
|
|
18921
|
-
var destination = {};
|
|
18922
|
-
if (options.isMergeableObject(target)) {
|
|
18923
|
-
getKeys(target).forEach(function(key) {
|
|
18924
|
-
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
18925
|
-
});
|
|
18926
|
-
}
|
|
18927
|
-
getKeys(source).forEach(function(key) {
|
|
18928
|
-
if (propertyIsUnsafe(target, key)) {
|
|
18929
|
-
return;
|
|
18930
|
-
}
|
|
18931
|
-
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
18932
|
-
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
18933
|
-
} else {
|
|
18934
|
-
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
18935
|
-
}
|
|
18936
|
-
});
|
|
18937
|
-
return destination;
|
|
18938
|
-
}
|
|
18939
|
-
function deepmerge(target, source, options) {
|
|
18940
|
-
options = options || {};
|
|
18941
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
18942
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
18943
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
18944
|
-
var sourceIsArray = Array.isArray(source);
|
|
18945
|
-
var targetIsArray = Array.isArray(target);
|
|
18946
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
18947
|
-
if (!sourceAndTargetTypesMatch) {
|
|
18948
|
-
return cloneUnlessOtherwiseSpecified(source, options);
|
|
18949
|
-
} else if (sourceIsArray) {
|
|
18950
|
-
return options.arrayMerge(target, source, options);
|
|
18951
|
-
} else {
|
|
18952
|
-
return mergeObject(target, source, options);
|
|
18953
|
-
}
|
|
18954
|
-
}
|
|
18955
|
-
deepmerge.all = function deepmergeAll(array, options) {
|
|
18956
|
-
if (!Array.isArray(array)) {
|
|
18957
|
-
throw new Error("first argument should be an array");
|
|
18958
|
-
}
|
|
18959
|
-
return array.reduce(function(prev, next) {
|
|
18960
|
-
return deepmerge(prev, next, options);
|
|
18961
|
-
}, {});
|
|
18962
|
-
};
|
|
18963
|
-
var deepmerge_1 = deepmerge;
|
|
18964
|
-
module.exports = deepmerge_1;
|
|
18965
|
-
}
|
|
18966
|
-
});
|
|
18967
|
-
|
|
18968
18865
|
// ../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
|
18969
18866
|
var require_universalify = __commonJS({
|
|
18970
18867
|
"../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
|
@@ -61774,6 +61671,109 @@ var require_main2 = __commonJS({
|
|
|
61774
61671
|
}
|
|
61775
61672
|
});
|
|
61776
61673
|
|
|
61674
|
+
// ../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js
|
|
61675
|
+
var require_cjs = __commonJS({
|
|
61676
|
+
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module) {
|
|
61677
|
+
"use strict";
|
|
61678
|
+
var isMergeableObject = function isMergeableObject2(value) {
|
|
61679
|
+
return isNonNullObject(value) && !isSpecial(value);
|
|
61680
|
+
};
|
|
61681
|
+
function isNonNullObject(value) {
|
|
61682
|
+
return !!value && typeof value === "object";
|
|
61683
|
+
}
|
|
61684
|
+
function isSpecial(value) {
|
|
61685
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
61686
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
61687
|
+
}
|
|
61688
|
+
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
61689
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
61690
|
+
function isReactElement(value) {
|
|
61691
|
+
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
61692
|
+
}
|
|
61693
|
+
function emptyTarget(val) {
|
|
61694
|
+
return Array.isArray(val) ? [] : {};
|
|
61695
|
+
}
|
|
61696
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
61697
|
+
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
61698
|
+
}
|
|
61699
|
+
function defaultArrayMerge(target, source, options) {
|
|
61700
|
+
return target.concat(source).map(function(element) {
|
|
61701
|
+
return cloneUnlessOtherwiseSpecified(element, options);
|
|
61702
|
+
});
|
|
61703
|
+
}
|
|
61704
|
+
function getMergeFunction(key, options) {
|
|
61705
|
+
if (!options.customMerge) {
|
|
61706
|
+
return deepmerge;
|
|
61707
|
+
}
|
|
61708
|
+
var customMerge = options.customMerge(key);
|
|
61709
|
+
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
61710
|
+
}
|
|
61711
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
61712
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
61713
|
+
return target.propertyIsEnumerable(symbol);
|
|
61714
|
+
}) : [];
|
|
61715
|
+
}
|
|
61716
|
+
function getKeys(target) {
|
|
61717
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
61718
|
+
}
|
|
61719
|
+
function propertyIsOnObject(object, property) {
|
|
61720
|
+
try {
|
|
61721
|
+
return property in object;
|
|
61722
|
+
} catch (_) {
|
|
61723
|
+
return false;
|
|
61724
|
+
}
|
|
61725
|
+
}
|
|
61726
|
+
function propertyIsUnsafe(target, key) {
|
|
61727
|
+
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
61728
|
+
}
|
|
61729
|
+
function mergeObject(target, source, options) {
|
|
61730
|
+
var destination = {};
|
|
61731
|
+
if (options.isMergeableObject(target)) {
|
|
61732
|
+
getKeys(target).forEach(function(key) {
|
|
61733
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
61734
|
+
});
|
|
61735
|
+
}
|
|
61736
|
+
getKeys(source).forEach(function(key) {
|
|
61737
|
+
if (propertyIsUnsafe(target, key)) {
|
|
61738
|
+
return;
|
|
61739
|
+
}
|
|
61740
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
61741
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
61742
|
+
} else {
|
|
61743
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
61744
|
+
}
|
|
61745
|
+
});
|
|
61746
|
+
return destination;
|
|
61747
|
+
}
|
|
61748
|
+
function deepmerge(target, source, options) {
|
|
61749
|
+
options = options || {};
|
|
61750
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
61751
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
61752
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
61753
|
+
var sourceIsArray = Array.isArray(source);
|
|
61754
|
+
var targetIsArray = Array.isArray(target);
|
|
61755
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
61756
|
+
if (!sourceAndTargetTypesMatch) {
|
|
61757
|
+
return cloneUnlessOtherwiseSpecified(source, options);
|
|
61758
|
+
} else if (sourceIsArray) {
|
|
61759
|
+
return options.arrayMerge(target, source, options);
|
|
61760
|
+
} else {
|
|
61761
|
+
return mergeObject(target, source, options);
|
|
61762
|
+
}
|
|
61763
|
+
}
|
|
61764
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
61765
|
+
if (!Array.isArray(array)) {
|
|
61766
|
+
throw new Error("first argument should be an array");
|
|
61767
|
+
}
|
|
61768
|
+
return array.reduce(function(prev, next) {
|
|
61769
|
+
return deepmerge(prev, next, options);
|
|
61770
|
+
}, {});
|
|
61771
|
+
};
|
|
61772
|
+
var deepmerge_1 = deepmerge;
|
|
61773
|
+
module.exports = deepmerge_1;
|
|
61774
|
+
}
|
|
61775
|
+
});
|
|
61776
|
+
|
|
61777
61777
|
// src/vite/index.ts
|
|
61778
61778
|
var import_minimatch2 = __toESM(require_minimatch(), 1);
|
|
61779
61779
|
|
|
@@ -65374,9 +65374,6 @@ var houdini_mode = {
|
|
|
65374
65374
|
}
|
|
65375
65375
|
};
|
|
65376
65376
|
|
|
65377
|
-
// src/lib/deepMerge.ts
|
|
65378
|
-
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
65379
|
-
|
|
65380
65377
|
// src/lib/error.ts
|
|
65381
65378
|
var HoudiniError = class extends Error {
|
|
65382
65379
|
filepath = null;
|
|
@@ -65396,20 +65393,6 @@ var HoudiniError = class extends Error {
|
|
|
65396
65393
|
}
|
|
65397
65394
|
};
|
|
65398
65395
|
|
|
65399
|
-
// src/lib/deepMerge.ts
|
|
65400
|
-
function deepMerge(filepath, ...targets) {
|
|
65401
|
-
try {
|
|
65402
|
-
if (targets.length === 1) {
|
|
65403
|
-
return targets[0];
|
|
65404
|
-
} else if (targets.length === 2) {
|
|
65405
|
-
return (0, import_deepmerge.default)(targets[0], targets[1]);
|
|
65406
|
-
}
|
|
65407
|
-
return deepMerge(filepath, targets[0], deepMerge(filepath, ...targets.slice(1)));
|
|
65408
|
-
} catch (e2) {
|
|
65409
|
-
throw new HoudiniError({ filepath, message: "could not merge: " + targets });
|
|
65410
|
-
}
|
|
65411
|
-
}
|
|
65412
|
-
|
|
65413
65396
|
// src/lib/fs.ts
|
|
65414
65397
|
var fs_exports = {};
|
|
65415
65398
|
__export(fs_exports, {
|
|
@@ -69479,11 +69462,12 @@ async function getConfig({
|
|
|
69479
69462
|
for (const plugin2 of plugins) {
|
|
69480
69463
|
if (plugin2.config) {
|
|
69481
69464
|
try {
|
|
69482
|
-
const configFactory = await import(plugin2.config);
|
|
69483
|
-
|
|
69484
|
-
|
|
69465
|
+
const configFactory = (await import(plugin2.config)).default;
|
|
69466
|
+
if (configFactory) {
|
|
69467
|
+
configFile = typeof configFactory === "function" ? configFactory(configFile) : configFactory;
|
|
69468
|
+
}
|
|
69485
69469
|
} catch {
|
|
69486
|
-
console.log("could not load config file" + plugin2.config);
|
|
69470
|
+
console.log("could not load config file " + plugin2.config);
|
|
69487
69471
|
}
|
|
69488
69472
|
}
|
|
69489
69473
|
}
|
|
@@ -69866,6 +69850,21 @@ async function cleanupFiles(pathFolder, listOfObj) {
|
|
|
69866
69850
|
return allFilesNotInList;
|
|
69867
69851
|
}
|
|
69868
69852
|
|
|
69853
|
+
// src/lib/deepMerge.ts
|
|
69854
|
+
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
69855
|
+
function deepMerge(filepath, ...targets) {
|
|
69856
|
+
try {
|
|
69857
|
+
if (targets.length === 1) {
|
|
69858
|
+
return targets[0];
|
|
69859
|
+
} else if (targets.length === 2) {
|
|
69860
|
+
return (0, import_deepmerge.default)(targets[0], targets[1]);
|
|
69861
|
+
}
|
|
69862
|
+
return deepMerge(filepath, targets[0], deepMerge(filepath, ...targets.slice(1)));
|
|
69863
|
+
} catch (e2) {
|
|
69864
|
+
throw new HoudiniError({ filepath, message: "could not merge: " + targets });
|
|
69865
|
+
}
|
|
69866
|
+
}
|
|
69867
|
+
|
|
69869
69868
|
// ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
|
|
69870
69869
|
var WalkerBase = class {
|
|
69871
69870
|
constructor() {
|