@strapi/core 5.11.2 → 5.12.0-beta.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/index.js
CHANGED
@@ -312,7 +312,7 @@ const getDirs = ({ appDir, distDir }, config)=>({
|
|
312
312
|
});
|
313
313
|
|
314
314
|
var name = "@strapi/core";
|
315
|
-
var version = "5.
|
315
|
+
var version = "5.12.0-beta.1";
|
316
316
|
var description = "Core of Strapi";
|
317
317
|
var homepage = "https://strapi.io";
|
318
318
|
var bugs = {
|
@@ -368,14 +368,14 @@ var dependencies = {
|
|
368
368
|
"@koa/cors": "5.0.0",
|
369
369
|
"@koa/router": "12.0.2",
|
370
370
|
"@paralleldrive/cuid2": "2.2.2",
|
371
|
-
"@strapi/admin": "5.
|
372
|
-
"@strapi/database": "5.
|
373
|
-
"@strapi/generators": "5.
|
374
|
-
"@strapi/logger": "5.
|
375
|
-
"@strapi/permissions": "5.
|
376
|
-
"@strapi/types": "5.
|
377
|
-
"@strapi/typescript-utils": "5.
|
378
|
-
"@strapi/utils": "5.
|
371
|
+
"@strapi/admin": "5.12.0-beta.1",
|
372
|
+
"@strapi/database": "5.12.0-beta.1",
|
373
|
+
"@strapi/generators": "5.12.0-beta.1",
|
374
|
+
"@strapi/logger": "5.12.0-beta.1",
|
375
|
+
"@strapi/permissions": "5.12.0-beta.1",
|
376
|
+
"@strapi/types": "5.12.0-beta.1",
|
377
|
+
"@strapi/typescript-utils": "5.12.0-beta.1",
|
378
|
+
"@strapi/utils": "5.12.0-beta.1",
|
379
379
|
bcryptjs: "2.4.3",
|
380
380
|
boxen: "5.1.2",
|
381
381
|
chalk: "4.1.2",
|
@@ -438,9 +438,9 @@ var devDependencies = {
|
|
438
438
|
"@types/node": "18.19.24",
|
439
439
|
"@types/node-schedule": "2.1.7",
|
440
440
|
"@types/statuses": "2.0.1",
|
441
|
-
"eslint-config-custom": "5.
|
441
|
+
"eslint-config-custom": "5.12.0-beta.1",
|
442
442
|
supertest: "6.3.3",
|
443
|
-
tsconfig: "5.
|
443
|
+
tsconfig: "5.12.0-beta.1"
|
444
444
|
};
|
445
445
|
var engines = {
|
446
446
|
node: ">=18.0.0 <=22.x.x",
|
@@ -6934,11 +6934,6 @@ const EVENTS = {
|
|
6934
6934
|
if (attribute.type !== 'relation' || attribute.target !== uid || !(attribute.inversedBy || attribute.mappedBy)) {
|
6935
6935
|
continue;
|
6936
6936
|
}
|
6937
|
-
// If it's a self referencing relation, there is no need to sync any relation
|
6938
|
-
// The order will already be handled as both sides are inside the same content type
|
6939
|
-
if (model.uid === uid) {
|
6940
|
-
continue;
|
6941
|
-
}
|
6942
6937
|
const joinTable = attribute.joinTable;
|
6943
6938
|
if (!joinTable) {
|
6944
6939
|
continue;
|
@@ -6998,10 +6993,6 @@ const EVENTS = {
|
|
6998
6993
|
const sourceColumn = joinTable.inverseJoinColumn.name;
|
6999
6994
|
const targetColumn = joinTable.joinColumn.name;
|
7000
6995
|
const orderColumn = joinTable.orderColumnName;
|
7001
|
-
// Failsafe in case those don't exist
|
7002
|
-
if (!sourceColumn || !targetColumn || !orderColumn) {
|
7003
|
-
continue;
|
7004
|
-
}
|
7005
6996
|
// Update order values for each relation
|
7006
6997
|
// TODO: Find a way to batch it more efficiently
|
7007
6998
|
await strapiUtils.async.map(relations, (relation)=>{
|