houdini-svelte 1.1.3 → 1.2.0-react.1
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/plugin-cjs/index.js +261 -225
- package/build/plugin-esm/index.js +261 -225
- package/build/preprocess-cjs/index.js +272 -225
- package/build/preprocess-esm/index.js +272 -225
- package/build/runtime/stores/index.d.ts +1 -1
- package/build/runtime/stores/pagination/fragment.d.ts +4 -7
- package/build/runtime/stores/pagination/query.d.ts +3 -4
- package/build/runtime/stores/query.d.ts +2 -54
- package/build/runtime/types.d.ts +40 -28
- package/build/runtime-cjs/stores/index.d.ts +1 -1
- package/build/runtime-cjs/stores/pagination/fragment.d.ts +4 -7
- package/build/runtime-cjs/stores/pagination/fragment.js +6 -9
- package/build/runtime-cjs/stores/pagination/query.d.ts +3 -4
- package/build/runtime-cjs/stores/pagination/query.js +10 -9
- package/build/runtime-cjs/stores/query.d.ts +2 -54
- package/build/runtime-cjs/types.d.ts +40 -28
- package/build/runtime-esm/stores/index.d.ts +1 -1
- package/build/runtime-esm/stores/pagination/fragment.d.ts +4 -7
- package/build/runtime-esm/stores/pagination/fragment.js +4 -7
- package/build/runtime-esm/stores/pagination/query.d.ts +3 -4
- package/build/runtime-esm/stores/pagination/query.js +5 -4
- package/build/runtime-esm/stores/query.d.ts +2 -54
- package/build/runtime-esm/types.d.ts +40 -28
- package/build/test-cjs/index.js +601 -491
- package/build/test-esm/index.js +601 -491
- package/package.json +2 -2
- package/build/runtime/stores/pagination/cursor.d.ts +0 -13
- package/build/runtime/stores/pagination/fetch.d.ts +0 -3
- package/build/runtime/stores/pagination/offset.d.ts +0 -20
- package/build/runtime/stores/pagination/pageInfo.d.ts +0 -13
- package/build/runtime-cjs/stores/pagination/cursor.d.ts +0 -13
- package/build/runtime-cjs/stores/pagination/cursor.js +0 -191
- package/build/runtime-cjs/stores/pagination/fetch.d.ts +0 -3
- package/build/runtime-cjs/stores/pagination/fetch.js +0 -16
- package/build/runtime-cjs/stores/pagination/offset.d.ts +0 -20
- package/build/runtime-cjs/stores/pagination/offset.js +0 -89
- package/build/runtime-cjs/stores/pagination/pageInfo.d.ts +0 -13
- package/build/runtime-cjs/stores/pagination/pageInfo.js +0 -79
- package/build/runtime-esm/stores/pagination/cursor.d.ts +0 -13
- package/build/runtime-esm/stores/pagination/cursor.js +0 -167
- package/build/runtime-esm/stores/pagination/fetch.d.ts +0 -3
- package/build/runtime-esm/stores/pagination/fetch.js +0 -0
- package/build/runtime-esm/stores/pagination/offset.d.ts +0 -20
- package/build/runtime-esm/stores/pagination/offset.js +0 -65
- package/build/runtime-esm/stores/pagination/pageInfo.d.ts +0 -13
- package/build/runtime-esm/stores/pagination/pageInfo.js +0 -52
|
@@ -33419,7 +33419,7 @@ var require_visitor = __commonJS2({
|
|
|
33419
33419
|
Object.defineProperty(exports, "__esModule", {
|
|
33420
33420
|
value: true
|
|
33421
33421
|
});
|
|
33422
|
-
exports.visit =
|
|
33422
|
+
exports.visit = visit3;
|
|
33423
33423
|
exports.visitInParallel = visitInParallel;
|
|
33424
33424
|
exports.getVisitFn = getVisitFn;
|
|
33425
33425
|
exports.BREAK = exports.QueryDocumentKeys = void 0;
|
|
@@ -33482,7 +33482,7 @@ var require_visitor = __commonJS2({
|
|
|
33482
33482
|
exports.QueryDocumentKeys = QueryDocumentKeys;
|
|
33483
33483
|
var BREAK = Object.freeze({});
|
|
33484
33484
|
exports.BREAK = BREAK;
|
|
33485
|
-
function
|
|
33485
|
+
function visit3(root, visitor) {
|
|
33486
33486
|
var visitorKeys = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : QueryDocumentKeys;
|
|
33487
33487
|
var stack = void 0;
|
|
33488
33488
|
var inArray = Array.isArray(root);
|
|
@@ -72708,6 +72708,107 @@ var require_lib3 = __commonJS2({
|
|
|
72708
72708
|
exports.tokTypes = tokTypes;
|
|
72709
72709
|
}
|
|
72710
72710
|
});
|
|
72711
|
+
var require_cjs = __commonJS2({
|
|
72712
|
+
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module) {
|
|
72713
|
+
"use strict";
|
|
72714
|
+
var isMergeableObject = function isMergeableObject2(value2) {
|
|
72715
|
+
return isNonNullObject(value2) && !isSpecial(value2);
|
|
72716
|
+
};
|
|
72717
|
+
function isNonNullObject(value2) {
|
|
72718
|
+
return !!value2 && typeof value2 === "object";
|
|
72719
|
+
}
|
|
72720
|
+
function isSpecial(value2) {
|
|
72721
|
+
var stringValue = Object.prototype.toString.call(value2);
|
|
72722
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value2);
|
|
72723
|
+
}
|
|
72724
|
+
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
72725
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
72726
|
+
function isReactElement(value2) {
|
|
72727
|
+
return value2.$$typeof === REACT_ELEMENT_TYPE;
|
|
72728
|
+
}
|
|
72729
|
+
function emptyTarget(val) {
|
|
72730
|
+
return Array.isArray(val) ? [] : {};
|
|
72731
|
+
}
|
|
72732
|
+
function cloneUnlessOtherwiseSpecified(value2, options) {
|
|
72733
|
+
return options.clone !== false && options.isMergeableObject(value2) ? deepmerge(emptyTarget(value2), value2, options) : value2;
|
|
72734
|
+
}
|
|
72735
|
+
function defaultArrayMerge(target, source, options) {
|
|
72736
|
+
return target.concat(source).map(function(element) {
|
|
72737
|
+
return cloneUnlessOtherwiseSpecified(element, options);
|
|
72738
|
+
});
|
|
72739
|
+
}
|
|
72740
|
+
function getMergeFunction(key, options) {
|
|
72741
|
+
if (!options.customMerge) {
|
|
72742
|
+
return deepmerge;
|
|
72743
|
+
}
|
|
72744
|
+
var customMerge = options.customMerge(key);
|
|
72745
|
+
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
72746
|
+
}
|
|
72747
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
72748
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
72749
|
+
return target.propertyIsEnumerable(symbol);
|
|
72750
|
+
}) : [];
|
|
72751
|
+
}
|
|
72752
|
+
function getKeys(target) {
|
|
72753
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
72754
|
+
}
|
|
72755
|
+
function propertyIsOnObject(object, property) {
|
|
72756
|
+
try {
|
|
72757
|
+
return property in object;
|
|
72758
|
+
} catch (_) {
|
|
72759
|
+
return false;
|
|
72760
|
+
}
|
|
72761
|
+
}
|
|
72762
|
+
function propertyIsUnsafe(target, key) {
|
|
72763
|
+
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
72764
|
+
}
|
|
72765
|
+
function mergeObject(target, source, options) {
|
|
72766
|
+
var destination = {};
|
|
72767
|
+
if (options.isMergeableObject(target)) {
|
|
72768
|
+
getKeys(target).forEach(function(key) {
|
|
72769
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
72770
|
+
});
|
|
72771
|
+
}
|
|
72772
|
+
getKeys(source).forEach(function(key) {
|
|
72773
|
+
if (propertyIsUnsafe(target, key)) {
|
|
72774
|
+
return;
|
|
72775
|
+
}
|
|
72776
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
72777
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
72778
|
+
} else {
|
|
72779
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
72780
|
+
}
|
|
72781
|
+
});
|
|
72782
|
+
return destination;
|
|
72783
|
+
}
|
|
72784
|
+
function deepmerge(target, source, options) {
|
|
72785
|
+
options = options || {};
|
|
72786
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
72787
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
72788
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
72789
|
+
var sourceIsArray = Array.isArray(source);
|
|
72790
|
+
var targetIsArray = Array.isArray(target);
|
|
72791
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
72792
|
+
if (!sourceAndTargetTypesMatch) {
|
|
72793
|
+
return cloneUnlessOtherwiseSpecified(source, options);
|
|
72794
|
+
} else if (sourceIsArray) {
|
|
72795
|
+
return options.arrayMerge(target, source, options);
|
|
72796
|
+
} else {
|
|
72797
|
+
return mergeObject(target, source, options);
|
|
72798
|
+
}
|
|
72799
|
+
}
|
|
72800
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
72801
|
+
if (!Array.isArray(array)) {
|
|
72802
|
+
throw new Error("first argument should be an array");
|
|
72803
|
+
}
|
|
72804
|
+
return array.reduce(function(prev, next) {
|
|
72805
|
+
return deepmerge(prev, next, options);
|
|
72806
|
+
}, {});
|
|
72807
|
+
};
|
|
72808
|
+
var deepmerge_1 = deepmerge;
|
|
72809
|
+
module.exports = deepmerge_1;
|
|
72810
|
+
}
|
|
72811
|
+
});
|
|
72711
72812
|
var require_tslib = __commonJS2({
|
|
72712
72813
|
"../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.js"(exports, module) {
|
|
72713
72814
|
var __extends;
|
|
@@ -74964,7 +75065,7 @@ var require_path_visitor = __commonJS2({
|
|
|
74964
75065
|
}
|
|
74965
75066
|
return target;
|
|
74966
75067
|
}
|
|
74967
|
-
PathVisitor.visit = function
|
|
75068
|
+
PathVisitor.visit = function visit3(node2, methods) {
|
|
74968
75069
|
return PathVisitor.fromMethodsObject(methods).visit(node2);
|
|
74969
75070
|
};
|
|
74970
75071
|
var PVp = PathVisitor.prototype;
|
|
@@ -75155,7 +75256,7 @@ var require_path_visitor = __commonJS2({
|
|
|
75155
75256
|
this.needToCallTraverse = false;
|
|
75156
75257
|
return visitChildren(path22, PathVisitor.fromMethodsObject(newVisitor || this.visitor));
|
|
75157
75258
|
};
|
|
75158
|
-
sharedContextProtoMethods.visit = function
|
|
75259
|
+
sharedContextProtoMethods.visit = function visit3(path22, newVisitor) {
|
|
75159
75260
|
if (!(this instanceof this.Context)) {
|
|
75160
75261
|
throw new Error("");
|
|
75161
75262
|
}
|
|
@@ -76498,7 +76599,7 @@ var require_main = __commonJS2({
|
|
|
76498
76599
|
var someField = _a.someField;
|
|
76499
76600
|
var Type = _a.Type;
|
|
76500
76601
|
var use = _a.use;
|
|
76501
|
-
var
|
|
76602
|
+
var visit3 = _a.visit;
|
|
76502
76603
|
exports.astNodesAreEquivalent = astNodesAreEquivalent;
|
|
76503
76604
|
exports.builders = builders;
|
|
76504
76605
|
exports.builtInTypes = builtInTypes;
|
|
@@ -76515,7 +76616,7 @@ var require_main = __commonJS2({
|
|
|
76515
76616
|
exports.someField = someField;
|
|
76516
76617
|
exports.Type = Type;
|
|
76517
76618
|
exports.use = use;
|
|
76518
|
-
exports.visit =
|
|
76619
|
+
exports.visit = visit3;
|
|
76519
76620
|
Object.assign(namedTypes_1.namedTypes, n);
|
|
76520
76621
|
}
|
|
76521
76622
|
});
|
|
@@ -88930,107 +89031,6 @@ var require_main2 = __commonJS2({
|
|
|
88930
89031
|
}
|
|
88931
89032
|
}
|
|
88932
89033
|
});
|
|
88933
|
-
var require_cjs = __commonJS2({
|
|
88934
|
-
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module) {
|
|
88935
|
-
"use strict";
|
|
88936
|
-
var isMergeableObject = function isMergeableObject2(value2) {
|
|
88937
|
-
return isNonNullObject(value2) && !isSpecial(value2);
|
|
88938
|
-
};
|
|
88939
|
-
function isNonNullObject(value2) {
|
|
88940
|
-
return !!value2 && typeof value2 === "object";
|
|
88941
|
-
}
|
|
88942
|
-
function isSpecial(value2) {
|
|
88943
|
-
var stringValue = Object.prototype.toString.call(value2);
|
|
88944
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value2);
|
|
88945
|
-
}
|
|
88946
|
-
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
88947
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
88948
|
-
function isReactElement(value2) {
|
|
88949
|
-
return value2.$$typeof === REACT_ELEMENT_TYPE;
|
|
88950
|
-
}
|
|
88951
|
-
function emptyTarget(val) {
|
|
88952
|
-
return Array.isArray(val) ? [] : {};
|
|
88953
|
-
}
|
|
88954
|
-
function cloneUnlessOtherwiseSpecified(value2, options) {
|
|
88955
|
-
return options.clone !== false && options.isMergeableObject(value2) ? deepmerge(emptyTarget(value2), value2, options) : value2;
|
|
88956
|
-
}
|
|
88957
|
-
function defaultArrayMerge(target, source, options) {
|
|
88958
|
-
return target.concat(source).map(function(element) {
|
|
88959
|
-
return cloneUnlessOtherwiseSpecified(element, options);
|
|
88960
|
-
});
|
|
88961
|
-
}
|
|
88962
|
-
function getMergeFunction(key, options) {
|
|
88963
|
-
if (!options.customMerge) {
|
|
88964
|
-
return deepmerge;
|
|
88965
|
-
}
|
|
88966
|
-
var customMerge = options.customMerge(key);
|
|
88967
|
-
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
88968
|
-
}
|
|
88969
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
88970
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
88971
|
-
return target.propertyIsEnumerable(symbol);
|
|
88972
|
-
}) : [];
|
|
88973
|
-
}
|
|
88974
|
-
function getKeys(target) {
|
|
88975
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
88976
|
-
}
|
|
88977
|
-
function propertyIsOnObject(object, property) {
|
|
88978
|
-
try {
|
|
88979
|
-
return property in object;
|
|
88980
|
-
} catch (_) {
|
|
88981
|
-
return false;
|
|
88982
|
-
}
|
|
88983
|
-
}
|
|
88984
|
-
function propertyIsUnsafe(target, key) {
|
|
88985
|
-
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
88986
|
-
}
|
|
88987
|
-
function mergeObject(target, source, options) {
|
|
88988
|
-
var destination = {};
|
|
88989
|
-
if (options.isMergeableObject(target)) {
|
|
88990
|
-
getKeys(target).forEach(function(key) {
|
|
88991
|
-
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
88992
|
-
});
|
|
88993
|
-
}
|
|
88994
|
-
getKeys(source).forEach(function(key) {
|
|
88995
|
-
if (propertyIsUnsafe(target, key)) {
|
|
88996
|
-
return;
|
|
88997
|
-
}
|
|
88998
|
-
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
88999
|
-
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
89000
|
-
} else {
|
|
89001
|
-
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
89002
|
-
}
|
|
89003
|
-
});
|
|
89004
|
-
return destination;
|
|
89005
|
-
}
|
|
89006
|
-
function deepmerge(target, source, options) {
|
|
89007
|
-
options = options || {};
|
|
89008
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
89009
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
89010
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
89011
|
-
var sourceIsArray = Array.isArray(source);
|
|
89012
|
-
var targetIsArray = Array.isArray(target);
|
|
89013
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
89014
|
-
if (!sourceAndTargetTypesMatch) {
|
|
89015
|
-
return cloneUnlessOtherwiseSpecified(source, options);
|
|
89016
|
-
} else if (sourceIsArray) {
|
|
89017
|
-
return options.arrayMerge(target, source, options);
|
|
89018
|
-
} else {
|
|
89019
|
-
return mergeObject(target, source, options);
|
|
89020
|
-
}
|
|
89021
|
-
}
|
|
89022
|
-
deepmerge.all = function deepmergeAll(array, options) {
|
|
89023
|
-
if (!Array.isArray(array)) {
|
|
89024
|
-
throw new Error("first argument should be an array");
|
|
89025
|
-
}
|
|
89026
|
-
return array.reduce(function(prev, next) {
|
|
89027
|
-
return deepmerge(prev, next, options);
|
|
89028
|
-
}, {});
|
|
89029
|
-
};
|
|
89030
|
-
var deepmerge_1 = deepmerge;
|
|
89031
|
-
module.exports = deepmerge_1;
|
|
89032
|
-
}
|
|
89033
|
-
});
|
|
89034
89034
|
async function runPipeline(config4, pipeline22, target) {
|
|
89035
89035
|
for (const transform of pipeline22) {
|
|
89036
89036
|
await transform?.(config4, target);
|
|
@@ -92390,10 +92390,11 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
92390
92390
|
cache_default.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
|
|
92391
92391
|
}
|
|
92392
92392
|
lastVariables = { ...marshalVariables2(ctx) };
|
|
92393
|
+
const variables = lastVariables;
|
|
92393
92394
|
subscriptionSpec = {
|
|
92394
92395
|
rootType: ctx.artifact.rootType,
|
|
92395
92396
|
selection: ctx.artifact.selection,
|
|
92396
|
-
variables: () =>
|
|
92397
|
+
variables: () => variables,
|
|
92397
92398
|
set: (newValue) => {
|
|
92398
92399
|
resolve22(ctx, {
|
|
92399
92400
|
data: newValue,
|
|
@@ -92420,12 +92421,17 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
92420
92421
|
});
|
|
92421
92422
|
var fragment = documentPlugin(ArtifactKind.Fragment, function() {
|
|
92422
92423
|
let subscriptionSpec = null;
|
|
92424
|
+
let lastReference = null;
|
|
92423
92425
|
return {
|
|
92424
92426
|
start(ctx, { next, resolve: resolve22, variablesChanged: variablesChanged2, marshalVariables: marshalVariables2 }) {
|
|
92425
92427
|
if (!ctx.stuff.parentID) {
|
|
92426
92428
|
return next(ctx);
|
|
92427
92429
|
}
|
|
92428
|
-
|
|
92430
|
+
const currentReference = {
|
|
92431
|
+
parent: ctx.stuff.parentID,
|
|
92432
|
+
variables: marshalVariables2(ctx)
|
|
92433
|
+
};
|
|
92434
|
+
if (!ctx.cacheParams?.disableSubscriptions && (!deepEquals(lastReference, currentReference) || variablesChanged2(ctx))) {
|
|
92429
92435
|
if (subscriptionSpec) {
|
|
92430
92436
|
cache_default.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
|
|
92431
92437
|
}
|
|
@@ -92448,6 +92454,7 @@ var fragment = documentPlugin(ArtifactKind.Fragment, function() {
|
|
|
92448
92454
|
}
|
|
92449
92455
|
};
|
|
92450
92456
|
cache_default.subscribe(subscriptionSpec, variables);
|
|
92457
|
+
lastReference = currentReference;
|
|
92451
92458
|
}
|
|
92452
92459
|
next(ctx);
|
|
92453
92460
|
},
|
|
@@ -92566,13 +92573,36 @@ var TypeWrapper = /* @__PURE__ */ ((TypeWrapper2) => {
|
|
|
92566
92573
|
return TypeWrapper2;
|
|
92567
92574
|
})(TypeWrapper || {});
|
|
92568
92575
|
var import_parser = __toESM2(require_lib3(), 1);
|
|
92569
|
-
|
|
92576
|
+
var import_deepmerge = __toESM2(require_cjs(), 1);
|
|
92577
|
+
function deepMerge(filepath, ...targets) {
|
|
92578
|
+
try {
|
|
92579
|
+
if (targets.length === 1) {
|
|
92580
|
+
return targets[0];
|
|
92581
|
+
} else if (targets.length === 2) {
|
|
92582
|
+
return (0, import_deepmerge.default)(targets[0], targets[1], {
|
|
92583
|
+
arrayMerge: (source, update) => [...new Set(source.concat(update))]
|
|
92584
|
+
});
|
|
92585
|
+
}
|
|
92586
|
+
return deepMerge(filepath, targets[0], deepMerge(filepath, ...targets.slice(1)));
|
|
92587
|
+
} catch (e22) {
|
|
92588
|
+
throw new HoudiniError({
|
|
92589
|
+
filepath,
|
|
92590
|
+
message: "could not merge: " + JSON.stringify(targets, null, 4),
|
|
92591
|
+
description: e22.message
|
|
92592
|
+
});
|
|
92593
|
+
}
|
|
92594
|
+
}
|
|
92595
|
+
async function parseJS(str, config4) {
|
|
92596
|
+
const defaultConfig = {
|
|
92597
|
+
plugins: ["typescript"],
|
|
92598
|
+
sourceType: "module"
|
|
92599
|
+
};
|
|
92570
92600
|
return {
|
|
92571
92601
|
start: 0,
|
|
92572
|
-
script: (0, import_parser.parse)(
|
|
92573
|
-
|
|
92574
|
-
|
|
92575
|
-
|
|
92602
|
+
script: (0, import_parser.parse)(
|
|
92603
|
+
str || "",
|
|
92604
|
+
config4 ? deepMerge("", defaultConfig, config4) : defaultConfig
|
|
92605
|
+
).program,
|
|
92576
92606
|
end: str.length
|
|
92577
92607
|
};
|
|
92578
92608
|
}
|
|
@@ -92617,7 +92647,6 @@ async function cleanupFiles(pathFolder, listOfObj) {
|
|
|
92617
92647
|
);
|
|
92618
92648
|
return allFilesNotInList;
|
|
92619
92649
|
}
|
|
92620
|
-
var import_deepmerge = __toESM2(require_cjs(), 1);
|
|
92621
92650
|
async function detectFromPackageJSON(cwd) {
|
|
92622
92651
|
try {
|
|
92623
92652
|
const packageJSONFile = await fs_exports.readFile(path_exports.join(cwd, "package.json"));
|
|
@@ -99327,7 +99356,7 @@ var require_visitor3 = __commonJS3({
|
|
|
99327
99356
|
Object.defineProperty(exports, "__esModule", {
|
|
99328
99357
|
value: true
|
|
99329
99358
|
});
|
|
99330
|
-
exports.visit =
|
|
99359
|
+
exports.visit = visit14;
|
|
99331
99360
|
exports.visitInParallel = visitInParallel;
|
|
99332
99361
|
exports.getVisitFn = getVisitFn;
|
|
99333
99362
|
exports.BREAK = exports.QueryDocumentKeys = void 0;
|
|
@@ -99390,7 +99419,7 @@ var require_visitor3 = __commonJS3({
|
|
|
99390
99419
|
exports.QueryDocumentKeys = QueryDocumentKeys;
|
|
99391
99420
|
var BREAK = Object.freeze({});
|
|
99392
99421
|
exports.BREAK = BREAK;
|
|
99393
|
-
function
|
|
99422
|
+
function visit14(root, visitor) {
|
|
99394
99423
|
var visitorKeys = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : QueryDocumentKeys;
|
|
99395
99424
|
var stack = void 0;
|
|
99396
99425
|
var inArray = Array.isArray(root);
|
|
@@ -137861,6 +137890,107 @@ var require_lib32 = __commonJS3({
|
|
|
137861
137890
|
exports.tokTypes = tokTypes;
|
|
137862
137891
|
}
|
|
137863
137892
|
});
|
|
137893
|
+
var require_cjs2 = __commonJS3({
|
|
137894
|
+
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module) {
|
|
137895
|
+
"use strict";
|
|
137896
|
+
var isMergeableObject = function isMergeableObject2(value2) {
|
|
137897
|
+
return isNonNullObject(value2) && !isSpecial(value2);
|
|
137898
|
+
};
|
|
137899
|
+
function isNonNullObject(value2) {
|
|
137900
|
+
return !!value2 && typeof value2 === "object";
|
|
137901
|
+
}
|
|
137902
|
+
function isSpecial(value2) {
|
|
137903
|
+
var stringValue = Object.prototype.toString.call(value2);
|
|
137904
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value2);
|
|
137905
|
+
}
|
|
137906
|
+
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
137907
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
137908
|
+
function isReactElement(value2) {
|
|
137909
|
+
return value2.$$typeof === REACT_ELEMENT_TYPE;
|
|
137910
|
+
}
|
|
137911
|
+
function emptyTarget(val) {
|
|
137912
|
+
return Array.isArray(val) ? [] : {};
|
|
137913
|
+
}
|
|
137914
|
+
function cloneUnlessOtherwiseSpecified(value2, options) {
|
|
137915
|
+
return options.clone !== false && options.isMergeableObject(value2) ? deepmerge(emptyTarget(value2), value2, options) : value2;
|
|
137916
|
+
}
|
|
137917
|
+
function defaultArrayMerge(target, source, options) {
|
|
137918
|
+
return target.concat(source).map(function(element) {
|
|
137919
|
+
return cloneUnlessOtherwiseSpecified(element, options);
|
|
137920
|
+
});
|
|
137921
|
+
}
|
|
137922
|
+
function getMergeFunction(key, options) {
|
|
137923
|
+
if (!options.customMerge) {
|
|
137924
|
+
return deepmerge;
|
|
137925
|
+
}
|
|
137926
|
+
var customMerge = options.customMerge(key);
|
|
137927
|
+
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
137928
|
+
}
|
|
137929
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
137930
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
137931
|
+
return target.propertyIsEnumerable(symbol);
|
|
137932
|
+
}) : [];
|
|
137933
|
+
}
|
|
137934
|
+
function getKeys(target) {
|
|
137935
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
137936
|
+
}
|
|
137937
|
+
function propertyIsOnObject(object, property) {
|
|
137938
|
+
try {
|
|
137939
|
+
return property in object;
|
|
137940
|
+
} catch (_) {
|
|
137941
|
+
return false;
|
|
137942
|
+
}
|
|
137943
|
+
}
|
|
137944
|
+
function propertyIsUnsafe(target, key) {
|
|
137945
|
+
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
137946
|
+
}
|
|
137947
|
+
function mergeObject(target, source, options) {
|
|
137948
|
+
var destination = {};
|
|
137949
|
+
if (options.isMergeableObject(target)) {
|
|
137950
|
+
getKeys(target).forEach(function(key) {
|
|
137951
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
137952
|
+
});
|
|
137953
|
+
}
|
|
137954
|
+
getKeys(source).forEach(function(key) {
|
|
137955
|
+
if (propertyIsUnsafe(target, key)) {
|
|
137956
|
+
return;
|
|
137957
|
+
}
|
|
137958
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
137959
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
137960
|
+
} else {
|
|
137961
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
137962
|
+
}
|
|
137963
|
+
});
|
|
137964
|
+
return destination;
|
|
137965
|
+
}
|
|
137966
|
+
function deepmerge(target, source, options) {
|
|
137967
|
+
options = options || {};
|
|
137968
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
137969
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
137970
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
137971
|
+
var sourceIsArray = Array.isArray(source);
|
|
137972
|
+
var targetIsArray = Array.isArray(target);
|
|
137973
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
137974
|
+
if (!sourceAndTargetTypesMatch) {
|
|
137975
|
+
return cloneUnlessOtherwiseSpecified(source, options);
|
|
137976
|
+
} else if (sourceIsArray) {
|
|
137977
|
+
return options.arrayMerge(target, source, options);
|
|
137978
|
+
} else {
|
|
137979
|
+
return mergeObject(target, source, options);
|
|
137980
|
+
}
|
|
137981
|
+
}
|
|
137982
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
137983
|
+
if (!Array.isArray(array)) {
|
|
137984
|
+
throw new Error("first argument should be an array");
|
|
137985
|
+
}
|
|
137986
|
+
return array.reduce(function(prev, next) {
|
|
137987
|
+
return deepmerge(prev, next, options);
|
|
137988
|
+
}, {});
|
|
137989
|
+
};
|
|
137990
|
+
var deepmerge_1 = deepmerge;
|
|
137991
|
+
module.exports = deepmerge_1;
|
|
137992
|
+
}
|
|
137993
|
+
});
|
|
137864
137994
|
var require_tslib2 = __commonJS3({
|
|
137865
137995
|
"../../node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.js"(exports, module) {
|
|
137866
137996
|
var __extends;
|
|
@@ -140117,7 +140247,7 @@ var require_path_visitor2 = __commonJS3({
|
|
|
140117
140247
|
}
|
|
140118
140248
|
return target;
|
|
140119
140249
|
}
|
|
140120
|
-
PathVisitor.visit = function
|
|
140250
|
+
PathVisitor.visit = function visit14(node2, methods) {
|
|
140121
140251
|
return PathVisitor.fromMethodsObject(methods).visit(node2);
|
|
140122
140252
|
};
|
|
140123
140253
|
var PVp = PathVisitor.prototype;
|
|
@@ -140308,7 +140438,7 @@ var require_path_visitor2 = __commonJS3({
|
|
|
140308
140438
|
this.needToCallTraverse = false;
|
|
140309
140439
|
return visitChildren(path22, PathVisitor.fromMethodsObject(newVisitor || this.visitor));
|
|
140310
140440
|
};
|
|
140311
|
-
sharedContextProtoMethods.visit = function
|
|
140441
|
+
sharedContextProtoMethods.visit = function visit14(path22, newVisitor) {
|
|
140312
140442
|
if (!(this instanceof this.Context)) {
|
|
140313
140443
|
throw new Error("");
|
|
140314
140444
|
}
|
|
@@ -141651,7 +141781,7 @@ var require_main3 = __commonJS3({
|
|
|
141651
141781
|
var someField = _a.someField;
|
|
141652
141782
|
var Type = _a.Type;
|
|
141653
141783
|
var use = _a.use;
|
|
141654
|
-
var
|
|
141784
|
+
var visit14 = _a.visit;
|
|
141655
141785
|
exports.astNodesAreEquivalent = astNodesAreEquivalent;
|
|
141656
141786
|
exports.builders = builders;
|
|
141657
141787
|
exports.builtInTypes = builtInTypes;
|
|
@@ -141668,7 +141798,7 @@ var require_main3 = __commonJS3({
|
|
|
141668
141798
|
exports.someField = someField;
|
|
141669
141799
|
exports.Type = Type;
|
|
141670
141800
|
exports.use = use;
|
|
141671
|
-
exports.visit =
|
|
141801
|
+
exports.visit = visit14;
|
|
141672
141802
|
Object.assign(namedTypes_1.namedTypes, n);
|
|
141673
141803
|
}
|
|
141674
141804
|
});
|
|
@@ -154083,107 +154213,6 @@ var require_main22 = __commonJS3({
|
|
|
154083
154213
|
}
|
|
154084
154214
|
}
|
|
154085
154215
|
});
|
|
154086
|
-
var require_cjs2 = __commonJS3({
|
|
154087
|
-
"../../node_modules/.pnpm/deepmerge@4.2.2/node_modules/deepmerge/dist/cjs.js"(exports, module) {
|
|
154088
|
-
"use strict";
|
|
154089
|
-
var isMergeableObject = function isMergeableObject2(value2) {
|
|
154090
|
-
return isNonNullObject(value2) && !isSpecial(value2);
|
|
154091
|
-
};
|
|
154092
|
-
function isNonNullObject(value2) {
|
|
154093
|
-
return !!value2 && typeof value2 === "object";
|
|
154094
|
-
}
|
|
154095
|
-
function isSpecial(value2) {
|
|
154096
|
-
var stringValue = Object.prototype.toString.call(value2);
|
|
154097
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value2);
|
|
154098
|
-
}
|
|
154099
|
-
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
154100
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
154101
|
-
function isReactElement(value2) {
|
|
154102
|
-
return value2.$$typeof === REACT_ELEMENT_TYPE;
|
|
154103
|
-
}
|
|
154104
|
-
function emptyTarget(val) {
|
|
154105
|
-
return Array.isArray(val) ? [] : {};
|
|
154106
|
-
}
|
|
154107
|
-
function cloneUnlessOtherwiseSpecified(value2, options) {
|
|
154108
|
-
return options.clone !== false && options.isMergeableObject(value2) ? deepmerge(emptyTarget(value2), value2, options) : value2;
|
|
154109
|
-
}
|
|
154110
|
-
function defaultArrayMerge(target, source, options) {
|
|
154111
|
-
return target.concat(source).map(function(element) {
|
|
154112
|
-
return cloneUnlessOtherwiseSpecified(element, options);
|
|
154113
|
-
});
|
|
154114
|
-
}
|
|
154115
|
-
function getMergeFunction(key, options) {
|
|
154116
|
-
if (!options.customMerge) {
|
|
154117
|
-
return deepmerge;
|
|
154118
|
-
}
|
|
154119
|
-
var customMerge = options.customMerge(key);
|
|
154120
|
-
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
154121
|
-
}
|
|
154122
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
154123
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
154124
|
-
return target.propertyIsEnumerable(symbol);
|
|
154125
|
-
}) : [];
|
|
154126
|
-
}
|
|
154127
|
-
function getKeys(target) {
|
|
154128
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
154129
|
-
}
|
|
154130
|
-
function propertyIsOnObject(object, property) {
|
|
154131
|
-
try {
|
|
154132
|
-
return property in object;
|
|
154133
|
-
} catch (_) {
|
|
154134
|
-
return false;
|
|
154135
|
-
}
|
|
154136
|
-
}
|
|
154137
|
-
function propertyIsUnsafe(target, key) {
|
|
154138
|
-
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
154139
|
-
}
|
|
154140
|
-
function mergeObject(target, source, options) {
|
|
154141
|
-
var destination = {};
|
|
154142
|
-
if (options.isMergeableObject(target)) {
|
|
154143
|
-
getKeys(target).forEach(function(key) {
|
|
154144
|
-
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
154145
|
-
});
|
|
154146
|
-
}
|
|
154147
|
-
getKeys(source).forEach(function(key) {
|
|
154148
|
-
if (propertyIsUnsafe(target, key)) {
|
|
154149
|
-
return;
|
|
154150
|
-
}
|
|
154151
|
-
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
154152
|
-
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
154153
|
-
} else {
|
|
154154
|
-
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
154155
|
-
}
|
|
154156
|
-
});
|
|
154157
|
-
return destination;
|
|
154158
|
-
}
|
|
154159
|
-
function deepmerge(target, source, options) {
|
|
154160
|
-
options = options || {};
|
|
154161
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
154162
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
154163
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
154164
|
-
var sourceIsArray = Array.isArray(source);
|
|
154165
|
-
var targetIsArray = Array.isArray(target);
|
|
154166
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
154167
|
-
if (!sourceAndTargetTypesMatch) {
|
|
154168
|
-
return cloneUnlessOtherwiseSpecified(source, options);
|
|
154169
|
-
} else if (sourceIsArray) {
|
|
154170
|
-
return options.arrayMerge(target, source, options);
|
|
154171
|
-
} else {
|
|
154172
|
-
return mergeObject(target, source, options);
|
|
154173
|
-
}
|
|
154174
|
-
}
|
|
154175
|
-
deepmerge.all = function deepmergeAll(array, options) {
|
|
154176
|
-
if (!Array.isArray(array)) {
|
|
154177
|
-
throw new Error("first argument should be an array");
|
|
154178
|
-
}
|
|
154179
|
-
return array.reduce(function(prev, next) {
|
|
154180
|
-
return deepmerge(prev, next, options);
|
|
154181
|
-
}, {});
|
|
154182
|
-
};
|
|
154183
|
-
var deepmerge_1 = deepmerge;
|
|
154184
|
-
module.exports = deepmerge_1;
|
|
154185
|
-
}
|
|
154186
|
-
});
|
|
154187
154216
|
var import_minimatch2 = __toESM3(require_minimatch2(), 1);
|
|
154188
154217
|
var config = {
|
|
154189
154218
|
reset: {
|
|
@@ -157637,10 +157666,11 @@ var query2 = documentPlugin2(ArtifactKind2.Query, function() {
|
|
|
157637
157666
|
cache_default2.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
|
|
157638
157667
|
}
|
|
157639
157668
|
lastVariables = { ...marshalVariables(ctx) };
|
|
157669
|
+
const variables = lastVariables;
|
|
157640
157670
|
subscriptionSpec = {
|
|
157641
157671
|
rootType: ctx.artifact.rootType,
|
|
157642
157672
|
selection: ctx.artifact.selection,
|
|
157643
|
-
variables: () =>
|
|
157673
|
+
variables: () => variables,
|
|
157644
157674
|
set: (newValue) => {
|
|
157645
157675
|
resolve22(ctx, {
|
|
157646
157676
|
data: newValue,
|
|
@@ -157667,12 +157697,17 @@ var query2 = documentPlugin2(ArtifactKind2.Query, function() {
|
|
|
157667
157697
|
});
|
|
157668
157698
|
var fragment2 = documentPlugin2(ArtifactKind2.Fragment, function() {
|
|
157669
157699
|
let subscriptionSpec = null;
|
|
157700
|
+
let lastReference = null;
|
|
157670
157701
|
return {
|
|
157671
157702
|
start(ctx, { next, resolve: resolve22, variablesChanged, marshalVariables }) {
|
|
157672
157703
|
if (!ctx.stuff.parentID) {
|
|
157673
157704
|
return next(ctx);
|
|
157674
157705
|
}
|
|
157675
|
-
|
|
157706
|
+
const currentReference = {
|
|
157707
|
+
parent: ctx.stuff.parentID,
|
|
157708
|
+
variables: marshalVariables(ctx)
|
|
157709
|
+
};
|
|
157710
|
+
if (!ctx.cacheParams?.disableSubscriptions && (!deepEquals2(lastReference, currentReference) || variablesChanged(ctx))) {
|
|
157676
157711
|
if (subscriptionSpec) {
|
|
157677
157712
|
cache_default2.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
|
|
157678
157713
|
}
|
|
@@ -157695,6 +157730,7 @@ var fragment2 = documentPlugin2(ArtifactKind2.Fragment, function() {
|
|
|
157695
157730
|
}
|
|
157696
157731
|
};
|
|
157697
157732
|
cache_default2.subscribe(subscriptionSpec, variables);
|
|
157733
|
+
lastReference = currentReference;
|
|
157698
157734
|
}
|
|
157699
157735
|
next(ctx);
|
|
157700
157736
|
},
|
|
@@ -157760,9 +157796,9 @@ var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
|
|
|
157760
157796
|
var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
|
|
157761
157797
|
var graphql32 = __toESM3(require_graphql22(), 1);
|
|
157762
157798
|
var import_parser2 = __toESM3(require_lib32(), 1);
|
|
157799
|
+
var import_deepmerge2 = __toESM3(require_cjs2(), 1);
|
|
157763
157800
|
var recast2 = __toESM3(require_main22(), 1);
|
|
157764
157801
|
var AST2 = recast2.types.builders;
|
|
157765
|
-
var import_deepmerge2 = __toESM3(require_cjs2(), 1);
|
|
157766
157802
|
var graphql42 = __toESM3(require_graphql22(), 1);
|
|
157767
157803
|
var graphql14 = __toESM3(require_graphql22(), 1);
|
|
157768
157804
|
var recast5 = __toESM3(require_main22(), 1);
|