@opentermsarchive/engine 0.30.0 → 0.30.1
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/package.json
CHANGED
|
@@ -78,6 +78,10 @@ export default async options => {
|
|
|
78
78
|
if (!schemaOnly && service) {
|
|
79
79
|
service.getTermsTypes()
|
|
80
80
|
.filter(termsType => {
|
|
81
|
+
if (!service.terms[termsType]?.latest) { // If this terms type has been deleted and there is only a historical record for it, but no current valid declaration
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
|
|
81
85
|
if (servicesTermsTypes[serviceId] && servicesTermsTypes[serviceId].length > 0) {
|
|
82
86
|
return servicesTermsTypes[serviceId].includes(termsType);
|
|
83
87
|
}
|