@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.browser.cjs +6 -10
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +6 -10
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +7 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -4
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/projects/ProjectsClient.ts +20 -8
- package/umd/sanityClient.js +6 -10
- package/umd/sanityClient.min.js +3 -3
package/dist/index.browser.js
CHANGED
|
@@ -1457,12 +1457,10 @@ class ObservableProjectsClient {
|
|
|
1457
1457
|
__privateSet$2(this, _client$1, client);
|
|
1458
1458
|
__privateSet$2(this, _httpRequest$2, httpRequest);
|
|
1459
1459
|
}
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
*/
|
|
1463
|
-
list() {
|
|
1460
|
+
list(options) {
|
|
1461
|
+
const uri = (options == null ? void 0 : options.includeMembers) === false ? "/projects?includeMembers=false" : "/projects";
|
|
1464
1462
|
return _request(__privateGet$2(this, _client$1), __privateGet$2(this, _httpRequest$2), {
|
|
1465
|
-
uri
|
|
1463
|
+
uri
|
|
1466
1464
|
});
|
|
1467
1465
|
}
|
|
1468
1466
|
/**
|
|
@@ -1485,12 +1483,10 @@ class ProjectsClient {
|
|
|
1485
1483
|
__privateSet$2(this, _client2$1, client);
|
|
1486
1484
|
__privateSet$2(this, _httpRequest2$2, httpRequest);
|
|
1487
1485
|
}
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
*/
|
|
1491
|
-
list() {
|
|
1486
|
+
list(options) {
|
|
1487
|
+
const uri = (options == null ? void 0 : options.includeMembers) === false ? "/projects?includeMembers=false" : "/projects";
|
|
1492
1488
|
return lastValueFrom(_request(__privateGet$2(this, _client2$1), __privateGet$2(this, _httpRequest2$2), {
|
|
1493
|
-
uri
|
|
1489
|
+
uri
|
|
1494
1490
|
}));
|
|
1495
1491
|
}
|
|
1496
1492
|
/**
|