@sanity/client 7.9.0 → 7.10.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 +4 -4
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +12 -4
- package/dist/index.browser.d.ts +12 -4
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +12 -4
- package/dist/stega.browser.d.ts +12 -4
- package/dist/stega.d.cts +12 -4
- package/dist/stega.d.ts +12 -4
- package/package.json +1 -1
- package/src/projects/ProjectsClient.ts +36 -9
- package/umd/sanityClient.js +4 -4
- package/umd/sanityClient.min.js +2 -2
package/dist/index.browser.cjs
CHANGED
|
@@ -1623,8 +1623,8 @@ class ObservableProjectsClient {
|
|
|
1623
1623
|
this.#client = client, this.#httpRequest = httpRequest;
|
|
1624
1624
|
}
|
|
1625
1625
|
list(options) {
|
|
1626
|
-
const
|
|
1627
|
-
return _request(this.#client, this.#httpRequest, { uri });
|
|
1626
|
+
const query = {}, uri = "/projects";
|
|
1627
|
+
return options?.includeMembers === !1 && (query.includeMembers = "false"), options?.organizationId && (query.organizationId = options.organizationId), _request(this.#client, this.#httpRequest, { uri, query });
|
|
1628
1628
|
}
|
|
1629
1629
|
/**
|
|
1630
1630
|
* Fetch a project by project ID
|
|
@@ -1642,8 +1642,8 @@ class ProjectsClient {
|
|
|
1642
1642
|
this.#client = client, this.#httpRequest = httpRequest;
|
|
1643
1643
|
}
|
|
1644
1644
|
list(options) {
|
|
1645
|
-
const
|
|
1646
|
-
return rxjs.lastValueFrom(_request(this.#client, this.#httpRequest, { uri }));
|
|
1645
|
+
const query = {}, uri = "/projects";
|
|
1646
|
+
return options?.includeMembers === !1 && (query.includeMembers = "false"), options?.organizationId && (query.organizationId = options.organizationId), rxjs.lastValueFrom(_request(this.#client, this.#httpRequest, { uri, query }));
|
|
1647
1647
|
}
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Fetch a project by project ID
|