gt-sanity 4.0.27 → 4.0.28
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 +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/configuration/baseDocumentLevelConfig/{documentLevelPatch.test.ts → __tests__/documentLevelPatch.test.ts} +2 -2
- package/src/configuration/baseDocumentLevelConfig/helpers/{patchI18nDoc.test.ts → __tests__/patchI18nDoc.test.ts} +32 -2
- package/src/configuration/baseDocumentLevelConfig/helpers/patchI18nDoc.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -530,7 +530,7 @@ const getOrCreateTranslationMetadata = async (documentId, baseDocument, client,
|
|
|
530
530
|
return metadata;
|
|
531
531
|
throw error;
|
|
532
532
|
}
|
|
533
|
-
}, SYSTEM_FIELDS = ["_id", "_rev", "_updatedAt", "language"], isSystemField = (field) => SYSTEM_FIELDS.includes(field);
|
|
533
|
+
}, SYSTEM_FIELDS = ["_id", "_rev", "_updatedAt", "language"], isSystemField = (field) => SYSTEM_FIELDS.includes(field) || field === pluginConfig.getLanguageField();
|
|
534
534
|
async function patchI18nDoc(sourceDocumentId, i18nDocId, sourceDocument, mergedDocument, translatedFields, client, existingDocument) {
|
|
535
535
|
const cleanedMerge = {};
|
|
536
536
|
Object.entries(mergedDocument).forEach(([key, value]) => {
|
|
@@ -2917,7 +2917,7 @@ const useTranslations = () => {
|
|
|
2917
2917
|
] }) })
|
|
2918
2918
|
}
|
|
2919
2919
|
) : null;
|
|
2920
|
-
var version = "4.0.
|
|
2920
|
+
var version = "4.0.28";
|
|
2921
2921
|
function buildDebugInfo({
|
|
2922
2922
|
secrets,
|
|
2923
2923
|
preferences,
|