houdini-svelte 1.2.45 → 1.2.46
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.
|
@@ -77865,7 +77865,12 @@ function deepMerge2(filepath, ...targets) {
|
|
|
77865
77865
|
}
|
|
77866
77866
|
function parseJS(str, config2) {
|
|
77867
77867
|
const defaultConfig = {
|
|
77868
|
-
plugins: [
|
|
77868
|
+
plugins: [
|
|
77869
|
+
"typescript",
|
|
77870
|
+
"importAssertions",
|
|
77871
|
+
"decorators-legacy",
|
|
77872
|
+
"explicitResourceManagement"
|
|
77873
|
+
],
|
|
77869
77874
|
sourceType: "module"
|
|
77870
77875
|
};
|
|
77871
77876
|
return (0, import_parser.parse)(str || "", config2 ? deepMerge2("", defaultConfig, config2) : defaultConfig).program;
|
|
@@ -77860,7 +77860,12 @@ function deepMerge2(filepath, ...targets) {
|
|
|
77860
77860
|
}
|
|
77861
77861
|
function parseJS(str, config2) {
|
|
77862
77862
|
const defaultConfig = {
|
|
77863
|
-
plugins: [
|
|
77863
|
+
plugins: [
|
|
77864
|
+
"typescript",
|
|
77865
|
+
"importAssertions",
|
|
77866
|
+
"decorators-legacy",
|
|
77867
|
+
"explicitResourceManagement"
|
|
77868
|
+
],
|
|
77864
77869
|
sourceType: "module"
|
|
77865
77870
|
};
|
|
77866
77871
|
return (0, import_parser.parse)(str || "", config2 ? deepMerge2("", defaultConfig, config2) : defaultConfig).program;
|
|
@@ -82067,7 +82067,12 @@ function deepMerge2(filepath, ...targets) {
|
|
|
82067
82067
|
}
|
|
82068
82068
|
function parseJS(str, config2) {
|
|
82069
82069
|
const defaultConfig = {
|
|
82070
|
-
plugins: [
|
|
82070
|
+
plugins: [
|
|
82071
|
+
"typescript",
|
|
82072
|
+
"importAssertions",
|
|
82073
|
+
"decorators-legacy",
|
|
82074
|
+
"explicitResourceManagement"
|
|
82075
|
+
],
|
|
82071
82076
|
sourceType: "module"
|
|
82072
82077
|
};
|
|
82073
82078
|
return (0, import_parser.parse)(str || "", config2 ? deepMerge2("", defaultConfig, config2) : defaultConfig).program;
|
|
@@ -82064,7 +82064,12 @@ function deepMerge2(filepath, ...targets) {
|
|
|
82064
82064
|
}
|
|
82065
82065
|
function parseJS(str, config2) {
|
|
82066
82066
|
const defaultConfig = {
|
|
82067
|
-
plugins: [
|
|
82067
|
+
plugins: [
|
|
82068
|
+
"typescript",
|
|
82069
|
+
"importAssertions",
|
|
82070
|
+
"decorators-legacy",
|
|
82071
|
+
"explicitResourceManagement"
|
|
82072
|
+
],
|
|
82068
82073
|
sourceType: "module"
|
|
82069
82074
|
};
|
|
82070
82075
|
return (0, import_parser.parse)(str || "", config2 ? deepMerge2("", defaultConfig, config2) : defaultConfig).program;
|
package/build/test-cjs/index.js
CHANGED
|
@@ -77868,7 +77868,12 @@ function deepMerge2(filepath, ...targets) {
|
|
|
77868
77868
|
}
|
|
77869
77869
|
function parseJS(str, config2) {
|
|
77870
77870
|
const defaultConfig = {
|
|
77871
|
-
plugins: [
|
|
77871
|
+
plugins: [
|
|
77872
|
+
"typescript",
|
|
77873
|
+
"importAssertions",
|
|
77874
|
+
"decorators-legacy",
|
|
77875
|
+
"explicitResourceManagement"
|
|
77876
|
+
],
|
|
77872
77877
|
sourceType: "module"
|
|
77873
77878
|
};
|
|
77874
77879
|
return (0, import_parser.parse)(str || "", config2 ? deepMerge2("", defaultConfig, config2) : defaultConfig).program;
|
|
@@ -134776,7 +134781,12 @@ function deepMerge22(filepath, ...targets) {
|
|
|
134776
134781
|
}
|
|
134777
134782
|
function parseJS2(str, config2) {
|
|
134778
134783
|
const defaultConfig = {
|
|
134779
|
-
plugins: [
|
|
134784
|
+
plugins: [
|
|
134785
|
+
"typescript",
|
|
134786
|
+
"importAssertions",
|
|
134787
|
+
"decorators-legacy",
|
|
134788
|
+
"explicitResourceManagement"
|
|
134789
|
+
],
|
|
134780
134790
|
sourceType: "module"
|
|
134781
134791
|
};
|
|
134782
134792
|
return (0, import_parser2.parse)(str || "", config2 ? deepMerge22("", defaultConfig, config2) : defaultConfig).program;
|
|
@@ -136022,7 +136032,11 @@ function operationsByPath(config2, filepath, definition, filterTypes) {
|
|
|
136022
136032
|
const pathOperations = {};
|
|
136023
136033
|
graphql11.visit(definition, {
|
|
136024
136034
|
FragmentSpread(node2, _, __, ___, ancestors) {
|
|
136025
|
-
|
|
136035
|
+
let nameWithoutHash = node2.name.value;
|
|
136036
|
+
if (node2.directives && node2.directives.find((directive) => directive.name.value === "with")) {
|
|
136037
|
+
nameWithoutHash = nameWithoutHash.substring(0, nameWithoutHash.lastIndexOf("_"));
|
|
136038
|
+
}
|
|
136039
|
+
if (!config2.isListFragment(nameWithoutHash)) {
|
|
136026
136040
|
return;
|
|
136027
136041
|
}
|
|
136028
136042
|
const path22 = ancestorKey(ancestors);
|
|
@@ -136033,8 +136047,8 @@ function operationsByPath(config2, filepath, definition, filterTypes) {
|
|
|
136033
136047
|
operationObject({
|
|
136034
136048
|
config: config2,
|
|
136035
136049
|
filepath,
|
|
136036
|
-
listName: config2.listNameFromFragment(
|
|
136037
|
-
operationKind: config2.listOperationFromFragment(
|
|
136050
|
+
listName: config2.listNameFromFragment(nameWithoutHash),
|
|
136051
|
+
operationKind: config2.listOperationFromFragment(nameWithoutHash),
|
|
136038
136052
|
type: parentTypeFromAncestors(config2.schema, filepath, ancestors).name,
|
|
136039
136053
|
selection: node2
|
|
136040
136054
|
})
|
package/build/test-esm/index.js
CHANGED
|
@@ -77860,7 +77860,12 @@ function deepMerge2(filepath, ...targets) {
|
|
|
77860
77860
|
}
|
|
77861
77861
|
function parseJS(str, config2) {
|
|
77862
77862
|
const defaultConfig = {
|
|
77863
|
-
plugins: [
|
|
77863
|
+
plugins: [
|
|
77864
|
+
"typescript",
|
|
77865
|
+
"importAssertions",
|
|
77866
|
+
"decorators-legacy",
|
|
77867
|
+
"explicitResourceManagement"
|
|
77868
|
+
],
|
|
77864
77869
|
sourceType: "module"
|
|
77865
77870
|
};
|
|
77866
77871
|
return (0, import_parser.parse)(str || "", config2 ? deepMerge2("", defaultConfig, config2) : defaultConfig).program;
|
|
@@ -134767,7 +134772,12 @@ function deepMerge22(filepath, ...targets) {
|
|
|
134767
134772
|
}
|
|
134768
134773
|
function parseJS2(str, config2) {
|
|
134769
134774
|
const defaultConfig = {
|
|
134770
|
-
plugins: [
|
|
134775
|
+
plugins: [
|
|
134776
|
+
"typescript",
|
|
134777
|
+
"importAssertions",
|
|
134778
|
+
"decorators-legacy",
|
|
134779
|
+
"explicitResourceManagement"
|
|
134780
|
+
],
|
|
134771
134781
|
sourceType: "module"
|
|
134772
134782
|
};
|
|
134773
134783
|
return (0, import_parser2.parse)(str || "", config2 ? deepMerge22("", defaultConfig, config2) : defaultConfig).program;
|
|
@@ -136013,7 +136023,11 @@ function operationsByPath(config2, filepath, definition, filterTypes) {
|
|
|
136013
136023
|
const pathOperations = {};
|
|
136014
136024
|
graphql11.visit(definition, {
|
|
136015
136025
|
FragmentSpread(node2, _, __, ___, ancestors) {
|
|
136016
|
-
|
|
136026
|
+
let nameWithoutHash = node2.name.value;
|
|
136027
|
+
if (node2.directives && node2.directives.find((directive) => directive.name.value === "with")) {
|
|
136028
|
+
nameWithoutHash = nameWithoutHash.substring(0, nameWithoutHash.lastIndexOf("_"));
|
|
136029
|
+
}
|
|
136030
|
+
if (!config2.isListFragment(nameWithoutHash)) {
|
|
136017
136031
|
return;
|
|
136018
136032
|
}
|
|
136019
136033
|
const path22 = ancestorKey(ancestors);
|
|
@@ -136024,8 +136038,8 @@ function operationsByPath(config2, filepath, definition, filterTypes) {
|
|
|
136024
136038
|
operationObject({
|
|
136025
136039
|
config: config2,
|
|
136026
136040
|
filepath,
|
|
136027
|
-
listName: config2.listNameFromFragment(
|
|
136028
|
-
operationKind: config2.listOperationFromFragment(
|
|
136041
|
+
listName: config2.listNameFromFragment(nameWithoutHash),
|
|
136042
|
+
operationKind: config2.listOperationFromFragment(nameWithoutHash),
|
|
136029
136043
|
type: parentTypeFromAncestors(config2.schema, filepath, ancestors).name,
|
|
136030
136044
|
selection: node2
|
|
136031
136045
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.46",
|
|
4
4
|
"description": "The svelte plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"rollup": "^3.7.4",
|
|
34
34
|
"svelte": "^3.57.0",
|
|
35
35
|
"vite": "^4.1.1",
|
|
36
|
-
"houdini": "^1.2.
|
|
36
|
+
"houdini": "^1.2.46"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"build"
|