@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.cjs
CHANGED
|
@@ -1452,8 +1452,8 @@ class ObservableProjectsClient {
|
|
|
1452
1452
|
this.#client = client, this.#httpRequest = httpRequest;
|
|
1453
1453
|
}
|
|
1454
1454
|
list(options) {
|
|
1455
|
-
const
|
|
1456
|
-
return _request(this.#client, this.#httpRequest, { uri });
|
|
1455
|
+
const query = {}, uri = "/projects";
|
|
1456
|
+
return options?.includeMembers === !1 && (query.includeMembers = "false"), options?.organizationId && (query.organizationId = options.organizationId), _request(this.#client, this.#httpRequest, { uri, query });
|
|
1457
1457
|
}
|
|
1458
1458
|
/**
|
|
1459
1459
|
* Fetch a project by project ID
|
|
@@ -1471,8 +1471,8 @@ class ProjectsClient {
|
|
|
1471
1471
|
this.#client = client, this.#httpRequest = httpRequest;
|
|
1472
1472
|
}
|
|
1473
1473
|
list(options) {
|
|
1474
|
-
const
|
|
1475
|
-
return rxjs.lastValueFrom(_request(this.#client, this.#httpRequest, { uri }));
|
|
1474
|
+
const query = {}, uri = "/projects";
|
|
1475
|
+
return options?.includeMembers === !1 && (query.includeMembers = "false"), options?.organizationId && (query.organizationId = options.organizationId), rxjs.lastValueFrom(_request(this.#client, this.#httpRequest, { uri, query }));
|
|
1476
1476
|
}
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Fetch a project by project ID
|
|
@@ -2578,7 +2578,7 @@ function defineDeprecatedCreateClient(createClient2) {
|
|
|
2578
2578
|
return config.printNoDefaultExport(), createClient2(config$1);
|
|
2579
2579
|
};
|
|
2580
2580
|
}
|
|
2581
|
-
var name = "@sanity/client", version = "7.
|
|
2581
|
+
var name = "@sanity/client", version = "7.10.0";
|
|
2582
2582
|
const middleware = [
|
|
2583
2583
|
middleware$1.debug({ verbose: !0, namespace: "sanity:client" }),
|
|
2584
2584
|
middleware$1.headers({ "User-Agent": `${name} ${version}` }),
|