strapi-utils
Advanced tools
Comparing version 3.5.0-next.3 to 3.5.0
@@ -72,7 +72,12 @@ 'use strict'; | ||
if (relation === '*') { | ||
sanitizeFn = entity => | ||
sanitizeEntity(entity, { | ||
sanitizeFn = entity => { | ||
if (_.isNil(entity) || !_.has(entity, '__contentType')) { | ||
return entity; | ||
} | ||
return sanitizeEntity(entity, { | ||
model: strapi.db.getModelByGlobalId(entity.__contentType), | ||
...baseOptions, | ||
}); | ||
}; | ||
} else { | ||
@@ -79,0 +84,0 @@ sanitizeFn = entity => |
{ | ||
"name": "strapi-utils", | ||
"version": "3.5.0-next.3", | ||
"version": "3.5.0", | ||
"description": "Shared utilities for the Strapi packages", | ||
@@ -48,3 +48,3 @@ "homepage": "https://strapi.io", | ||
"license": "SEE LICENSE IN LICENSE", | ||
"gitHead": "7102ebbcef1716b55f8a2ce8370f2cb1bd719a8a" | ||
"gitHead": "d02a7ba2fa6bdddc0a1fb3e85199cf36dd3d3eeb" | ||
} |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
58943
1698
0
1