relay-runtime 0.0.0-main-217f70a9 → 0.0.0-main-ea0ad0fe
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/experimental.js
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -340,6 +340,7 @@ function getVariablesFromObject(
|
|
|
340
340
|
const fragment = fragments[key];
|
|
341
341
|
const item = object[key];
|
|
342
342
|
const itemVariables = getVariablesFromFragment(fragment, item);
|
|
343
|
+
// $FlowFixMe[unsafe-object-assign]
|
|
343
344
|
Object.assign(variables, itemVariables);
|
|
344
345
|
}
|
|
345
346
|
}
|
|
@@ -397,6 +398,7 @@ function getVariablesFromPluralFragment(
|
|
|
397
398
|
if (value != null) {
|
|
398
399
|
const itemVariables = getVariablesFromSingularFragment(fragment, value);
|
|
399
400
|
if (itemVariables != null) {
|
|
401
|
+
// $FlowFixMe[unsafe-object-assign]
|
|
400
402
|
Object.assign(variables, itemVariables);
|
|
401
403
|
}
|
|
402
404
|
}
|
package/util/RelayError.js.flow
CHANGED
|
@@ -30,6 +30,7 @@ function withProvidedVariables(
|
|
|
30
30
|
): Variables {
|
|
31
31
|
if (providedVariables != null) {
|
|
32
32
|
const operationVariables: {[string]: mixed} = {};
|
|
33
|
+
// $FlowFixMe[unsafe-object-assign]
|
|
33
34
|
Object.assign(operationVariables, userSuppliedVariables);
|
|
34
35
|
Object.keys(providedVariables).forEach((varName: string) => {
|
|
35
36
|
const providerFunction = providedVariables[varName].get;
|