@strapi/utils 4.7.0 → 4.7.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/lib/content-types.js +2 -2
- package/package.json +2 -2
package/lib/content-types.js
CHANGED
|
@@ -99,8 +99,8 @@ const getPrivateAttributes = (model = {}) => {
|
|
|
99
99
|
);
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
const isPrivateAttribute = (model
|
|
103
|
-
return model
|
|
102
|
+
const isPrivateAttribute = (model, attributeName) => {
|
|
103
|
+
return model?.privateAttributes?.includes(attributeName) ?? false;
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
const isScalarAttribute = (attribute) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/utils",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.1",
|
|
4
4
|
"description": "Shared utilities for the Strapi packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"node": ">=14.19.1 <=18.x.x",
|
|
47
47
|
"npm": ">=6.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "0307fb4bf7b006c4cd902412967d3987d7810ed8"
|
|
50
50
|
}
|