@sanity/client 6.24.0 → 6.24.1

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.
@@ -207,7 +207,7 @@ function validateApiVersion(apiVersion) {
207
207
  if (!(/^\d{4}-\d{2}-\d{2}$/.test(apiVersion) && apiDate instanceof Date && apiDate.getTime() > 0))
208
208
  throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`");
209
209
  }
210
- const validateApiPerspective = function(perspective) {
210
+ function validateApiPerspective(perspective) {
211
211
  if (Array.isArray(perspective)) {
212
212
  for (const perspectiveValue of perspective)
213
213
  if (perspectiveValue !== "published" && perspectiveValue !== "drafts" && !(typeof perspectiveValue == "string" && perspectiveValue.startsWith("r") && perspectiveValue !== "raw"))
@@ -227,7 +227,8 @@ const validateApiPerspective = function(perspective) {
227
227
  "Invalid API perspective string, expected `published`, `previewDrafts` or `raw`"
228
228
  );
229
229
  }
230
- }, initConfig = (config, prevConfig) => {
230
+ }
231
+ const initConfig = (config, prevConfig) => {
231
232
  const specifiedConfig = {
232
233
  ...prevConfig,
233
234
  ...config,