@bytebrand/export-cars 1.22.12 → 1.22.14
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
|
@@ -280,7 +280,12 @@ export class GoogleTransformer {
|
|
|
280
280
|
selector_unknown: 'Other',
|
|
281
281
|
};
|
|
282
282
|
const fuel = get(car, 'consumption.fuel', 'selector_unknown');
|
|
283
|
-
|
|
283
|
+
let engine = get(available, fuel)
|
|
284
|
+
const hybridPlugin = car?.engineData?.hybridPlugin;
|
|
285
|
+
if (engine === 'Hybrid' && hybridPlugin)
|
|
286
|
+
engine = 'plug-in_hybrid';
|
|
287
|
+
|
|
288
|
+
return engine;
|
|
284
289
|
}
|
|
285
290
|
|
|
286
291
|
private mapBodyStyle(car: DataSchemes.Car): string {
|