@monkvision/common 4.5.1 → 4.5.3
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.
|
@@ -42,8 +42,13 @@ function createdOneDamage(state, action) {
|
|
|
42
42
|
inspection.damages.push(payload.damage.id);
|
|
43
43
|
}
|
|
44
44
|
var newDamages = damages.filter(function (damage) { return ![payload.damage.id, payload.localId].includes(damage.id); });
|
|
45
|
-
var partsRelated =
|
|
46
|
-
.map(function (part) {
|
|
45
|
+
var partsRelated = payload.damage.parts
|
|
46
|
+
.map(function (part) {
|
|
47
|
+
var _a;
|
|
48
|
+
return (_a = parts
|
|
49
|
+
.filter(function (value) { return value.inspectionId === payload.damage.inspectionId; })
|
|
50
|
+
.find(function (value) { return value.type === part; })) === null || _a === void 0 ? void 0 : _a.id;
|
|
51
|
+
})
|
|
47
52
|
.filter(function (v) { return v !== undefined; });
|
|
48
53
|
var newParts = parts.map(function (part) {
|
|
49
54
|
if (partsRelated.includes(part.id)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkvision/common",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.3",
|
|
4
4
|
"license": "BSD-3-Clause-Clear",
|
|
5
5
|
"packageManager": "yarn@3.2.4",
|
|
6
6
|
"description": "MonkJs common logic package",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@monkvision/analytics": "4.5.
|
|
32
|
-
"@monkvision/monitoring": "4.5.
|
|
33
|
-
"@monkvision/sights": "4.5.
|
|
34
|
-
"@monkvision/types": "4.5.
|
|
31
|
+
"@monkvision/analytics": "4.5.3",
|
|
32
|
+
"@monkvision/monitoring": "4.5.3",
|
|
33
|
+
"@monkvision/sights": "4.5.3",
|
|
34
|
+
"@monkvision/types": "4.5.3",
|
|
35
35
|
"i18next": "^23.4.5",
|
|
36
36
|
"jsonwebtoken": "^9.0.2",
|
|
37
37
|
"jwt-decode": "^4.0.0",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"react-router-dom": "^6.22.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@monkvision/eslint-config-base": "4.5.
|
|
51
|
-
"@monkvision/eslint-config-typescript": "4.5.
|
|
52
|
-
"@monkvision/eslint-config-typescript-react": "4.5.
|
|
53
|
-
"@monkvision/jest-config": "4.5.
|
|
54
|
-
"@monkvision/prettier-config": "4.5.
|
|
55
|
-
"@monkvision/test-utils": "4.5.
|
|
56
|
-
"@monkvision/typescript-config": "4.5.
|
|
50
|
+
"@monkvision/eslint-config-base": "4.5.3",
|
|
51
|
+
"@monkvision/eslint-config-typescript": "4.5.3",
|
|
52
|
+
"@monkvision/eslint-config-typescript-react": "4.5.3",
|
|
53
|
+
"@monkvision/jest-config": "4.5.3",
|
|
54
|
+
"@monkvision/prettier-config": "4.5.3",
|
|
55
|
+
"@monkvision/test-utils": "4.5.3",
|
|
56
|
+
"@monkvision/typescript-config": "4.5.3",
|
|
57
57
|
"@testing-library/react": "^12.1.5",
|
|
58
58
|
"@testing-library/react-hooks": "^8.0.1",
|
|
59
59
|
"@types/jest": "^29.2.2",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"url": "https://github.com/monkvision/monkjs/issues"
|
|
97
97
|
},
|
|
98
98
|
"homepage": "https://github.com/monkvision/monkjs",
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "220e9a59dde7e935ba517c6d0d3a3775a309c705"
|
|
100
100
|
}
|