@strapi/utils 4.7.0-exp.3d6a31eb083e9d44afcf98f68c107fb7567e5720 → 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.
@@ -99,8 +99,8 @@ const getPrivateAttributes = (model = {}) => {
99
99
  );
100
100
  };
101
101
 
102
- const isPrivateAttribute = (model = {}, attributeName) => {
103
- return model && model.privateAttributes && model.privateAttributes.includes(attributeName);
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.0-exp.3d6a31eb083e9d44afcf98f68c107fb7567e5720",
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": "3d6a31eb083e9d44afcf98f68c107fb7567e5720"
49
+ "gitHead": "0307fb4bf7b006c4cd902412967d3987d7810ed8"
50
50
  }