strapi-plugin-populate-all 1.0.0 → 1.0.2
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 -0
- package/dist/server/index.mjs +3 -0
- package/package.json +6 -6
package/dist/server/index.js
CHANGED
|
@@ -57,6 +57,9 @@ const getPopulateQuery = (modelUid) => {
|
|
|
57
57
|
continue;
|
|
58
58
|
}
|
|
59
59
|
if (attribute.type === "relation") {
|
|
60
|
+
if (attribute.private === true) {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
60
63
|
const relations = strapi.plugin("populate-all").config("relations");
|
|
61
64
|
strapi.log.debug(`[populate-all] relations to populate ${JSON.stringify(relations)}`);
|
|
62
65
|
if (relations === true) {
|
package/dist/server/index.mjs
CHANGED
|
@@ -56,6 +56,9 @@ const getPopulateQuery = (modelUid) => {
|
|
|
56
56
|
continue;
|
|
57
57
|
}
|
|
58
58
|
if (attribute.type === "relation") {
|
|
59
|
+
if (attribute.private === true) {
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
59
62
|
const relations = strapi.plugin("populate-all").config("relations");
|
|
60
63
|
strapi.log.debug(`[populate-all] relations to populate ${JSON.stringify(relations)}`);
|
|
61
64
|
if (relations === true) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.2",
|
|
3
3
|
"name": "strapi-plugin-populate-all",
|
|
4
4
|
"description": "A lightweight plugin to recursively populate nested data in RESTful API requests",
|
|
5
5
|
"keywords": [],
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@strapi/strapi": "^5
|
|
46
|
-
"@strapi/sdk-plugin": "^5
|
|
45
|
+
"@strapi/strapi": "^5",
|
|
46
|
+
"@strapi/sdk-plugin": "^5",
|
|
47
47
|
"prettier": "^3.5.3",
|
|
48
|
-
"@strapi/typescript-utils": "^5
|
|
48
|
+
"@strapi/typescript-utils": "^5",
|
|
49
49
|
"typescript": "^5.8.3"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@strapi/strapi": "^5
|
|
53
|
-
"@strapi/sdk-plugin": "^5
|
|
52
|
+
"@strapi/strapi": "^5",
|
|
53
|
+
"@strapi/sdk-plugin": "^5"
|
|
54
54
|
}
|
|
55
55
|
}
|