sanity 5.25.1-next.2 → 5.25.1

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.
@@ -1,4 +1,4 @@
1
- var version = "5.25.1-next.2";
1
+ var version = "5.25.1";
2
2
  let buildVersion;
3
3
  try {
4
4
  buildVersion = process.env.PKG_BUILD_VERSION;
@@ -7,7 +7,7 @@ try {
7
7
  try {
8
8
  buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
9
9
  // and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
10
- "5.25.1-next.2";
10
+ "5.25.1";
11
11
  } catch {
12
12
  }
13
13
  const SANITY_VERSION = buildVersion || `${version}-dev`;
package/lib/index.js CHANGED
@@ -4823,9 +4823,12 @@ async function getProviders({
4823
4823
  }) {
4824
4824
  if (mode === "replace" && Array.isArray(customProviders))
4825
4825
  return customProviders;
4826
- const {
4826
+ const credentiallessClient = client.withConfig({
4827
+ token: void 0,
4828
+ withCredentials: !1
4829
+ }), {
4827
4830
  providers
4828
- } = await client.request({
4831
+ } = await credentiallessClient.request({
4829
4832
  uri: "/auth/providers"
4830
4833
  });
4831
4834
  return typeof customProviders == "function" ? customProviders(providers) : customProviders.length === 0 ? providers : mode === "replace" ? customProviders : providers.filter((official) => customProviders.some((provider) => provider.url !== official.url)).concat(customProviders);