@bytebrand/export-cars 1.22.13 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/export-cars",
3
- "version": "1.22.13",
3
+ "version": "1.22.14",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -281,10 +281,11 @@ export class GoogleTransformer {
281
281
  };
282
282
  const fuel = get(car, 'consumption.fuel', 'selector_unknown');
283
283
  let engine = get(available, fuel)
284
- if (engine === 'Hybrid' && get(car, 'engineData.hybridPlugin'))
284
+ const hybridPlugin = car?.engineData?.hybridPlugin;
285
+ if (engine === 'Hybrid' && hybridPlugin)
285
286
  engine = 'plug-in_hybrid';
286
287
 
287
- return get(available, fuel);
288
+ return engine;
288
289
  }
289
290
 
290
291
  private mapBodyStyle(car: DataSchemes.Car): string {