@vendure/core 3.5.6-master-202603280305 → 3.5.6
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.
|
@@ -15,13 +15,15 @@ function moveToIndex(index, target, siblings) {
|
|
|
15
15
|
currentIndex = siblingsWithTarget.findIndex(sibling => (0, utils_1.idsAreEqual)(sibling.id, target.id));
|
|
16
16
|
if (currentIndex !== normalizedIndex) {
|
|
17
17
|
siblingsWithTarget.splice(normalizedIndex, 0, siblingsWithTarget.splice(currentIndex, 1)[0]);
|
|
18
|
-
siblingsWithTarget.forEach((collection, i) => {
|
|
19
|
-
collection.position = i;
|
|
20
|
-
if (target.id === collection.id) {
|
|
21
|
-
target.position = i;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
18
|
}
|
|
19
|
+
// Always reassign positions to ensure consistency — the target item
|
|
20
|
+
// may carry a stale position value from a different parent.
|
|
21
|
+
siblingsWithTarget.forEach((collection, i) => {
|
|
22
|
+
collection.position = i;
|
|
23
|
+
if (target.id === collection.id) {
|
|
24
|
+
target.position = i;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
25
27
|
return siblingsWithTarget;
|
|
26
28
|
}
|
|
27
29
|
//# sourceMappingURL=move-to-index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"move-to-index.js","sourceRoot":"","sources":["../../../../src/service/helpers/utils/move-to-index.ts"],"names":[],"mappings":";;AASA,
|
|
1
|
+
{"version":3,"file":"move-to-index.js","sourceRoot":"","sources":["../../../../src/service/helpers/utils/move-to-index.ts"],"names":[],"mappings":";;AASA,kCAsBC;AA9BD,iDAAoD;AAGpD;;;;GAIG;AACH,SAAgB,WAAW,CACvB,KAAa,EACb,MAAS,EACT,QAAa;IAEb,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;IACtE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
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/core",
|
|
3
|
-
"version": "3.5.6
|
|
3
|
+
"version": "3.5.6",
|
|
4
4
|
"description": "A modern, headless ecommerce framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@nestjs/platform-express": "^11.0.12",
|
|
50
50
|
"@nestjs/terminus": "^11.0.0",
|
|
51
51
|
"@nestjs/typeorm": "^11.0.0",
|
|
52
|
-
"@vendure/common": "
|
|
52
|
+
"@vendure/common": "3.5.6",
|
|
53
53
|
"bcrypt": "^5.1.1",
|
|
54
54
|
"body-parser": "^1.20.2",
|
|
55
55
|
"cookie-session": "^2.1.0",
|