@sanity/client
Advanced tools
Comparing version 6.27.0 to 6.27.1
@@ -41,3 +41,3 @@ import { getVersionId, getDraftId, getPublishedId, walkMap, resolveMapping, parseJsonPath, toString, get, jsonPath, studioPathToJsonPath, resolveEditInfo, createEditUrl } from "./_chunks-es/resolveEditInfo.js"; | ||
if (!resultSourceMap) return result; | ||
const resolveDocument = createSourceDocumentResolver(getCachedDocument, perspective), cachedDocuments = resultSourceMap.documents.map(resolveDocument); | ||
const resolveDocument = createSourceDocumentResolver(getCachedDocument, perspective), cachedDocuments = resultSourceMap.documents?.map?.(resolveDocument) || []; | ||
return walkMap(JSON.parse(JSON.stringify(result)), (value, path) => { | ||
@@ -44,0 +44,0 @@ const resolveMappingResult = resolveMapping(path, resultSourceMap); |
@@ -1482,3 +1482,3 @@ import { getIt } from "get-it"; | ||
} | ||
var name = "@sanity/client", version = "6.27.0"; | ||
var name = "@sanity/client", version = "6.27.1"; | ||
const middleware = [ | ||
@@ -1485,0 +1485,0 @@ debug({ verbose: !0, namespace: "sanity:client" }), |
{ | ||
"name": "@sanity/client", | ||
"version": "6.27.0", | ||
"version": "6.27.1", | ||
"description": "Client for retrieving, creating and patching data from Sanity.io", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -36,3 +36,3 @@ import {createSourceDocumentResolver} from './createSourceDocumentResolver' | ||
const resolveDocument = createSourceDocumentResolver(getCachedDocument, perspective) | ||
const cachedDocuments = resultSourceMap.documents.map(resolveDocument) | ||
const cachedDocuments = resultSourceMap.documents?.map?.(resolveDocument) || [] | ||
@@ -39,0 +39,0 @@ return walkMap(JSON.parse(JSON.stringify(result)), (value, path) => { |
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
Sorry, the diff of this file is not supported yet
2779169