@warp-drive-mirror/core 5.10.0-alpha.14 → 5.10.0-alpha.15
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/dist/graph/-private.js +2 -2
- package/dist/graph/-private.js.map +1 -1
- package/dist/internal-BOC6nyCi.d.ts.map +1 -1
- package/dist/types/-private.js +1 -1
- package/dist/unpkg/dev/graph/-private.js +2 -2
- package/dist/unpkg/dev/graph/-private.js.map +1 -1
- package/dist/unpkg/dev/types/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/graph/-private.js +2 -2
- package/dist/unpkg/dev-deprecated/graph/-private.js.map +1 -1
- package/dist/unpkg/dev-deprecated/types/-private.js +1 -1
- package/dist/unpkg/prod/graph/-private.js.map +1 -1
- package/dist/unpkg/prod/types/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/graph/-private.js.map +1 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
- package/package.json +4 -4
package/dist/graph/-private.js
CHANGED
|
@@ -57,9 +57,9 @@ function assertValidRelationshipPayload(graph, op) {
|
|
|
57
57
|
const { definition, identifier, state } = relationship;
|
|
58
58
|
const { type } = identifier;
|
|
59
59
|
const { field } = op;
|
|
60
|
-
const { isAsync, kind } = definition;
|
|
60
|
+
const { isAsync, isLinksMode, kind } = definition;
|
|
61
61
|
if (payload.links) {
|
|
62
|
-
if (macroCondition(!getGlobalConfig().WarpDriveMirror.features.JSON_API_CACHE_VALIDATION_ERRORS)) warn(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. WarpDrive will treat this relationship as known-to-be-empty.`, isAsync || payload.data === null || !!payload.data || state.hasReceivedData, { id: "ds.store.push-link-for-sync-relationship" });
|
|
62
|
+
if (macroCondition(!getGlobalConfig().WarpDriveMirror.features.JSON_API_CACHE_VALIDATION_ERRORS)) warn(`You pushed a record of type '${type}' with a relationship '${field}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. WarpDrive will treat this relationship as known-to-be-empty.`, isAsync || isLinksMode || payload.data === null || !!payload.data || state.hasReceivedData, { id: "ds.store.push-link-for-sync-relationship" });
|
|
63
63
|
} else if (payload.data) {
|
|
64
64
|
if (kind === "belongsTo") {
|
|
65
65
|
macroCondition(getGlobalConfig().WarpDriveMirror.env.DEBUG) && ((test) => {
|