@sanity/client 6.2.0 → 6.4.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 +20 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -4
- package/dist/index.js +21 -12
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/http/nodeMiddleware.ts +15 -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.cjs
CHANGED
|
@@ -1461,12 +1461,10 @@ class ObservableProjectsClient {
|
|
|
1461
1461
|
__privateSet$2(this, _client$1, client);
|
|
1462
1462
|
__privateSet$2(this, _httpRequest$2, httpRequest);
|
|
1463
1463
|
}
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
*/
|
|
1467
|
-
list() {
|
|
1464
|
+
list(options) {
|
|
1465
|
+
const uri = (options == null ? void 0 : options.includeMembers) === false ? "/projects?includeMembers=false" : "/projects";
|
|
1468
1466
|
return _request(__privateGet$2(this, _client$1), __privateGet$2(this, _httpRequest$2), {
|
|
1469
|
-
uri
|
|
1467
|
+
uri
|
|
1470
1468
|
});
|
|
1471
1469
|
}
|
|
1472
1470
|
/**
|
|
@@ -1489,12 +1487,10 @@ class ProjectsClient {
|
|
|
1489
1487
|
__privateSet$2(this, _client2$1, client);
|
|
1490
1488
|
__privateSet$2(this, _httpRequest2$2, httpRequest);
|
|
1491
1489
|
}
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
*/
|
|
1495
|
-
list() {
|
|
1490
|
+
list(options) {
|
|
1491
|
+
const uri = (options == null ? void 0 : options.includeMembers) === false ? "/projects?includeMembers=false" : "/projects";
|
|
1496
1492
|
return rxjs.lastValueFrom(_request(__privateGet$2(this, _client2$1), __privateGet$2(this, _httpRequest2$2), {
|
|
1497
|
-
uri
|
|
1493
|
+
uri
|
|
1498
1494
|
}));
|
|
1499
1495
|
}
|
|
1500
1496
|
/**
|