gt-sanity 2.0.13 → 2.0.14

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.js CHANGED
@@ -391,7 +391,7 @@ const defaultStopTypes = [
391
391
  const filteredObj = { _type: obj._type }, fieldFilterFunc = (field) => field.localize === !1 ? !1 : field.type === "string" || field.type === "text" || Array.isArray(obj[field.name]) ? !0 : !stopTypes.includes(field.type);
392
392
  return [
393
393
  ...META_FIELDS$1,
394
- ...objFields?.filter(fieldFilterFunc)?.map((field) => field.name)
394
+ ...objFields.filter(fieldFilterFunc).map((field) => field.name)
395
395
  ].forEach((field) => {
396
396
  obj[field] && (filteredObj[field] = obj[field]);
397
397
  }), filteredObj;
@@ -1252,7 +1252,7 @@ async function publishTranslations(documentIds, client) {
1252
1252
  }
1253
1253
  ), publishedDocumentIds;
1254
1254
  }
1255
- const getLocales = async (secrets) => pluginConfig.getLocales().map((locale) => ({
1255
+ const getLocales = async (_secrets) => pluginConfig.getLocales().map((locale) => ({
1256
1256
  localeId: locale,
1257
1257
  description: gt.getLocaleProperties(locale).name,
1258
1258
  enabled: !0
@@ -1584,7 +1584,7 @@ const getLocales = async (secrets) => pluginConfig.getLocales().map((locale) =>
1584
1584
  downloadStatusRef.current,
1585
1585
  secrets
1586
1586
  );
1587
- setTranslationStatuses((prevStatuses) => {
1587
+ setTranslationStatuses(() => {
1588
1588
  const newStatuses = /* @__PURE__ */ new Map();
1589
1589
  for (const doc of documents)
1590
1590
  for (const localeId of availableLocaleIds) {