@bytebrand/export-cars 1.7.0 → 1.7.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebrand/export-cars",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "bytebrand",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"engines": {
|
|
67
67
|
"node": ">=14.0.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "576796025589c6f58778c40db7429e15926edfa1"
|
|
70
70
|
}
|
|
@@ -121,7 +121,9 @@ export class ModixTransformer {
|
|
|
121
121
|
private getManufactureData(car: DataSchemes.Car): IModixWrapItem {
|
|
122
122
|
const carMake = toString(get(car, 'mainData.make', ''));
|
|
123
123
|
const manufactureData = findLast(ManufactureList, item => toLowercase(item.name) === toLowercase(carMake));
|
|
124
|
-
|
|
124
|
+
// temporary
|
|
125
|
+
if (!manufactureData) { console.log(`missed manufactureData ${carMake}`); }
|
|
126
|
+
return { value: manufactureData?.name || carMake, atributes: { id: manufactureData?.id || null } };
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
private getFuelData(car: DataSchemes.Car): IModixWrapItem {
|