@swan-io/graphql-client
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -748,4 +748,8 @@ 'use strict'; | ||
const fieldValue = parentJson[originalFieldName]; | ||
if (!Array.isArray(parentCache)) { | ||
if (parentCache[REQUESTED_KEYS] != void 0) { | ||
parentCache[REQUESTED_KEYS].add(fieldNameWithArguments); | ||
} else { | ||
console.error( | ||
`GraphQL Client cache error: ${path.join(".")} likely didn't query its \`id\` field` | ||
); | ||
} | ||
@@ -759,2 +763,3 @@ const subSelectionSet = field.selectionSet; | ||
const arrayCache = (_a = parentCache[fieldNameWithArguments]) != null ? _a : Array(fieldValue.length); | ||
arrayCache.length = fieldValue.length; | ||
if (parentCache[fieldNameWithArguments] == void 0) { | ||
@@ -761,0 +766,0 @@ parentCache[fieldNameWithArguments] = arrayCache; |
{ | ||
"name": "@swan-io/graphql-client", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A simple, typesafe GraphQL client for React", |
Sorry, the diff of this file is not supported yet
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
328207
3227