strapi-utils
Advanced tools
Comparing version 3.1.4 to 3.1.5
@@ -14,6 +14,10 @@ 'use strict'; | ||
if (typeof data !== 'object') { | ||
if (typeof data !== 'object' || _.isNil(data)) { | ||
return data; | ||
} | ||
if (_.isArray(data)) { | ||
return data.map(entity => sanitizeEntity(entity, options)); | ||
} | ||
if (_.isNil(model)) { | ||
@@ -20,0 +24,0 @@ return null; |
{ | ||
"name": "strapi-utils", | ||
"version": "3.1.4", | ||
"version": "3.1.5", | ||
"description": "Shared utilities for the Strapi packages", | ||
@@ -44,7 +44,7 @@ "homepage": "http://strapi.io", | ||
"engines": { | ||
"node": ">=10.10.0", | ||
"node": ">=10.10.0 <13", | ||
"npm": ">=6.0.0" | ||
}, | ||
"license": "SEE LICENSE IN LICENSE", | ||
"gitHead": "231263a3535658bab1e9492c6aaaed8692d62a53" | ||
"gitHead": "736a580001cd6f0d94ff2d5a930554f6d42e0477" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
124495
38
2810