houdini-react 0.0.0-20240311070933 → 0.0.0-20240311072355
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.
|
@@ -77807,7 +77807,7 @@ function processComponentFieldDirective(directive) {
|
|
|
77807
77807
|
export: exportValue
|
|
77808
77808
|
};
|
|
77809
77809
|
}
|
|
77810
|
-
function unwrapType(config, type, wrappers = []) {
|
|
77810
|
+
function unwrapType(config, type, wrappers = [], convertRuntimeScalars) {
|
|
77811
77811
|
if (type.kind === "NonNullType") {
|
|
77812
77812
|
return unwrapType(config, type.type, [TypeWrapper.NonNull, ...wrappers]);
|
|
77813
77813
|
}
|
|
@@ -77823,6 +77823,11 @@ function unwrapType(config, type, wrappers = []) {
|
|
|
77823
77823
|
if (type instanceof graphql3.GraphQLList) {
|
|
77824
77824
|
return unwrapType(config, type.ofType, [TypeWrapper.List, ...wrappers]);
|
|
77825
77825
|
}
|
|
77826
|
+
if (convertRuntimeScalars && config.configFile.features?.runtimeScalars?.[type.name.value]) {
|
|
77827
|
+
type = config.schema.getType(
|
|
77828
|
+
config.configFile.features?.runtimeScalars?.[type.name.value].type
|
|
77829
|
+
);
|
|
77830
|
+
}
|
|
77826
77831
|
const namedType = config.schema.getType(type.name.value || type.name);
|
|
77827
77832
|
if (!namedType) {
|
|
77828
77833
|
throw new Error("Unknown type: " + type.name.value || type.name);
|
|
@@ -78736,7 +78741,7 @@ async function add_query(args) {
|
|
|
78736
78741
|
});
|
|
78737
78742
|
const queryVariables = Object.fromEntries(
|
|
78738
78743
|
query2.variableDefinitions?.map((variable) => {
|
|
78739
|
-
const { type, wrappers } = unwrapType(args.config, variable.type);
|
|
78744
|
+
const { type, wrappers } = unwrapType(args.config, variable.type, [], true);
|
|
78740
78745
|
return [
|
|
78741
78746
|
variable.variable.name.value,
|
|
78742
78747
|
{ wrappers, type: type.name }
|
|
@@ -77797,7 +77797,7 @@ function processComponentFieldDirective(directive) {
|
|
|
77797
77797
|
export: exportValue
|
|
77798
77798
|
};
|
|
77799
77799
|
}
|
|
77800
|
-
function unwrapType(config, type, wrappers = []) {
|
|
77800
|
+
function unwrapType(config, type, wrappers = [], convertRuntimeScalars) {
|
|
77801
77801
|
if (type.kind === "NonNullType") {
|
|
77802
77802
|
return unwrapType(config, type.type, [TypeWrapper.NonNull, ...wrappers]);
|
|
77803
77803
|
}
|
|
@@ -77813,6 +77813,11 @@ function unwrapType(config, type, wrappers = []) {
|
|
|
77813
77813
|
if (type instanceof graphql3.GraphQLList) {
|
|
77814
77814
|
return unwrapType(config, type.ofType, [TypeWrapper.List, ...wrappers]);
|
|
77815
77815
|
}
|
|
77816
|
+
if (convertRuntimeScalars && config.configFile.features?.runtimeScalars?.[type.name.value]) {
|
|
77817
|
+
type = config.schema.getType(
|
|
77818
|
+
config.configFile.features?.runtimeScalars?.[type.name.value].type
|
|
77819
|
+
);
|
|
77820
|
+
}
|
|
77816
77821
|
const namedType = config.schema.getType(type.name.value || type.name);
|
|
77817
77822
|
if (!namedType) {
|
|
77818
77823
|
throw new Error("Unknown type: " + type.name.value || type.name);
|
|
@@ -78726,7 +78731,7 @@ async function add_query(args) {
|
|
|
78726
78731
|
});
|
|
78727
78732
|
const queryVariables = Object.fromEntries(
|
|
78728
78733
|
query2.variableDefinitions?.map((variable) => {
|
|
78729
|
-
const { type, wrappers } = unwrapType(args.config, variable.type);
|
|
78734
|
+
const { type, wrappers } = unwrapType(args.config, variable.type, [], true);
|
|
78730
78735
|
return [
|
|
78731
78736
|
variable.variable.name.value,
|
|
78732
78737
|
{ wrappers, type: type.name }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20240311072355",
|
|
4
4
|
"description": "The React plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"recast": "^0.23.1",
|
|
44
44
|
"rollup": "^3.7.4",
|
|
45
45
|
"use-deep-compare-effect": "^1.8.1",
|
|
46
|
-
"houdini": "^0.0.0-
|
|
46
|
+
"houdini": "^0.0.0-20240311072355"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
49
|
"build"
|