@sanity/client 6.2.0 → 6.3.0

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.
package/dist/index.cjs CHANGED
@@ -8,7 +8,7 @@ var getIt = require('get-it');
8
8
  var rxjs = require('rxjs');
9
9
  var operators = require('rxjs/operators');
10
10
  var name = "@sanity/client";
11
- var version = "6.2.0";
11
+ var version = "6.3.0";
12
12
  const middleware = [middleware$1.debug({
13
13
  verbose: true,
14
14
  namespace: "sanity:client"
@@ -1468,12 +1468,10 @@ class ObservableProjectsClient {
1468
1468
  __privateSet$2(this, _client$1, client);
1469
1469
  __privateSet$2(this, _httpRequest$2, httpRequest);
1470
1470
  }
1471
- /**
1472
- * Fetch a list of projects the authenticated user has access to
1473
- */
1474
- list() {
1471
+ list(options) {
1472
+ const uri = (options == null ? void 0 : options.includeMembers) === false ? "/projects?includeMembers=false" : "/projects";
1475
1473
  return _request(__privateGet$2(this, _client$1), __privateGet$2(this, _httpRequest$2), {
1476
- uri: "/projects"
1474
+ uri
1477
1475
  });
1478
1476
  }
1479
1477
  /**
@@ -1496,12 +1494,10 @@ class ProjectsClient {
1496
1494
  __privateSet$2(this, _client2$1, client);
1497
1495
  __privateSet$2(this, _httpRequest2$2, httpRequest);
1498
1496
  }
1499
- /**
1500
- * Fetch a list of projects the authenticated user has access to
1501
- */
1502
- list() {
1497
+ list(options) {
1498
+ const uri = (options == null ? void 0 : options.includeMembers) === false ? "/projects?includeMembers=false" : "/projects";
1503
1499
  return rxjs.lastValueFrom(_request(__privateGet$2(this, _client2$1), __privateGet$2(this, _httpRequest2$2), {
1504
- uri: "/projects"
1500
+ uri
1505
1501
  }));
1506
1502
  }
1507
1503
  /**