@fourlights/strapi-plugin-deep-populate 1.11.1-rc.0 → 1.11.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/dist/server/index.js +7 -11
- package/dist/server/index.mjs +7 -11
- package/package.json +13 -13
package/dist/server/index.js
CHANGED
|
@@ -18508,7 +18508,7 @@ const register = async ({ strapi: strapi2 }) => {
|
|
|
18508
18508
|
return result;
|
|
18509
18509
|
});
|
|
18510
18510
|
};
|
|
18511
|
-
const version = "1.11.1
|
|
18511
|
+
const version = "1.11.1";
|
|
18512
18512
|
const name = "@fourlights/strapi-plugin-deep-populate";
|
|
18513
18513
|
const error = (msg, context = void 0) => strapi.log.error(`[${name}] ${msg}`, context);
|
|
18514
18514
|
const warn = (msg, context = void 0) => strapi.log.warn(`[${name}] ${msg}`, context);
|
|
@@ -18643,15 +18643,10 @@ async function _populateComponent({
|
|
|
18643
18643
|
}) {
|
|
18644
18644
|
const componentLookup = lookup.length === 0 ? [attrName] : [...lookup, inDynamicZone ? "on" : "populate", attrName];
|
|
18645
18645
|
if (strapi.getModel(schema2) === void 0) {
|
|
18646
|
-
|
|
18647
|
-
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
{ lookup }
|
|
18651
|
-
);
|
|
18652
|
-
} else {
|
|
18653
|
-
log.warn(`[Plugin: Deep Populate] Could not find component: '${schema2}'`);
|
|
18654
|
-
}
|
|
18646
|
+
log.warn(
|
|
18647
|
+
inDynamicZone ? `The dynamic zone '${lookup[lookup.length - 1]}' is referencing a non-existing component '${schema2}'. You should fix this.` : `Could not find component: '${schema2}'`,
|
|
18648
|
+
{ lookup }
|
|
18649
|
+
);
|
|
18655
18650
|
return true;
|
|
18656
18651
|
}
|
|
18657
18652
|
const componentPopulate = populate2;
|
|
@@ -18775,7 +18770,8 @@ async function _populate({
|
|
|
18775
18770
|
const newPopulate = {};
|
|
18776
18771
|
const model = strapi.getModel(schema2);
|
|
18777
18772
|
if (!model) {
|
|
18778
|
-
log.warn(`Could not find model for contentType: '${schema2}'`);
|
|
18773
|
+
strapi.log.warn(`[Plugin: Deep Populate] Could not find model for contentType: '${schema2}'`);
|
|
18774
|
+
strapi.log.warn("Please create a bug report and share the troublesome contentType.");
|
|
18779
18775
|
return {};
|
|
18780
18776
|
}
|
|
18781
18777
|
let relations = getRelations(model);
|
package/dist/server/index.mjs
CHANGED
|
@@ -18480,7 +18480,7 @@ const register = async ({ strapi: strapi2 }) => {
|
|
|
18480
18480
|
return result;
|
|
18481
18481
|
});
|
|
18482
18482
|
};
|
|
18483
|
-
const version = "1.11.1
|
|
18483
|
+
const version = "1.11.1";
|
|
18484
18484
|
const name = "@fourlights/strapi-plugin-deep-populate";
|
|
18485
18485
|
const error = (msg, context = void 0) => strapi.log.error(`[${name}] ${msg}`, context);
|
|
18486
18486
|
const warn = (msg, context = void 0) => strapi.log.warn(`[${name}] ${msg}`, context);
|
|
@@ -18615,15 +18615,10 @@ async function _populateComponent({
|
|
|
18615
18615
|
}) {
|
|
18616
18616
|
const componentLookup = lookup.length === 0 ? [attrName] : [...lookup, inDynamicZone ? "on" : "populate", attrName];
|
|
18617
18617
|
if (strapi.getModel(schema2) === void 0) {
|
|
18618
|
-
|
|
18619
|
-
|
|
18620
|
-
|
|
18621
|
-
|
|
18622
|
-
{ lookup }
|
|
18623
|
-
);
|
|
18624
|
-
} else {
|
|
18625
|
-
log.warn(`[Plugin: Deep Populate] Could not find component: '${schema2}'`);
|
|
18626
|
-
}
|
|
18618
|
+
log.warn(
|
|
18619
|
+
inDynamicZone ? `The dynamic zone '${lookup[lookup.length - 1]}' is referencing a non-existing component '${schema2}'. You should fix this.` : `Could not find component: '${schema2}'`,
|
|
18620
|
+
{ lookup }
|
|
18621
|
+
);
|
|
18627
18622
|
return true;
|
|
18628
18623
|
}
|
|
18629
18624
|
const componentPopulate = populate2;
|
|
@@ -18747,7 +18742,8 @@ async function _populate({
|
|
|
18747
18742
|
const newPopulate = {};
|
|
18748
18743
|
const model = strapi.getModel(schema2);
|
|
18749
18744
|
if (!model) {
|
|
18750
|
-
log.warn(`Could not find model for contentType: '${schema2}'`);
|
|
18745
|
+
strapi.log.warn(`[Plugin: Deep Populate] Could not find model for contentType: '${schema2}'`);
|
|
18746
|
+
strapi.log.warn("Please create a bug report and share the troublesome contentType.");
|
|
18751
18747
|
return {};
|
|
18752
18748
|
}
|
|
18753
18749
|
let relations = getRelations(model);
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.11.1
|
|
2
|
+
"version": "1.11.1",
|
|
3
3
|
"keywords": [
|
|
4
4
|
"strapi",
|
|
5
5
|
"strapi-plugin",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"verify": "strapi-plugin verify",
|
|
28
28
|
"test": "npm-run-all --parallel test:*",
|
|
29
29
|
"test:ts:back": "tsc -p server/tsconfig.json",
|
|
30
|
-
"test:integration": "vitest
|
|
30
|
+
"test:integration": "vitest",
|
|
31
31
|
"ci": "biome ci server",
|
|
32
32
|
"release": "release-it",
|
|
33
33
|
"playground:install": "cd playground && $npm_execpath install"
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"lodash": "^4.17.21"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@biomejs/biome": "^2.
|
|
40
|
-
"@strapi/database": "^5.
|
|
39
|
+
"@biomejs/biome": "^2.3.6",
|
|
40
|
+
"@strapi/database": "^5.31.0",
|
|
41
41
|
"@strapi/sdk-plugin": "^5.3.2",
|
|
42
|
-
"@strapi/strapi": "^5.
|
|
43
|
-
"@strapi/typescript-utils": "^5.
|
|
44
|
-
"@strapi/utils": "^5.
|
|
42
|
+
"@strapi/strapi": "^5.31.0",
|
|
43
|
+
"@strapi/typescript-utils": "^5.31.0",
|
|
44
|
+
"@strapi/utils": "^5.31.0",
|
|
45
45
|
"@types/supertest": "^6.0.3",
|
|
46
46
|
"better-sqlite3": "^12.4.1",
|
|
47
47
|
"npm-run-all": "^4.1.5",
|
|
48
|
-
"release-it": "^19.0.
|
|
49
|
-
"simple-git": "^3.
|
|
48
|
+
"release-it": "^19.0.6",
|
|
49
|
+
"simple-git": "^3.30.0",
|
|
50
50
|
"supertest": "^7.1.4",
|
|
51
51
|
"ts-node": "^10.9.2",
|
|
52
|
-
"typescript": "^5.9.
|
|
53
|
-
"vite": "^7.
|
|
54
|
-
"vitest": "^
|
|
52
|
+
"typescript": "^5.9.3",
|
|
53
|
+
"vite": "^7.2.2",
|
|
54
|
+
"vitest": "^4.0.10"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@strapi/sdk-plugin": "^5",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"overrides": {
|
|
61
61
|
"vite": "$vite",
|
|
62
|
-
"esbuild": "
|
|
62
|
+
"esbuild": "0.27.0"
|
|
63
63
|
},
|
|
64
64
|
"strapi": {
|
|
65
65
|
"kind": "plugin",
|