houdini-react 0.0.0-20240311071844 → 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,7 +77823,7 @@ 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 (config.configFile.features?.runtimeScalars?.[type.name.value]) {
|
|
77826
|
+
if (convertRuntimeScalars && config.configFile.features?.runtimeScalars?.[type.name.value]) {
|
|
77827
77827
|
type = config.schema.getType(
|
|
77828
77828
|
config.configFile.features?.runtimeScalars?.[type.name.value].type
|
|
77829
77829
|
);
|
|
@@ -78741,7 +78741,7 @@ async function add_query(args) {
|
|
|
78741
78741
|
});
|
|
78742
78742
|
const queryVariables = Object.fromEntries(
|
|
78743
78743
|
query2.variableDefinitions?.map((variable) => {
|
|
78744
|
-
const { type, wrappers } = unwrapType(args.config, variable.type);
|
|
78744
|
+
const { type, wrappers } = unwrapType(args.config, variable.type, [], true);
|
|
78745
78745
|
return [
|
|
78746
78746
|
variable.variable.name.value,
|
|
78747
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,7 +77813,7 @@ 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 (config.configFile.features?.runtimeScalars?.[type.name.value]) {
|
|
77816
|
+
if (convertRuntimeScalars && config.configFile.features?.runtimeScalars?.[type.name.value]) {
|
|
77817
77817
|
type = config.schema.getType(
|
|
77818
77818
|
config.configFile.features?.runtimeScalars?.[type.name.value].type
|
|
77819
77819
|
);
|
|
@@ -78731,7 +78731,7 @@ async function add_query(args) {
|
|
|
78731
78731
|
});
|
|
78732
78732
|
const queryVariables = Object.fromEntries(
|
|
78733
78733
|
query2.variableDefinitions?.map((variable) => {
|
|
78734
|
-
const { type, wrappers } = unwrapType(args.config, variable.type);
|
|
78734
|
+
const { type, wrappers } = unwrapType(args.config, variable.type, [], true);
|
|
78735
78735
|
return [
|
|
78736
78736
|
variable.variable.name.value,
|
|
78737
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"
|