@sanity/cli 5.3.0-next.17 → 5.3.0-next.19

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.
@@ -23470,7 +23470,7 @@ function isGithubRepoShorthand(value) {
23470
23470
  return URL.canParse(value) ? !1 : /^[\w-]+\/[\w-.]+(\/[@\w-.]+)*$/.test(value);
23471
23471
  }
23472
23472
  function isGithubRepoUrl(value) {
23473
- if (URL.canParse(value) === !1)
23473
+ if (!URL.canParse(value))
23474
23474
  return !1;
23475
23475
  const url = new URL(value), pathSegments = url.pathname.slice(1).split("/");
23476
23476
  return url.protocol === "https:" && url.hostname === "github.com" && // The pathname must have at least 2 segments. If it has more than 2, the
@@ -39648,7 +39648,7 @@ async function bootstrapRemoteTemplate(opts, context) {
39648
39648
  fs: new distExports.LocalFileSystemDetector(packagePath),
39649
39649
  frameworkList: frameworksExports.frameworks
39650
39650
  }), port = getDefaultPortForFramework(packageFramework?.slug);
39651
- corsAdded.includes(port) === !1 && (getCliConfig.debug("Setting CORS origin to http://localhost:%d", port), await setCorsOrigin(`http://localhost:${port}`, variables.projectId, apiClient), corsAdded.push(port)), getCliConfig.debug("Applying environment variables to %s", pkg);
39651
+ corsAdded.includes(port) && (getCliConfig.debug("Setting CORS origin to http://localhost:%d", port), await setCorsOrigin(`http://localhost:${port}`, variables.projectId, apiClient), corsAdded.push(port)), getCliConfig.debug("Applying environment variables to %s", pkg);
39652
39652
  const envName = packageFramework?.slug === "nextjs" ? ".env.local" : ".env";
39653
39653
  await applyEnvVariables(packagePath, { ...variables, readToken, writeToken }, envName);
39654
39654
  }