@sanity/cli 4.1.0 → 4.1.1-bump-pkg-utils.6

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.
@@ -5991,10 +5991,11 @@ function requireConf() {
5991
5991
  }
5992
5992
  function deserializeEnvVal(envKey, envValue) {
5993
5993
  function deserializeList(envValue2) {
5994
- const npmConfigSep = `
5994
+ return envValue2.indexOf(`
5995
5995
 
5996
- `;
5997
- return envValue2.indexOf(npmConfigSep) ? envValue2.split(npmConfigSep) : envValue2.split(",");
5996
+ `) ? envValue2.split(`
5997
+
5998
+ `) : envValue2.split(",");
5998
5999
  }
5999
6000
  switch (envKey) {
6000
6001
  case "hoist-pattern":
@@ -6118,7 +6119,7 @@ function requireDefaults() {
6118
6119
  searchopts: "",
6119
6120
  searchexclude: null,
6120
6121
  searchlimit: 20,
6121
- searchstaleness: 15 * 60,
6122
+ searchstaleness: 900,
6122
6123
  "send-metrics": !1,
6123
6124
  shell: osenv.shell(),
6124
6125
  shrinkwrap: !0,
@@ -19881,7 +19882,7 @@ function requireUtils$2() {
19881
19882
  exports2.isInteger = (num) => typeof num == "number" ? Number.isInteger(num) : typeof num == "string" && num.trim() !== "" ? Number.isInteger(Number(num)) : !1, exports2.find = (node, type2) => node.nodes.find((node2) => node2.type === type2), exports2.exceedsLimit = (min2, max2, step = 1, limit) => limit === !1 || !exports2.isInteger(min2) || !exports2.isInteger(max2) ? !1 : (Number(max2) - Number(min2)) / Number(step) >= limit, exports2.escapeNode = (block, n = 0, type2) => {
19882
19883
  const node = block.nodes[n];
19883
19884
  node && (type2 && node.type === type2 || node.type === "open" || node.type === "close") && node.escaped !== !0 && (node.value = "\\" + node.value, node.escaped = !0);
19884
- }, exports2.encloseBrace = (node) => node.type !== "brace" || node.commas >> 0 + node.ranges >> 0 ? !1 : (node.invalid = !0, !0), exports2.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : !(block.commas >> 0 + block.ranges >> 0) || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1, exports2.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0, exports2.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []), exports2.flatten = (...args) => {
19885
+ }, exports2.encloseBrace = (node) => node.type !== "brace" ? !1 : node.commas >> 0 + node.ranges >> 0 === 0 ? (node.invalid = !0, !0) : !1, exports2.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : block.commas >> 0 + block.ranges >> 0 === 0 || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1, exports2.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0, exports2.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []), exports2.flatten = (...args) => {
19885
19886
  const result = [], flat = (arr) => {
19886
19887
  for (let i = 0; i < arr.length; i++) {
19887
19888
  const ele = arr[i];
@@ -25099,12 +25100,12 @@ function requireHeader() {
25099
25100
  const prefix = decString(buf, off + 345, 130);
25100
25101
  prefix && (this.path = prefix + "/" + this.path), this.atime = decDate(buf, off + 476, 12), this.ctime = decDate(buf, off + 488, 12);
25101
25102
  }
25102
- let sum = 8 * 32;
25103
+ let sum = 256;
25103
25104
  for (let i = off; i < off + 148; i++)
25104
25105
  sum += buf[i];
25105
25106
  for (let i = off + 156; i < off + 512; i++)
25106
25107
  sum += buf[i];
25107
- this.cksumValid = sum === this.cksum, this.cksum === null && sum === 8 * 32 && (this.nullBlock = !0);
25108
+ this.cksumValid = sum === this.cksum, this.cksum === null && sum === 256 && (this.nullBlock = !0);
25108
25109
  }
25109
25110
  [SLURP](ex, global2) {
25110
25111
  for (const k in ex)
@@ -25115,7 +25116,7 @@ function requireHeader() {
25115
25116
  throw new Error("need 512 bytes for header");
25116
25117
  const prefixSize = this.ctime || this.atime ? 130 : 155, split = splitPrefix(this.path || "", prefixSize), path2 = split[0], prefix = split[1];
25117
25118
  this.needPax = split[2], this.needPax = encString(buf, off, 100, path2) || this.needPax, this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax, this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax, this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax, this.needPax = encNumber(buf, off + 124, 12, this.size) || this.needPax, this.needPax = encDate(buf, off + 136, 12, this.mtime) || this.needPax, buf[off + 156] = this[TYPE].charCodeAt(0), this.needPax = encString(buf, off + 157, 100, this.linkpath) || this.needPax, buf.write("ustar\x0000", off + 257, 8), this.needPax = encString(buf, off + 265, 32, this.uname) || this.needPax, this.needPax = encString(buf, off + 297, 32, this.gname) || this.needPax, this.needPax = encNumber(buf, off + 329, 8, this.devmaj) || this.needPax, this.needPax = encNumber(buf, off + 337, 8, this.devmin) || this.needPax, this.needPax = encString(buf, off + 345, prefixSize, prefix) || this.needPax, buf[off + 475] !== 0 ? this.needPax = encString(buf, off + 345, 155, prefix) || this.needPax : (this.needPax = encString(buf, off + 345, 130, prefix) || this.needPax, this.needPax = encDate(buf, off + 476, 12, this.atime) || this.needPax, this.needPax = encDate(buf, off + 488, 12, this.ctime) || this.needPax);
25118
- let sum = 8 * 32;
25119
+ let sum = 256;
25119
25120
  for (let i = off; i < off + 148; i++)
25120
25121
  sum += buf[i];
25121
25122
  for (let i = off + 156; i < off + 512; i++)
@@ -51154,7 +51155,7 @@ class PathBase {
51154
51155
  * mutated.
51155
51156
  */
51156
51157
  async lstat() {
51157
- if (!(this.#type & ENOENT))
51158
+ if ((this.#type & ENOENT) === 0)
51158
51159
  try {
51159
51160
  return this.#applyStat(await this.#fs.promises.lstat(this.fullpath())), this;
51160
51161
  } catch (er) {
@@ -51165,7 +51166,7 @@ class PathBase {
51165
51166
  * synchronous {@link PathBase.lstat}
51166
51167
  */
51167
51168
  lstatSync() {
51168
- if (!(this.#type & ENOENT))
51169
+ if ((this.#type & ENOENT) === 0)
51169
51170
  try {
51170
51171
  return this.#applyStat(this.#fs.lstatSync(this.fullpath())), this;
51171
51172
  } catch (er) {
@@ -53857,9 +53858,8 @@ You can find your project on Sanity Manage \u2014 https://www.sanity.io/manage/p
53857
53858
  shouldPromptFor("nextjs-embed-studio") && (embeddedStudio = await promptForEmbeddedStudio(prompt2));
53858
53859
  let hasSrcFolder = !1;
53859
53860
  if (embeddedStudio) {
53860
- const appDir = "app";
53861
- let srcPath = path__default.default.join(workDir, appDir);
53862
- fs$1.existsSync(srcPath) || (srcPath = path__default.default.join(workDir, "src", appDir), hasSrcFolder = !0, fs$1.existsSync(srcPath) || await fs__default.default.mkdir(srcPath, { recursive: !0 }).catch(() => loadEnv.debug("Error creating folder %s", srcPath)));
53861
+ let srcPath = path__default.default.join(workDir, "app");
53862
+ fs$1.existsSync(srcPath) || (srcPath = path__default.default.join(workDir, "src", "app"), hasSrcFolder = !0, fs$1.existsSync(srcPath) || await fs__default.default.mkdir(srcPath, { recursive: !0 }).catch(() => loadEnv.debug("Error creating folder %s", srcPath)));
53863
53863
  const studioPath = unattended ? "/studio" : await promptForStudioPath(prompt2), embeddedStudioRouteFilePath = path__default.default.join(
53864
53864
  srcPath,
53865
53865
  `${studioPath}/`,
@@ -63982,7 +63982,7 @@ function requireUtf8() {
63982
63982
  det.fRawLength >= 3 && (input2[0] & 255) == 239 && (input2[1] & 255) == 187 && (input2[2] & 255) == 191 && (hasBOM = !0);
63983
63983
  for (var i = 0; i < det.fRawLength; i++) {
63984
63984
  var b = input2[i];
63985
- if (b & 128) {
63985
+ if ((b & 128) != 0) {
63986
63986
  if ((b & 224) == 192)
63987
63987
  trailBytes = 1;
63988
63988
  else if ((b & 240) == 224)