relay-runtime 0.0.0-main-563e04f2 → 0.0.0-main-a1c09cf7
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 +1 -1
- package/index.js +1 -1
- package/lib/util/handlePotentialSnapshotErrors.js +2 -5
- package/package.json +1 -1
- package/relay-runtime-experimental.js +1 -1
- package/relay-runtime-experimental.min.js +1 -1
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/util/handlePotentialSnapshotErrors.js.flow +3 -3
|
@@ -54,7 +54,7 @@ function handleFieldErrors(
|
|
|
54
54
|
for (const fieldError of errorResponseFields) {
|
|
55
55
|
const {path, owner, error} = fieldError;
|
|
56
56
|
if (fieldError.type === 'MISSING_DATA') {
|
|
57
|
-
|
|
57
|
+
// _logMissingData(environment, shouldThrow);
|
|
58
58
|
} else {
|
|
59
59
|
environment.relayFieldLogger({
|
|
60
60
|
kind: 'relay_field_payload.error',
|
|
@@ -74,7 +74,7 @@ function handleFieldErrors(
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
function
|
|
77
|
+
function _logMissingData(environment: IEnvironment, throwing: boolean) {
|
|
78
78
|
if (!throwing) {
|
|
79
79
|
environment.relayFieldLogger({
|
|
80
80
|
kind: 'missing_expected_data.log',
|
|
@@ -127,7 +127,7 @@ function handleMissingDataError(
|
|
|
127
127
|
environment: IEnvironment,
|
|
128
128
|
throwOnFieldErrorDirective: boolean,
|
|
129
129
|
) {
|
|
130
|
-
|
|
130
|
+
// _logMissingData(environment, throwOnFieldErrorDirective);
|
|
131
131
|
|
|
132
132
|
if (throwOnFieldErrorDirective) {
|
|
133
133
|
throw new RelayFieldError(`Relay: Missing data for one or more fields`);
|