houdini 1.0.3 → 1.0.5
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 +126 -129
- package/build/cmd-esm/index.js +126 -129
- package/build/codegen-cjs/index.js +119 -123
- package/build/codegen-esm/index.js +119 -123
- package/build/lib-cjs/index.js +132 -131
- package/build/lib-esm/index.js +132 -131
- package/build/runtime/client/documentStore.d.ts +1 -0
- package/build/runtime-cjs/cache/cache.js +1 -3
- 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/cache.js +1 -1
- package/build/runtime-cjs/client/plugins/subscription.js +1 -0
- package/build/runtime-esm/cache/cache.js +1 -3
- 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/cache.js +1 -1
- package/build/runtime-esm/client/plugins/subscription.js +1 -0
- package/build/test-cjs/index.js +119 -123
- package/build/test-esm/index.js +119 -123
- package/build/vite-cjs/index.js +124 -127
- package/build/vite-esm/index.js +124 -127
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -17225,109 +17225,6 @@ var require_minimatch = __commonJS({
|
|
|
17225
17225
|
}
|
|
17226
17226
|
});
|
|
17227
17227
|
|
|
17228
|
-
// ../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js
|
|
17229
|
-
var require_cjs = __commonJS({
|
|
17230
|
-
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module2) {
|
|
17231
|
-
"use strict";
|
|
17232
|
-
var isMergeableObject = function isMergeableObject2(value) {
|
|
17233
|
-
return isNonNullObject(value) && !isSpecial(value);
|
|
17234
|
-
};
|
|
17235
|
-
function isNonNullObject(value) {
|
|
17236
|
-
return !!value && typeof value === "object";
|
|
17237
|
-
}
|
|
17238
|
-
function isSpecial(value) {
|
|
17239
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
17240
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
17241
|
-
}
|
|
17242
|
-
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
17243
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
17244
|
-
function isReactElement(value) {
|
|
17245
|
-
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
17246
|
-
}
|
|
17247
|
-
function emptyTarget(val) {
|
|
17248
|
-
return Array.isArray(val) ? [] : {};
|
|
17249
|
-
}
|
|
17250
|
-
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
17251
|
-
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
17252
|
-
}
|
|
17253
|
-
function defaultArrayMerge(target, source, options) {
|
|
17254
|
-
return target.concat(source).map(function(element) {
|
|
17255
|
-
return cloneUnlessOtherwiseSpecified(element, options);
|
|
17256
|
-
});
|
|
17257
|
-
}
|
|
17258
|
-
function getMergeFunction(key, options) {
|
|
17259
|
-
if (!options.customMerge) {
|
|
17260
|
-
return deepmerge;
|
|
17261
|
-
}
|
|
17262
|
-
var customMerge = options.customMerge(key);
|
|
17263
|
-
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
17264
|
-
}
|
|
17265
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
17266
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
17267
|
-
return target.propertyIsEnumerable(symbol);
|
|
17268
|
-
}) : [];
|
|
17269
|
-
}
|
|
17270
|
-
function getKeys(target) {
|
|
17271
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
17272
|
-
}
|
|
17273
|
-
function propertyIsOnObject(object, property) {
|
|
17274
|
-
try {
|
|
17275
|
-
return property in object;
|
|
17276
|
-
} catch (_) {
|
|
17277
|
-
return false;
|
|
17278
|
-
}
|
|
17279
|
-
}
|
|
17280
|
-
function propertyIsUnsafe(target, key) {
|
|
17281
|
-
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
17282
|
-
}
|
|
17283
|
-
function mergeObject(target, source, options) {
|
|
17284
|
-
var destination = {};
|
|
17285
|
-
if (options.isMergeableObject(target)) {
|
|
17286
|
-
getKeys(target).forEach(function(key) {
|
|
17287
|
-
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
17288
|
-
});
|
|
17289
|
-
}
|
|
17290
|
-
getKeys(source).forEach(function(key) {
|
|
17291
|
-
if (propertyIsUnsafe(target, key)) {
|
|
17292
|
-
return;
|
|
17293
|
-
}
|
|
17294
|
-
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
17295
|
-
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
17296
|
-
} else {
|
|
17297
|
-
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
17298
|
-
}
|
|
17299
|
-
});
|
|
17300
|
-
return destination;
|
|
17301
|
-
}
|
|
17302
|
-
function deepmerge(target, source, options) {
|
|
17303
|
-
options = options || {};
|
|
17304
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
17305
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
17306
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
17307
|
-
var sourceIsArray = Array.isArray(source);
|
|
17308
|
-
var targetIsArray = Array.isArray(target);
|
|
17309
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
17310
|
-
if (!sourceAndTargetTypesMatch) {
|
|
17311
|
-
return cloneUnlessOtherwiseSpecified(source, options);
|
|
17312
|
-
} else if (sourceIsArray) {
|
|
17313
|
-
return options.arrayMerge(target, source, options);
|
|
17314
|
-
} else {
|
|
17315
|
-
return mergeObject(target, source, options);
|
|
17316
|
-
}
|
|
17317
|
-
}
|
|
17318
|
-
deepmerge.all = function deepmergeAll(array, options) {
|
|
17319
|
-
if (!Array.isArray(array)) {
|
|
17320
|
-
throw new Error("first argument should be an array");
|
|
17321
|
-
}
|
|
17322
|
-
return array.reduce(function(prev, next) {
|
|
17323
|
-
return deepmerge(prev, next, options);
|
|
17324
|
-
}, {});
|
|
17325
|
-
};
|
|
17326
|
-
var deepmerge_1 = deepmerge;
|
|
17327
|
-
module2.exports = deepmerge_1;
|
|
17328
|
-
}
|
|
17329
|
-
});
|
|
17330
|
-
|
|
17331
17228
|
// ../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
|
17332
17229
|
var require_universalify = __commonJS({
|
|
17333
17230
|
"../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
|
@@ -60137,6 +60034,109 @@ var require_main2 = __commonJS({
|
|
|
60137
60034
|
}
|
|
60138
60035
|
});
|
|
60139
60036
|
|
|
60037
|
+
// ../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js
|
|
60038
|
+
var require_cjs = __commonJS({
|
|
60039
|
+
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module2) {
|
|
60040
|
+
"use strict";
|
|
60041
|
+
var isMergeableObject = function isMergeableObject2(value) {
|
|
60042
|
+
return isNonNullObject(value) && !isSpecial(value);
|
|
60043
|
+
};
|
|
60044
|
+
function isNonNullObject(value) {
|
|
60045
|
+
return !!value && typeof value === "object";
|
|
60046
|
+
}
|
|
60047
|
+
function isSpecial(value) {
|
|
60048
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
60049
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
60050
|
+
}
|
|
60051
|
+
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
60052
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
60053
|
+
function isReactElement(value) {
|
|
60054
|
+
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
60055
|
+
}
|
|
60056
|
+
function emptyTarget(val) {
|
|
60057
|
+
return Array.isArray(val) ? [] : {};
|
|
60058
|
+
}
|
|
60059
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
60060
|
+
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
60061
|
+
}
|
|
60062
|
+
function defaultArrayMerge(target, source, options) {
|
|
60063
|
+
return target.concat(source).map(function(element) {
|
|
60064
|
+
return cloneUnlessOtherwiseSpecified(element, options);
|
|
60065
|
+
});
|
|
60066
|
+
}
|
|
60067
|
+
function getMergeFunction(key, options) {
|
|
60068
|
+
if (!options.customMerge) {
|
|
60069
|
+
return deepmerge;
|
|
60070
|
+
}
|
|
60071
|
+
var customMerge = options.customMerge(key);
|
|
60072
|
+
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
60073
|
+
}
|
|
60074
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
60075
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
60076
|
+
return target.propertyIsEnumerable(symbol);
|
|
60077
|
+
}) : [];
|
|
60078
|
+
}
|
|
60079
|
+
function getKeys(target) {
|
|
60080
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
60081
|
+
}
|
|
60082
|
+
function propertyIsOnObject(object, property) {
|
|
60083
|
+
try {
|
|
60084
|
+
return property in object;
|
|
60085
|
+
} catch (_) {
|
|
60086
|
+
return false;
|
|
60087
|
+
}
|
|
60088
|
+
}
|
|
60089
|
+
function propertyIsUnsafe(target, key) {
|
|
60090
|
+
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
60091
|
+
}
|
|
60092
|
+
function mergeObject(target, source, options) {
|
|
60093
|
+
var destination = {};
|
|
60094
|
+
if (options.isMergeableObject(target)) {
|
|
60095
|
+
getKeys(target).forEach(function(key) {
|
|
60096
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
60097
|
+
});
|
|
60098
|
+
}
|
|
60099
|
+
getKeys(source).forEach(function(key) {
|
|
60100
|
+
if (propertyIsUnsafe(target, key)) {
|
|
60101
|
+
return;
|
|
60102
|
+
}
|
|
60103
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
60104
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
60105
|
+
} else {
|
|
60106
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
60107
|
+
}
|
|
60108
|
+
});
|
|
60109
|
+
return destination;
|
|
60110
|
+
}
|
|
60111
|
+
function deepmerge(target, source, options) {
|
|
60112
|
+
options = options || {};
|
|
60113
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
60114
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
60115
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
60116
|
+
var sourceIsArray = Array.isArray(source);
|
|
60117
|
+
var targetIsArray = Array.isArray(target);
|
|
60118
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
60119
|
+
if (!sourceAndTargetTypesMatch) {
|
|
60120
|
+
return cloneUnlessOtherwiseSpecified(source, options);
|
|
60121
|
+
} else if (sourceIsArray) {
|
|
60122
|
+
return options.arrayMerge(target, source, options);
|
|
60123
|
+
} else {
|
|
60124
|
+
return mergeObject(target, source, options);
|
|
60125
|
+
}
|
|
60126
|
+
}
|
|
60127
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
60128
|
+
if (!Array.isArray(array)) {
|
|
60129
|
+
throw new Error("first argument should be an array");
|
|
60130
|
+
}
|
|
60131
|
+
return array.reduce(function(prev, next) {
|
|
60132
|
+
return deepmerge(prev, next, options);
|
|
60133
|
+
}, {});
|
|
60134
|
+
};
|
|
60135
|
+
var deepmerge_1 = deepmerge;
|
|
60136
|
+
module2.exports = deepmerge_1;
|
|
60137
|
+
}
|
|
60138
|
+
});
|
|
60139
|
+
|
|
60140
60140
|
// ../../node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js
|
|
60141
60141
|
var require_kleur = __commonJS({
|
|
60142
60142
|
"../../node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js"(exports, module2) {
|
|
@@ -68514,9 +68514,6 @@ var houdini_mode = {
|
|
|
68514
68514
|
}
|
|
68515
68515
|
};
|
|
68516
68516
|
|
|
68517
|
-
// src/lib/deepMerge.ts
|
|
68518
|
-
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
68519
|
-
|
|
68520
68517
|
// src/lib/error.ts
|
|
68521
68518
|
var HoudiniError = class extends Error {
|
|
68522
68519
|
filepath = null;
|
|
@@ -68536,20 +68533,6 @@ var HoudiniError = class extends Error {
|
|
|
68536
68533
|
}
|
|
68537
68534
|
};
|
|
68538
68535
|
|
|
68539
|
-
// src/lib/deepMerge.ts
|
|
68540
|
-
function deepMerge(filepath, ...targets) {
|
|
68541
|
-
try {
|
|
68542
|
-
if (targets.length === 1) {
|
|
68543
|
-
return targets[0];
|
|
68544
|
-
} else if (targets.length === 2) {
|
|
68545
|
-
return (0, import_deepmerge.default)(targets[0], targets[1]);
|
|
68546
|
-
}
|
|
68547
|
-
return deepMerge(filepath, targets[0], deepMerge(filepath, ...targets.slice(1)));
|
|
68548
|
-
} catch (e2) {
|
|
68549
|
-
throw new HoudiniError({ filepath, message: "could not merge: " + targets });
|
|
68550
|
-
}
|
|
68551
|
-
}
|
|
68552
|
-
|
|
68553
68536
|
// src/lib/fs.ts
|
|
68554
68537
|
var fs_exports = {};
|
|
68555
68538
|
__export(fs_exports, {
|
|
@@ -71424,9 +71407,7 @@ var CacheInternal = class {
|
|
|
71424
71407
|
let targetSelection = getFieldsForType(selection2, data["__typename"]);
|
|
71425
71408
|
for (const [field, value] of Object.entries(data)) {
|
|
71426
71409
|
if (!selection2 || !targetSelection[field]) {
|
|
71427
|
-
|
|
71428
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
71429
|
-
);
|
|
71410
|
+
continue;
|
|
71430
71411
|
}
|
|
71431
71412
|
let {
|
|
71432
71413
|
type: linkedType,
|
|
@@ -72620,11 +72601,12 @@ async function getConfig({
|
|
|
72620
72601
|
for (const plugin2 of plugins) {
|
|
72621
72602
|
if (plugin2.config) {
|
|
72622
72603
|
try {
|
|
72623
|
-
const configFactory = await import(plugin2.config);
|
|
72624
|
-
|
|
72625
|
-
|
|
72604
|
+
const configFactory = (await import(plugin2.config)).default;
|
|
72605
|
+
if (configFactory) {
|
|
72606
|
+
configFile = typeof configFactory === "function" ? configFactory(configFile) : configFactory;
|
|
72607
|
+
}
|
|
72626
72608
|
} catch {
|
|
72627
|
-
console.log("could not load config file" + plugin2.config);
|
|
72609
|
+
console.log("could not load config file " + plugin2.config);
|
|
72628
72610
|
}
|
|
72629
72611
|
}
|
|
72630
72612
|
}
|
|
@@ -73011,6 +72993,21 @@ async function cleanupFiles(pathFolder, listOfObj) {
|
|
|
73011
72993
|
return allFilesNotInList;
|
|
73012
72994
|
}
|
|
73013
72995
|
|
|
72996
|
+
// src/lib/deepMerge.ts
|
|
72997
|
+
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
72998
|
+
function deepMerge(filepath, ...targets) {
|
|
72999
|
+
try {
|
|
73000
|
+
if (targets.length === 1) {
|
|
73001
|
+
return targets[0];
|
|
73002
|
+
} else if (targets.length === 2) {
|
|
73003
|
+
return (0, import_deepmerge.default)(targets[0], targets[1]);
|
|
73004
|
+
}
|
|
73005
|
+
return deepMerge(filepath, targets[0], deepMerge(filepath, ...targets.slice(1)));
|
|
73006
|
+
} catch (e2) {
|
|
73007
|
+
throw new HoudiniError({ filepath, message: "could not merge: " + targets });
|
|
73008
|
+
}
|
|
73009
|
+
}
|
|
73010
|
+
|
|
73014
73011
|
// ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
|
|
73015
73012
|
var WalkerBase = class {
|
|
73016
73013
|
constructor() {
|
|
@@ -78724,8 +78721,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
78724
78721
|
}
|
|
78725
78722
|
packageJSON.devDependencies = {
|
|
78726
78723
|
...packageJSON.devDependencies,
|
|
78727
|
-
houdini: "^1.0.
|
|
78728
|
-
"houdini-svelte": "^1.0.
|
|
78724
|
+
houdini: "^1.0.5",
|
|
78725
|
+
"houdini-svelte": "^1.0.5"
|
|
78729
78726
|
};
|
|
78730
78727
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
|
78731
78728
|
}
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -17231,109 +17231,6 @@ var require_minimatch = __commonJS({
|
|
|
17231
17231
|
}
|
|
17232
17232
|
});
|
|
17233
17233
|
|
|
17234
|
-
// ../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js
|
|
17235
|
-
var require_cjs = __commonJS({
|
|
17236
|
-
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module) {
|
|
17237
|
-
"use strict";
|
|
17238
|
-
var isMergeableObject = function isMergeableObject2(value) {
|
|
17239
|
-
return isNonNullObject(value) && !isSpecial(value);
|
|
17240
|
-
};
|
|
17241
|
-
function isNonNullObject(value) {
|
|
17242
|
-
return !!value && typeof value === "object";
|
|
17243
|
-
}
|
|
17244
|
-
function isSpecial(value) {
|
|
17245
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
17246
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
17247
|
-
}
|
|
17248
|
-
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
17249
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
17250
|
-
function isReactElement(value) {
|
|
17251
|
-
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
17252
|
-
}
|
|
17253
|
-
function emptyTarget(val) {
|
|
17254
|
-
return Array.isArray(val) ? [] : {};
|
|
17255
|
-
}
|
|
17256
|
-
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
17257
|
-
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
17258
|
-
}
|
|
17259
|
-
function defaultArrayMerge(target, source, options) {
|
|
17260
|
-
return target.concat(source).map(function(element) {
|
|
17261
|
-
return cloneUnlessOtherwiseSpecified(element, options);
|
|
17262
|
-
});
|
|
17263
|
-
}
|
|
17264
|
-
function getMergeFunction(key, options) {
|
|
17265
|
-
if (!options.customMerge) {
|
|
17266
|
-
return deepmerge;
|
|
17267
|
-
}
|
|
17268
|
-
var customMerge = options.customMerge(key);
|
|
17269
|
-
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
17270
|
-
}
|
|
17271
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
17272
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
17273
|
-
return target.propertyIsEnumerable(symbol);
|
|
17274
|
-
}) : [];
|
|
17275
|
-
}
|
|
17276
|
-
function getKeys(target) {
|
|
17277
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
17278
|
-
}
|
|
17279
|
-
function propertyIsOnObject(object, property) {
|
|
17280
|
-
try {
|
|
17281
|
-
return property in object;
|
|
17282
|
-
} catch (_) {
|
|
17283
|
-
return false;
|
|
17284
|
-
}
|
|
17285
|
-
}
|
|
17286
|
-
function propertyIsUnsafe(target, key) {
|
|
17287
|
-
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
17288
|
-
}
|
|
17289
|
-
function mergeObject(target, source, options) {
|
|
17290
|
-
var destination = {};
|
|
17291
|
-
if (options.isMergeableObject(target)) {
|
|
17292
|
-
getKeys(target).forEach(function(key) {
|
|
17293
|
-
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
17294
|
-
});
|
|
17295
|
-
}
|
|
17296
|
-
getKeys(source).forEach(function(key) {
|
|
17297
|
-
if (propertyIsUnsafe(target, key)) {
|
|
17298
|
-
return;
|
|
17299
|
-
}
|
|
17300
|
-
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
17301
|
-
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
17302
|
-
} else {
|
|
17303
|
-
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
17304
|
-
}
|
|
17305
|
-
});
|
|
17306
|
-
return destination;
|
|
17307
|
-
}
|
|
17308
|
-
function deepmerge(target, source, options) {
|
|
17309
|
-
options = options || {};
|
|
17310
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
17311
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
17312
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
17313
|
-
var sourceIsArray = Array.isArray(source);
|
|
17314
|
-
var targetIsArray = Array.isArray(target);
|
|
17315
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
17316
|
-
if (!sourceAndTargetTypesMatch) {
|
|
17317
|
-
return cloneUnlessOtherwiseSpecified(source, options);
|
|
17318
|
-
} else if (sourceIsArray) {
|
|
17319
|
-
return options.arrayMerge(target, source, options);
|
|
17320
|
-
} else {
|
|
17321
|
-
return mergeObject(target, source, options);
|
|
17322
|
-
}
|
|
17323
|
-
}
|
|
17324
|
-
deepmerge.all = function deepmergeAll(array, options) {
|
|
17325
|
-
if (!Array.isArray(array)) {
|
|
17326
|
-
throw new Error("first argument should be an array");
|
|
17327
|
-
}
|
|
17328
|
-
return array.reduce(function(prev, next) {
|
|
17329
|
-
return deepmerge(prev, next, options);
|
|
17330
|
-
}, {});
|
|
17331
|
-
};
|
|
17332
|
-
var deepmerge_1 = deepmerge;
|
|
17333
|
-
module.exports = deepmerge_1;
|
|
17334
|
-
}
|
|
17335
|
-
});
|
|
17336
|
-
|
|
17337
17234
|
// ../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
|
17338
17235
|
var require_universalify = __commonJS({
|
|
17339
17236
|
"../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
|
@@ -60143,6 +60040,109 @@ var require_main2 = __commonJS({
|
|
|
60143
60040
|
}
|
|
60144
60041
|
});
|
|
60145
60042
|
|
|
60043
|
+
// ../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js
|
|
60044
|
+
var require_cjs = __commonJS({
|
|
60045
|
+
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module) {
|
|
60046
|
+
"use strict";
|
|
60047
|
+
var isMergeableObject = function isMergeableObject2(value) {
|
|
60048
|
+
return isNonNullObject(value) && !isSpecial(value);
|
|
60049
|
+
};
|
|
60050
|
+
function isNonNullObject(value) {
|
|
60051
|
+
return !!value && typeof value === "object";
|
|
60052
|
+
}
|
|
60053
|
+
function isSpecial(value) {
|
|
60054
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
60055
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
60056
|
+
}
|
|
60057
|
+
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
60058
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
60059
|
+
function isReactElement(value) {
|
|
60060
|
+
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
60061
|
+
}
|
|
60062
|
+
function emptyTarget(val) {
|
|
60063
|
+
return Array.isArray(val) ? [] : {};
|
|
60064
|
+
}
|
|
60065
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
60066
|
+
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
60067
|
+
}
|
|
60068
|
+
function defaultArrayMerge(target, source, options) {
|
|
60069
|
+
return target.concat(source).map(function(element) {
|
|
60070
|
+
return cloneUnlessOtherwiseSpecified(element, options);
|
|
60071
|
+
});
|
|
60072
|
+
}
|
|
60073
|
+
function getMergeFunction(key, options) {
|
|
60074
|
+
if (!options.customMerge) {
|
|
60075
|
+
return deepmerge;
|
|
60076
|
+
}
|
|
60077
|
+
var customMerge = options.customMerge(key);
|
|
60078
|
+
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
60079
|
+
}
|
|
60080
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
60081
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
60082
|
+
return target.propertyIsEnumerable(symbol);
|
|
60083
|
+
}) : [];
|
|
60084
|
+
}
|
|
60085
|
+
function getKeys(target) {
|
|
60086
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
60087
|
+
}
|
|
60088
|
+
function propertyIsOnObject(object, property) {
|
|
60089
|
+
try {
|
|
60090
|
+
return property in object;
|
|
60091
|
+
} catch (_) {
|
|
60092
|
+
return false;
|
|
60093
|
+
}
|
|
60094
|
+
}
|
|
60095
|
+
function propertyIsUnsafe(target, key) {
|
|
60096
|
+
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
60097
|
+
}
|
|
60098
|
+
function mergeObject(target, source, options) {
|
|
60099
|
+
var destination = {};
|
|
60100
|
+
if (options.isMergeableObject(target)) {
|
|
60101
|
+
getKeys(target).forEach(function(key) {
|
|
60102
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
60103
|
+
});
|
|
60104
|
+
}
|
|
60105
|
+
getKeys(source).forEach(function(key) {
|
|
60106
|
+
if (propertyIsUnsafe(target, key)) {
|
|
60107
|
+
return;
|
|
60108
|
+
}
|
|
60109
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
60110
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
60111
|
+
} else {
|
|
60112
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
60113
|
+
}
|
|
60114
|
+
});
|
|
60115
|
+
return destination;
|
|
60116
|
+
}
|
|
60117
|
+
function deepmerge(target, source, options) {
|
|
60118
|
+
options = options || {};
|
|
60119
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
60120
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
60121
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
60122
|
+
var sourceIsArray = Array.isArray(source);
|
|
60123
|
+
var targetIsArray = Array.isArray(target);
|
|
60124
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
60125
|
+
if (!sourceAndTargetTypesMatch) {
|
|
60126
|
+
return cloneUnlessOtherwiseSpecified(source, options);
|
|
60127
|
+
} else if (sourceIsArray) {
|
|
60128
|
+
return options.arrayMerge(target, source, options);
|
|
60129
|
+
} else {
|
|
60130
|
+
return mergeObject(target, source, options);
|
|
60131
|
+
}
|
|
60132
|
+
}
|
|
60133
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
60134
|
+
if (!Array.isArray(array)) {
|
|
60135
|
+
throw new Error("first argument should be an array");
|
|
60136
|
+
}
|
|
60137
|
+
return array.reduce(function(prev, next) {
|
|
60138
|
+
return deepmerge(prev, next, options);
|
|
60139
|
+
}, {});
|
|
60140
|
+
};
|
|
60141
|
+
var deepmerge_1 = deepmerge;
|
|
60142
|
+
module.exports = deepmerge_1;
|
|
60143
|
+
}
|
|
60144
|
+
});
|
|
60145
|
+
|
|
60146
60146
|
// ../../node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js
|
|
60147
60147
|
var require_kleur = __commonJS({
|
|
60148
60148
|
"../../node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.js"(exports, module) {
|
|
@@ -68520,9 +68520,6 @@ var houdini_mode = {
|
|
|
68520
68520
|
}
|
|
68521
68521
|
};
|
|
68522
68522
|
|
|
68523
|
-
// src/lib/deepMerge.ts
|
|
68524
|
-
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
68525
|
-
|
|
68526
68523
|
// src/lib/error.ts
|
|
68527
68524
|
var HoudiniError = class extends Error {
|
|
68528
68525
|
filepath = null;
|
|
@@ -68542,20 +68539,6 @@ var HoudiniError = class extends Error {
|
|
|
68542
68539
|
}
|
|
68543
68540
|
};
|
|
68544
68541
|
|
|
68545
|
-
// src/lib/deepMerge.ts
|
|
68546
|
-
function deepMerge(filepath, ...targets) {
|
|
68547
|
-
try {
|
|
68548
|
-
if (targets.length === 1) {
|
|
68549
|
-
return targets[0];
|
|
68550
|
-
} else if (targets.length === 2) {
|
|
68551
|
-
return (0, import_deepmerge.default)(targets[0], targets[1]);
|
|
68552
|
-
}
|
|
68553
|
-
return deepMerge(filepath, targets[0], deepMerge(filepath, ...targets.slice(1)));
|
|
68554
|
-
} catch (e2) {
|
|
68555
|
-
throw new HoudiniError({ filepath, message: "could not merge: " + targets });
|
|
68556
|
-
}
|
|
68557
|
-
}
|
|
68558
|
-
|
|
68559
68542
|
// src/lib/fs.ts
|
|
68560
68543
|
var fs_exports = {};
|
|
68561
68544
|
__export(fs_exports, {
|
|
@@ -71430,9 +71413,7 @@ var CacheInternal = class {
|
|
|
71430
71413
|
let targetSelection = getFieldsForType(selection2, data["__typename"]);
|
|
71431
71414
|
for (const [field, value] of Object.entries(data)) {
|
|
71432
71415
|
if (!selection2 || !targetSelection[field]) {
|
|
71433
|
-
|
|
71434
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
71435
|
-
);
|
|
71416
|
+
continue;
|
|
71436
71417
|
}
|
|
71437
71418
|
let {
|
|
71438
71419
|
type: linkedType,
|
|
@@ -72625,11 +72606,12 @@ async function getConfig({
|
|
|
72625
72606
|
for (const plugin2 of plugins) {
|
|
72626
72607
|
if (plugin2.config) {
|
|
72627
72608
|
try {
|
|
72628
|
-
const configFactory = await import(plugin2.config);
|
|
72629
|
-
|
|
72630
|
-
|
|
72609
|
+
const configFactory = (await import(plugin2.config)).default;
|
|
72610
|
+
if (configFactory) {
|
|
72611
|
+
configFile = typeof configFactory === "function" ? configFactory(configFile) : configFactory;
|
|
72612
|
+
}
|
|
72631
72613
|
} catch {
|
|
72632
|
-
console.log("could not load config file" + plugin2.config);
|
|
72614
|
+
console.log("could not load config file " + plugin2.config);
|
|
72633
72615
|
}
|
|
72634
72616
|
}
|
|
72635
72617
|
}
|
|
@@ -73016,6 +72998,21 @@ async function cleanupFiles(pathFolder, listOfObj) {
|
|
|
73016
72998
|
return allFilesNotInList;
|
|
73017
72999
|
}
|
|
73018
73000
|
|
|
73001
|
+
// src/lib/deepMerge.ts
|
|
73002
|
+
var import_deepmerge = __toESM(require_cjs(), 1);
|
|
73003
|
+
function deepMerge(filepath, ...targets) {
|
|
73004
|
+
try {
|
|
73005
|
+
if (targets.length === 1) {
|
|
73006
|
+
return targets[0];
|
|
73007
|
+
} else if (targets.length === 2) {
|
|
73008
|
+
return (0, import_deepmerge.default)(targets[0], targets[1]);
|
|
73009
|
+
}
|
|
73010
|
+
return deepMerge(filepath, targets[0], deepMerge(filepath, ...targets.slice(1)));
|
|
73011
|
+
} catch (e2) {
|
|
73012
|
+
throw new HoudiniError({ filepath, message: "could not merge: " + targets });
|
|
73013
|
+
}
|
|
73014
|
+
}
|
|
73015
|
+
|
|
73019
73016
|
// ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
|
|
73020
73017
|
var WalkerBase = class {
|
|
73021
73018
|
constructor() {
|
|
@@ -78729,8 +78726,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
78729
78726
|
}
|
|
78730
78727
|
packageJSON.devDependencies = {
|
|
78731
78728
|
...packageJSON.devDependencies,
|
|
78732
|
-
houdini: "^1.0.
|
|
78733
|
-
"houdini-svelte": "^1.0.
|
|
78729
|
+
houdini: "^1.0.5",
|
|
78730
|
+
"houdini-svelte": "^1.0.5"
|
|
78734
78731
|
};
|
|
78735
78732
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
|
78736
78733
|
}
|