UNPKG

@sanity/client

Version:

Client for retrieving, creating and patching data from Sanity.io

21 lines (20 loc) 780 B
import { t as w } from "./dist-Z8cIRxoB.js"; /** * Can take a `result` JSON from a `const {result} = client.fetch(query, params, {filterResponse: false})` * and remove all stega-encoded data from it. * If the result type has strings branded as `StegaString` (by `ClientReturnStega` or `stegaBrand()`), * the brand is stripped and the original string type is restored. * @public */ function stegaClean(result) { return w(result); } /** * Can take a `result` JSON from a `const {result} = client.fetch(query, params, {filterResponse: false})` * and remove all stega-encoded data from it. * @alpha * @deprecated Use `stegaClean` instead */ const vercelStegaCleanAll = stegaClean; export { vercelStegaCleanAll as n, stegaClean as t }; //# sourceMappingURL=stegaClean-C18wLWau.js.map