@sanity/client 8.6.0 → 8.6.2

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.
@@ -1,9 +1,9 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-4YWMqDIC.js";
2
- import { a as ServerError, c as isHttpError, i as CorsOriginError, l as isQueryParseError, o as formatQueryParseError, r as ClientError, t as defineRequester } from "./request-BzWeXkUo.js";
2
+ import { a as ServerError, c as isHttpError, i as CorsOriginError, l as isQueryParseError, o as formatQueryParseError, r as ClientError, t as defineRequester } from "./request-DXOkY5MQ.js";
3
3
  import { t as isRecord } from "./isRecord-Kfmt-nk-.js";
4
4
  import { t as require_dist } from "./dist-C5K_YcEU.js";
5
- import { anySignal } from "any-signal";
6
5
  import { isTimeoutError } from "get-it";
6
+ import { anySignal } from "get-it/any-signal";
7
7
  import { debug } from "get-it/middleware";
8
8
  import { Observable, catchError, concat, defer, finalize, isObservable, lastValueFrom, map, merge, mergeMap, of, share, tap, throwError, timer } from "rxjs";
9
9
  import { getDraftId, getPublishedId, getVersionFromId, getVersionId, isDraftId, isVersionId } from "@sanity/client/csm";
@@ -1506,7 +1506,7 @@ function _upload(client, _httpRequest, assetType, body, opts = {}) {
1506
1506
  body
1507
1507
  };
1508
1508
  return typeof XMLHttpRequest < "u" ? defer(async () => {
1509
- let { uploadWithProgress } = await import("./browserUpload-D3ST_REr.js"), req = _prepareRequest(client, { ...baseRequest });
1509
+ let { uploadWithProgress } = await import("./browserUpload-QxCD0Hp6.js"), req = _prepareRequest(client, { ...baseRequest });
1510
1510
  return uploadWithProgress({
1511
1511
  url: appendQuery(req.url, req.query),
1512
1512
  method: req.method ?? "POST",
@@ -4506,7 +4506,7 @@ function defineDeprecatedCreateClient(createClient) {
4506
4506
  return printNoDefaultExport(), createClient(config);
4507
4507
  };
4508
4508
  }
4509
- var name = "@sanity/client", version = "8.6.0";
4509
+ var name = "@sanity/client", version = "8.6.2";
4510
4510
  const log = createDebug("sanity:client");
4511
4511
  function isNodeReadableStream(value) {
4512
4512
  return typeof value != "object" || !value || !("pipe" in value) ? !1 : typeof value.pipe == "function";