@fourlights/strapi-plugin-deep-populate 1.0.1 → 1.1.0
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/dist/server/index.js +3 -1
- package/dist/server/index.mjs +3 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -25061,7 +25061,9 @@ const getRelations = (model) => {
|
|
|
25061
25061
|
...contentTypes.getRelationalAttributes(model).filter((attr) => !filteredAttributes.has(attr)),
|
|
25062
25062
|
...contentTypes.getComponentAttributes(model).filter((attr) => !filteredAttributes.has(attr))
|
|
25063
25063
|
]);
|
|
25064
|
-
return Object.entries(model.attributes).filter(
|
|
25064
|
+
return Object.entries(model.attributes).filter(
|
|
25065
|
+
([attrName, attr]) => relationalAttributes.has(attrName) || contentTypes.isMediaAttribute(attr)
|
|
25066
|
+
);
|
|
25065
25067
|
};
|
|
25066
25068
|
const isEmpty = (obj) => {
|
|
25067
25069
|
return obj === void 0 || Object.keys(obj).length === 0;
|
package/dist/server/index.mjs
CHANGED
|
@@ -25047,7 +25047,9 @@ const getRelations = (model) => {
|
|
|
25047
25047
|
...contentTypes.getRelationalAttributes(model).filter((attr) => !filteredAttributes.has(attr)),
|
|
25048
25048
|
...contentTypes.getComponentAttributes(model).filter((attr) => !filteredAttributes.has(attr))
|
|
25049
25049
|
]);
|
|
25050
|
-
return Object.entries(model.attributes).filter(
|
|
25050
|
+
return Object.entries(model.attributes).filter(
|
|
25051
|
+
([attrName, attr]) => relationalAttributes.has(attrName) || contentTypes.isMediaAttribute(attr)
|
|
25052
|
+
);
|
|
25051
25053
|
};
|
|
25052
25054
|
const isEmpty = (obj) => {
|
|
25053
25055
|
return obj === void 0 || Object.keys(obj).length === 0;
|
package/package.json
CHANGED