Socket
Socket
Sign inDemoInstall

strapi-utils

Package Overview
Dependencies
6
Maintainers
8
Versions
282
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.0-next.3 to 3.5.0

9

lib/sanitize-entity.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc