@contember/binding
Advanced tools
Comparing version 1.0.0-rc.0 to 1.0.0-rc.1
@@ -104,4 +104,8 @@ import { AccessorErrorManager } from './AccessorErrorManager.js'; | ||
const aliases = Object.keys(mutationData); | ||
const allSubMutationsOk = aliases.every((item) => mutationData[item].ok); | ||
if (allSubMutationsOk) { | ||
if (!mutationResponse.data) { | ||
throw { | ||
errors: mutationData.errors, | ||
type: "invalidResponse" | ||
}; | ||
} else if (aliases.every((item) => mutationData[item].ok)) { | ||
const persistedEntityIds = aliases.map((alias) => mutationData[alias].node?.id).filter((id) => id !== void 0); | ||
@@ -108,0 +112,0 @@ const result = { |
@@ -122,4 +122,8 @@ var __defProp = Object.defineProperty; | ||
const aliases = Object.keys(mutationData); | ||
const allSubMutationsOk = aliases.every((item) => mutationData[item].ok); | ||
if (allSubMutationsOk) { | ||
if (!mutationResponse.data) { | ||
throw { | ||
errors: mutationData.errors, | ||
type: "invalidResponse" | ||
}; | ||
} else if (aliases.every((item) => mutationData[item].ok)) { | ||
const persistedEntityIds = aliases.map((alias) => mutationData[alias].node?.id).filter((id) => id !== void 0); | ||
@@ -126,0 +130,0 @@ const result = { |
{ | ||
"name": "@contember/binding", | ||
"license": "Apache-2.0", | ||
"version": "1.0.0-rc.0", | ||
"version": "1.0.0-rc.1", | ||
"type": "module", | ||
@@ -21,6 +21,6 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@contember/client": "1.0.0-rc.0", | ||
"@contember/react-client": "1.0.0-rc.0", | ||
"@contember/react-multipass-rendering": "1.0.0-rc.0", | ||
"@contember/react-utils": "1.0.0-rc.0", | ||
"@contember/client": "1.0.0-rc.1", | ||
"@contember/react-client": "1.0.0-rc.1", | ||
"@contember/react-multipass-rendering": "1.0.0-rc.1", | ||
"@contember/react-utils": "1.0.0-rc.1", | ||
"chevrotain": "6.5.0", | ||
@@ -27,0 +27,0 @@ "js-levenshtein": "1.1.6", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2012712
18212
+ Added@contember/client@1.0.0-rc.1(transitive)
+ Added@contember/react-client@1.0.0-rc.1(transitive)
+ Added@contember/react-multipass-rendering@1.0.0-rc.1(transitive)
+ Added@contember/react-utils@1.0.0-rc.1(transitive)
- Removed@contember/client@1.0.0-rc.0(transitive)
- Removed@contember/react-client@1.0.0-rc.0(transitive)
- Removed@contember/react-multipass-rendering@1.0.0-rc.0(transitive)
- Removed@contember/react-utils@1.0.0-rc.0(transitive)
Updated@contember/client@1.0.0-rc.1