@sanity/schema
Advanced tools
Comparing version 0.113.5 to 0.113.7
@@ -33,6 +33,6 @@ 'use strict'; | ||
}); | ||
}); | ||
} | ||
// None of the candidates were found, fallback to all fields | ||
if (candidates.length === 0) { | ||
);if (candidates.length === 0) { | ||
candidates = objectTypeDef.fields.filter(isPrimitive).map(function (field) { | ||
@@ -39,0 +39,0 @@ return field.name; |
@@ -73,6 +73,6 @@ 'use strict'; | ||
return field.name; | ||
}); | ||
} | ||
// Check if we have fields with names that is listed in candidate fields | ||
var titleField = TITLE_CANDIDATES.find(function (candidate) { | ||
);var titleField = TITLE_CANDIDATES.find(function (candidate) { | ||
return stringFieldNames.includes(candidate); | ||
@@ -79,0 +79,0 @@ }); |
@@ -89,3 +89,4 @@ 'use strict'; | ||
return TypeOfTypeOfPerson.extend({ name: 'lol', of: [] }); | ||
}, /Cannot override `of` property of subtypes of "array"/); | ||
// console.log('TypeOfTypeOfPerson', TypeOfTypeOfPerson.get()) | ||
}, /Cannot override `of` property of subtypes of "array"/ | ||
// console.log('TypeOfTypeOfPerson', TypeOfTypeOfPerson.get()) | ||
); |
@@ -131,5 +131,5 @@ 'use strict'; | ||
} | ||
fieldset.fields.push(field); | ||
fieldset.fields.push(field | ||
// Return the fieldset if its the first time we encounter a field in this fieldset | ||
return fieldset.fields.length === 1 ? fieldset : null; | ||
);return fieldset.fields.length === 1 ? fieldset : null; | ||
} | ||
@@ -136,0 +136,0 @@ return { single: true, field: field }; |
{ | ||
"name": "@sanity/schema", | ||
"version": "0.113.5", | ||
"version": "0.113.7", | ||
"description": "", | ||
@@ -35,3 +35,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@sanity/generate-help-url": "^0.113.3", | ||
"@sanity/generate-help-url": "^0.113.7", | ||
"arrify": "^1.0.1", | ||
@@ -38,0 +38,0 @@ "lodash": "^4.17.4" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1719
149954